From 9e5736768c42f0c6cae9d2592d5b51787f930322 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 19 Nov 2026 04:05:18 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to 5ce0245 --- librarian.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index f57ea63ec57f..8c95e532d4c3 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.52.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: a74d0502444d12c07abc7ed95f90ebb52950e918 - sha256: 9e619a21b96e142c3d017d9a492463419464677d80026a6bea1809d8217d6ec3 + commit: 5ce024537af135bb2a0d3228072dd660047956aa + sha256: 501c23fe3f0f40dca86a70c7868c1db551e41d62d48fe00e26a507090159e933 showcase: commit: 5158967e8a41c751b15776142d190428ddb7e99f sha256: a31271ff2cdeb7cce91e93a4d58a66dcaaac574c51cc14bd74577ab1eafd3ccd From ed67ceee365e79ab065b1f161c795b99709c67ad Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 19 Nov 2026 04:05:19 +0000 Subject: [PATCH 2/2] chore: generate libraries --- java-accessapproval/README.md | 8 +- java-accesscontextmanager/README.md | 8 +- java-admanager/README.md | 8 +- java-advisorynotifications/README.md | 8 +- java-agentidentity/README.md | 8 +- java-agentregistry/README.md | 8 +- .../agentregistry/v1/AgentRegistryClient.java | 8431 +++++++++++++---- .../v1/AgentRegistrySettings.java | 382 + .../agentregistry/v1/gapic_metadata.json | 72 + .../cloud/agentregistry/v1/package-info.java | 5 +- .../v1/stub/AgentRegistryStub.java | 233 + .../v1/stub/AgentRegistryStubSettings.java | 1545 ++- .../v1/stub/GrpcAgentRegistryStub.java | 1050 ++ .../v1/stub/HttpJsonAgentRegistryStub.java | 1793 +++- .../reflect-config.json | 1316 ++- .../v1/AgentRegistryClientHttpJsonTest.java | 2496 ++++- .../v1/AgentRegistryClientTest.java | 2226 ++++- .../v1/MockAgentRegistryImpl.java | 512 + .../agentregistry/v1/AgentRegistryGrpc.java | 4593 +++++++-- .../cloud/agentregistry/v1/AgentName.java | 157 +- .../cloud/agentregistry/v1/AgentProto.java | 16 +- .../v1/AgentRegistryServiceProto.java | 962 +- .../cloud/agentregistry/v1/AiApplication.java | 2798 ++++++ .../agentregistry/v1/AiApplicationName.java | 230 + .../v1/AiApplicationOrBuilder.java | 339 + .../agentregistry/v1/AiApplicationProto.java | 136 + .../agentregistry/v1/ArchiveUploadSource.java | 520 + .../v1/ArchiveUploadSourceOrBuilder.java | 44 + .../agentregistry/v1/CreateSkillRequest.java | 1337 +++ .../v1/CreateSkillRequestOrBuilder.java | 160 + .../v1/CreateSkillRevisionRequest.java | 1333 +++ .../CreateSkillRevisionRequestOrBuilder.java | 159 + .../agentregistry/v1/DeleteSkillRequest.java | 918 ++ .../v1/DeleteSkillRequestOrBuilder.java | 103 + .../v1/DeleteSkillRevisionRequest.java | 818 ++ .../DeleteSkillRevisionRequestOrBuilder.java | 88 + .../cloud/agentregistry/v1/EndpointName.java | 158 +- .../cloud/agentregistry/v1/EndpointProto.java | 16 +- .../cloud/agentregistry/v1/Finding.java | 3604 +++++++ .../cloud/agentregistry/v1/FindingName.java | 226 + .../agentregistry/v1/FindingOrBuilder.java | 348 + .../cloud/agentregistry/v1/FindingProto.java | 153 + .../cloud/agentregistry/v1/Frontmatter.java | 1532 +++ .../v1/FrontmatterOrBuilder.java | 200 + .../cloud/agentregistry/v1/GcsSource.java | 710 ++ .../agentregistry/v1/GcsSourceOrBuilder.java | 72 + .../v1/GetAiApplicationAgentRequest.java | 631 ++ ...GetAiApplicationAgentRequestOrBuilder.java | 62 + .../v1/GetAiApplicationEndpointRequest.java | 634 ++ ...AiApplicationEndpointRequestOrBuilder.java | 62 + .../v1/GetAiApplicationMcpServerRequest.java | 637 ++ ...iApplicationMcpServerRequestOrBuilder.java | 62 + .../v1/GetAiApplicationRequest.java | 625 ++ .../v1/GetAiApplicationRequestOrBuilder.java | 62 + .../agentregistry/v1/GetFindingRequest.java | 617 ++ .../v1/GetFindingRequestOrBuilder.java | 60 + .../agentregistry/v1/GetPublisherRequest.java | 618 ++ .../v1/GetPublisherRequestOrBuilder.java | 60 + .../v1/GetSkillEncryptionSpecRequest.java | 625 ++ ...etSkillEncryptionSpecRequestOrBuilder.java | 60 + .../agentregistry/v1/GetSkillRequest.java | 610 ++ .../v1/GetSkillRequestOrBuilder.java | 58 + .../v1/GetSkillRevisionRequest.java | 611 ++ .../v1/GetSkillRevisionRequestOrBuilder.java | 58 + .../v1/ListAiApplicationAgentsRequest.java | 922 ++ ...stAiApplicationAgentsRequestOrBuilder.java | 102 + .../v1/ListAiApplicationAgentsResponse.java | 1120 +++ ...tAiApplicationAgentsResponseOrBuilder.java | 110 + .../v1/ListAiApplicationEndpointsRequest.java | 934 ++ ...iApplicationEndpointsRequestOrBuilder.java | 104 + .../ListAiApplicationEndpointsResponse.java | 1126 +++ ...ApplicationEndpointsResponseOrBuilder.java | 110 + .../ListAiApplicationMcpServersRequest.java | 934 ++ ...ApplicationMcpServersRequestOrBuilder.java | 104 + .../ListAiApplicationMcpServersResponse.java | 1126 +++ ...pplicationMcpServersResponseOrBuilder.java | 110 + .../v1/ListAiApplicationsRequest.java | 1286 +++ .../ListAiApplicationsRequestOrBuilder.java | 152 + .../v1/ListAiApplicationsResponse.java | 1419 +++ .../ListAiApplicationsResponseOrBuilder.java | 164 + .../agentregistry/v1/ListFindingsRequest.java | 1286 +++ .../v1/ListFindingsRequestOrBuilder.java | 152 + .../v1/ListFindingsResponse.java | 1112 +++ .../v1/ListFindingsResponseOrBuilder.java | 110 + .../v1/ListPublishersRequest.java | 904 ++ .../v1/ListPublishersRequestOrBuilder.java | 99 + .../v1/ListPublishersResponse.java | 1114 +++ .../v1/ListPublishersResponseOrBuilder.java | 110 + .../v1/ListSkillRevisionsRequest.java | 897 ++ .../ListSkillRevisionsRequestOrBuilder.java | 97 + .../v1/ListSkillRevisionsResponse.java | 1129 +++ .../ListSkillRevisionsResponseOrBuilder.java | 110 + .../agentregistry/v1/ListSkillsRequest.java | 1397 +++ .../v1/ListSkillsRequestOrBuilder.java | 184 + .../agentregistry/v1/ListSkillsResponse.java | 1400 +++ .../v1/ListSkillsResponseOrBuilder.java | 164 + .../cloud/agentregistry/v1/McpServer.java | 354 + .../cloud/agentregistry/v1/McpServerName.java | 158 +- .../agentregistry/v1/McpServerProto.java | 24 +- .../agentregistry/v1/PropertiesProto.java | 28 +- .../cloud/agentregistry/v1/Publisher.java | 1753 ++++ .../cloud/agentregistry/v1/PublisherName.java | 226 + .../agentregistry/v1/PublisherOrBuilder.java | 196 + .../agentregistry/v1/ScanningConfig.java | 778 ++ .../v1/ScanningConfigOrBuilder.java | 58 + .../agentregistry/v1/SearchAgentsRequest.java | 14 +- .../v1/SearchAgentsRequestOrBuilder.java | 4 +- .../agentregistry/v1/SearchSkillsRequest.java | 1826 ++++ .../v1/SearchSkillsRequestOrBuilder.java | 287 + .../v1/SearchSkillsResponse.java | 1111 +++ .../v1/SearchSkillsResponseOrBuilder.java | 110 + .../cloud/agentregistry/v1/SearchType.java | 194 + .../cloud/agentregistry/v1/Service.java | 114 +- .../cloud/agentregistry/v1/ServiceProto.java | 34 +- .../cloud/agentregistry/v1/Severity.java | 239 + .../google/cloud/agentregistry/v1/Skill.java | 4654 +++++++++ .../agentregistry/v1/SkillEncryptionSpec.java | 1466 +++ .../v1/SkillEncryptionSpecName.java | 196 + .../v1/SkillEncryptionSpecOrBuilder.java | 178 + .../v1/SkillEncryptionSpecProto.java | 112 + .../cloud/agentregistry/v1/SkillName.java | 226 + .../agentregistry/v1/SkillOrBuilder.java | 568 ++ .../cloud/agentregistry/v1/SkillProto.java | 353 + .../cloud/agentregistry/v1/SkillRevision.java | 4966 ++++++++++ .../agentregistry/v1/SkillRevisionName.java | 261 + .../v1/SkillRevisionOrBuilder.java | 374 + .../v1/UpdateSkillEncryptionSpecRequest.java | 1094 +++ ...teSkillEncryptionSpecRequestOrBuilder.java | 126 + .../agentregistry/v1/UpdateSkillRequest.java | 1207 +++ .../v1/UpdateSkillRequestOrBuilder.java | 138 + .../google/cloud/agentregistry/v1/agent.proto | 1 + .../v1/agentregistry_service.proto | 874 +- .../agentregistry/v1/ai_application.proto | 94 + .../cloud/agentregistry/v1/endpoint.proto | 1 + .../cloud/agentregistry/v1/finding.proto | 120 + .../cloud/agentregistry/v1/mcp_server.proto | 6 + .../cloud/agentregistry/v1/properties.proto | 1 + .../cloud/agentregistry/v1/service.proto | 27 +- .../google/cloud/agentregistry/v1/skill.proto | 426 + .../v1/skill_encryption_spec.proto | 74 + .../createskill/AsyncCreateSkill.java | 53 + .../createskill/AsyncCreateSkillLRO.java | 54 + .../createskill/SyncCreateSkill.java | 49 + ...yncCreateSkillLocationnameSkillString.java | 44 + .../SyncCreateSkillStringSkillString.java | 44 + .../AsyncCreateSkillRevision.java | 54 + .../AsyncCreateSkillRevisionLRO.java | 54 + .../SyncCreateSkillRevision.java | 49 + ...lRevisionSkillnameSkillrevisionString.java | 47 + ...killRevisionStringSkillrevisionString.java | 47 + .../deleteskill/AsyncDeleteSkill.java | 51 + .../deleteskill/AsyncDeleteSkillLRO.java | 53 + .../deleteskill/SyncDeleteSkill.java | 48 + .../deleteskill/SyncDeleteSkillSkillname.java | 42 + .../deleteskill/SyncDeleteSkillString.java | 42 + .../AsyncDeleteSkillRevision.java | 53 + .../AsyncDeleteSkillRevisionLRO.java | 54 + .../SyncDeleteSkillRevision.java | 49 + ...cDeleteSkillRevisionSkillrevisionname.java | 43 + .../SyncDeleteSkillRevisionString.java | 43 + .../agentregistry/getagent/AsyncGetAgent.java | 4 +- .../agentregistry/getagent/SyncGetAgent.java | 4 +- .../getagent/SyncGetAgentAgentname.java | 2 +- .../getagent/SyncGetAgentString.java | 3 +- .../AsyncGetAiApplication.java | 51 + .../SyncGetAiApplication.java | 47 + ...SyncGetAiApplicationAiapplicationname.java | 42 + .../SyncGetAiApplicationString.java | 42 + .../AsyncGetAiApplicationAgent.java | 53 + .../SyncGetAiApplicationAgent.java | 49 + .../SyncGetAiApplicationAgentAgentname.java | 44 + .../SyncGetAiApplicationAgentString.java | 43 + .../AsyncGetAiApplicationEndpoint.java | 53 + .../SyncGetAiApplicationEndpoint.java | 49 + ...cGetAiApplicationEndpointEndpointname.java | 44 + .../SyncGetAiApplicationEndpointString.java | 44 + .../AsyncGetAiApplicationMcpServer.java | 53 + .../SyncGetAiApplicationMcpServer.java | 49 + ...etAiApplicationMcpServerMcpservername.java | 44 + .../SyncGetAiApplicationMcpServerString.java | 44 + .../getendpoint/AsyncGetEndpoint.java | 5 +- .../getendpoint/SyncGetEndpoint.java | 5 +- .../SyncGetEndpointEndpointname.java | 3 +- .../getendpoint/SyncGetEndpointString.java | 4 +- .../getfinding/AsyncGetFinding.java | 49 + .../getfinding/SyncGetFinding.java | 46 + .../getfinding/SyncGetFindingFindingname.java | 42 + .../getfinding/SyncGetFindingString.java | 42 + .../getmcpserver/AsyncGetMcpServer.java | 5 +- .../getmcpserver/SyncGetMcpServer.java | 5 +- .../SyncGetMcpServerMcpservername.java | 3 +- .../getmcpserver/SyncGetMcpServerString.java | 4 +- .../getpublisher/AsyncGetPublisher.java | 49 + .../getpublisher/SyncGetPublisher.java | 46 + .../SyncGetPublisherPublishername.java | 42 + .../getpublisher/SyncGetPublisherString.java | 42 + .../agentregistry/getskill/AsyncGetSkill.java | 49 + .../agentregistry/getskill/SyncGetSkill.java | 46 + .../getskill/SyncGetSkillSkillname.java | 42 + .../getskill/SyncGetSkillString.java | 42 + .../AsyncGetSkillEncryptionSpec.java | 50 + .../SyncGetSkillEncryptionSpec.java | 46 + ...EncryptionSpecSkillencryptionspecname.java | 42 + .../SyncGetSkillEncryptionSpecString.java | 42 + .../AsyncGetSkillRevision.java | 52 + .../SyncGetSkillRevision.java | 48 + ...SyncGetSkillRevisionSkillrevisionname.java | 43 + .../SyncGetSkillRevisionString.java | 43 + .../AsyncListAiApplicationAgents.java | 55 + .../AsyncListAiApplicationAgentsPaged.java | 63 + .../SyncListAiApplicationAgents.java | 51 + ...tAiApplicationAgentsAiapplicationname.java | 45 + .../SyncListAiApplicationAgentsString.java | 45 + .../AsyncListAiApplicationEndpoints.java | 55 + .../AsyncListAiApplicationEndpointsPaged.java | 63 + .../SyncListAiApplicationEndpoints.java | 52 + ...ApplicationEndpointsAiapplicationname.java | 45 + .../SyncListAiApplicationEndpointsString.java | 45 + .../AsyncListAiApplicationMcpServers.java | 55 + ...AsyncListAiApplicationMcpServersPaged.java | 63 + .../SyncListAiApplicationMcpServers.java | 52 + ...pplicationMcpServersAiapplicationname.java | 46 + ...SyncListAiApplicationMcpServersString.java | 46 + .../AsyncListAiApplications.java | 56 + .../AsyncListAiApplicationsPaged.java | 64 + .../SyncListAiApplications.java | 52 + .../SyncListAiApplicationsLocationname.java | 44 + .../SyncListAiApplicationsString.java | 44 + .../listfindings/AsyncListFindings.java | 56 + .../listfindings/AsyncListFindingsPaged.java | 63 + .../listfindings/SyncListFindings.java | 52 + .../SyncListFindingsLocationname.java | 44 + .../listfindings/SyncListFindingsString.java | 44 + .../listpublishers/AsyncListPublishers.java | 54 + .../AsyncListPublishersPaged.java | 62 + .../listpublishers/SyncListPublishers.java | 50 + .../SyncListPublishersLocationname.java | 44 + .../SyncListPublishersString.java | 44 + .../AsyncListSkillRevisions.java | 54 + .../AsyncListSkillRevisionsPaged.java | 62 + .../SyncListSkillRevisions.java | 50 + .../SyncListSkillRevisionsSkillname.java | 44 + .../SyncListSkillRevisionsString.java | 44 + .../listskills/AsyncListSkills.java | 55 + .../listskills/AsyncListSkillsPaged.java | 63 + .../listskills/SyncListSkills.java | 52 + .../SyncListSkillsLocationname.java | 44 + .../listskills/SyncListSkillsString.java | 44 + .../searchskills/AsyncSearchSkills.java | 57 + .../searchskills/AsyncSearchSkillsPaged.java | 65 + .../searchskills/SyncSearchSkills.java | 54 + .../updateskill/AsyncUpdateSkill.java | 52 + .../updateskill/AsyncUpdateSkillLRO.java | 53 + .../updateskill/SyncUpdateSkill.java | 48 + .../SyncUpdateSkillSkillFieldmask.java | 43 + .../AsyncUpdateSkillEncryptionSpec.java | 52 + .../AsyncUpdateSkillEncryptionSpecLRO.java | 52 + .../SyncUpdateSkillEncryptionSpec.java | 48 + ...ptionSpecSkillencryptionspecFieldmask.java | 44 + java-aiplatform/README.md | 8 +- java-alloydb-connectors/README.md | 8 +- java-alloydb/README.md | 8 +- java-analytics-admin/README.md | 8 +- java-analytics-data/README.md | 8 +- java-analyticshub/README.md | 8 +- java-api-gateway/README.md | 8 +- java-apigee-connect/README.md | 8 +- java-apihub/README.md | 8 +- java-apikeys/README.md | 8 +- java-appengine-admin/README.md | 8 +- java-apphub/README.md | 8 +- .../cloud/apphub/v1/ApplicationProto.java | 23 +- .../com/google/cloud/apphub/v1/Scope.java | 23 + .../google/cloud/apphub/v1/application.proto | 3 + java-appoptimize/README.md | 8 +- java-apptopology/README.md | 8 +- java-artifact-registry/README.md | 8 +- java-asset/README.md | 8 +- java-assured-workloads/README.md | 8 +- java-auditmanager/README.md | 8 +- java-backstory/README.md | 8 +- java-backupdr/README.md | 8 +- java-bare-metal-solution/README.md | 8 +- java-batch/README.md | 8 +- .../reflect-config.json | 36 + .../cloud/batch/v1/AllocationPolicy.java | 2491 +++++ .../batch/v1/AllocationPolicyOrBuilder.java | 51 + .../com/google/cloud/batch/v1/JobProto.java | 103 +- .../proto/google/cloud/batch/v1/job.proto | 40 + java-beyondcorp-appconnections/README.md | 8 +- java-beyondcorp-appconnectors/README.md | 8 +- java-beyondcorp-appgateways/README.md | 8 +- .../README.md | 8 +- java-beyondcorp-clientgateways/README.md | 8 +- java-biglake-hive/README.md | 8 +- java-biglake/README.md | 8 +- java-bigquery-data-exchange/README.md | 8 +- java-bigqueryconnection/README.md | 8 +- java-bigquerydatapolicy/README.md | 8 +- java-bigquerydatatransfer/README.md | 8 +- java-bigquerymigration/README.md | 8 +- java-bigqueryreservation/README.md | 8 +- java-bigquerystorage/README.md | 8 +- java-bigtable/README.md | 8 +- java-billing/README.md | 8 +- java-billingbudgets/README.md | 8 +- java-binary-authorization/README.md | 8 +- java-capacityplanner/README.md | 8 +- java-certificate-manager/README.md | 8 +- java-ces/README.md | 8 +- java-channel/README.md | 8 +- java-chat/README.md | 8 +- .../com/google/chat/v1/ChatServiceClient.java | 156 + .../google/chat/v1/ChatServiceSettings.java | 12 + .../com/google/chat/v1/gapic_metadata.json | 3 + .../google/chat/v1/stub/ChatServiceStub.java | 6 + .../chat/v1/stub/ChatServiceStubSettings.java | 27 + .../chat/v1/stub/GrpcChatServiceStub.java | 38 + .../chat/v1/stub/HttpJsonChatServiceStub.java | 70 + .../com.google.chat.v1/reflect-config.json | 18 + .../v1/ChatServiceClientHttpJsonTest.java | 55 + .../google/chat/v1/ChatServiceClientTest.java | 43 + .../google/chat/v1/MockChatServiceImpl.java | 22 + .../com/google/chat/v1/ChatServiceGrpc.java | 198 +- .../com/google/chat/v1/ChatServiceProto.java | 276 +- .../google/chat/v1/ThreadReadStateProto.java | 47 +- .../chat/v1/UpdateThreadReadStateRequest.java | 1312 +++ ...UpdateThreadReadStateRequestOrBuilder.java | 186 + .../proto/google/chat/v1/chat_service.proto | 19 + .../google/chat/v1/thread_read_state.proto | 37 + .../AsyncUpdateThreadReadState.java | 51 + .../SyncUpdateThreadReadState.java | 47 + ...readReadStateThreadreadstateFieldmask.java | 44 + java-chronicle/README.md | 8 +- java-cloudapiregistry/README.md | 8 +- java-cloudbuild/README.md | 8 +- .../README.md | 8 +- java-cloudcontrolspartner/README.md | 8 +- java-cloudquotas/README.md | 8 +- java-cloudsecuritycompliance/README.md | 8 +- java-cloudsupport/README.md | 8 +- java-commerceproducer/README.md | 8 +- java-compute/README.md | 8 +- java-confidentialcomputing/README.md | 8 +- java-configdelivery/README.md | 8 +- java-connectgateway/README.md | 8 +- java-contact-center-insights/README.md | 8 +- java-container/README.md | 8 +- java-containeranalysis/README.md | 8 +- java-contentwarehouse/README.md | 8 +- java-data-fusion/README.md | 8 +- java-databasecenter/README.md | 8 +- java-dataflow/README.md | 8 +- java-dataform/README.md | 8 +- .../cloud/dataform/v1/DataformClient.java | 191 + .../cloud/dataform/v1/DataformSettings.java | 23 + .../cloud/dataform/v1/gapic_metadata.json | 3 + .../cloud/dataform/v1/stub/DataformStub.java | 12 + .../v1/stub/DataformStubSettings.java | 73 + .../dataform/v1/stub/GrpcDataformStub.java | 49 + .../v1/stub/HttpJsonDataformStub.java | 84 + .../dataform/v1beta1/DataformClient.java | 191 + .../dataform/v1beta1/DataformSettings.java | 23 + .../dataform/v1beta1/gapic_metadata.json | 3 + .../dataform/v1beta1/stub/DataformStub.java | 12 + .../v1beta1/stub/DataformStubSettings.java | 73 + .../v1beta1/stub/GrpcDataformStub.java | 50 + .../v1beta1/stub/HttpJsonDataformStub.java | 85 + .../reflect-config.json | 27 + .../reflect-config.json | 27 + .../v1/DataformClientHttpJsonTest.java | 122 + .../cloud/dataform/v1/DataformClientTest.java | 120 + .../cloud/dataform/v1/MockDataformImpl.java | 22 + .../v1beta1/DataformClientHttpJsonTest.java | 130 + .../dataform/v1beta1/DataformClientTest.java | 128 + .../dataform/v1beta1/MockDataformImpl.java | 22 + .../cloud/dataform/v1/DataformGrpc.java | 218 +- .../cloud/dataform/v1beta1/DataformGrpc.java | 234 +- .../dataform/v1/CreateWorkspaceMetadata.java | 1622 ++++ .../v1/CreateWorkspaceMetadataOrBuilder.java | 155 + .../cloud/dataform/v1/DataformProto.java | 1351 +-- .../google/cloud/dataform/v1/Repository.java | 18 +- .../google/cloud/dataform/v1/dataform.proto | 54 + .../dataform/v1beta1/CreateFolderRequest.java | 14 +- .../v1beta1/CreateFolderRequestOrBuilder.java | 4 +- .../v1beta1/CreateTeamFolderRequest.java | 14 +- .../CreateTeamFolderRequestOrBuilder.java | 4 +- .../v1beta1/CreateWorkspaceMetadata.java | 1624 ++++ .../CreateWorkspaceMetadataOrBuilder.java | 156 + .../cloud/dataform/v1beta1/DataformProto.java | 1576 +-- .../cloud/dataform/v1beta1/Repository.java | 18 +- .../cloud/dataform/v1beta1/dataform.proto | 54 + .../AsyncCreateWorkspaceLongRunning.java | 53 + .../AsyncCreateWorkspaceLongRunningLRO.java | 53 + .../SyncCreateWorkspaceLongRunning.java | 48 + ...gRunningRepositorynameWorkspaceString.java | 46 + ...spaceLongRunningStringWorkspaceString.java | 45 + .../AsyncCreateWorkspaceLongRunning.java | 53 + .../AsyncCreateWorkspaceLongRunningLRO.java | 53 + .../SyncCreateWorkspaceLongRunning.java | 48 + ...gRunningRepositorynameWorkspaceString.java | 46 + ...spaceLongRunningStringWorkspaceString.java | 45 + java-datalineage/README.md | 8 +- java-datamanager/README.md | 8 +- java-dataplex/README.md | 8 +- java-dataproc-metastore/README.md | 8 +- java-dataproc/README.md | 8 +- java-datastore/README.md | 8 +- java-datastream/README.md | 8 +- java-deploy/README.md | 8 +- java-designcenter/README.md | 8 +- java-developerconnect/README.md | 8 +- java-developerknowledge/README.md | 8 +- java-devicestreaming/README.md | 8 +- java-dialogflow-cx/README.md | 8 +- java-dialogflow/README.md | 8 +- java-discoveryengine/README.md | 8 +- .../v1/ProjectServiceClient.java | 6 + .../v1beta/ProjectServiceClient.java | 6 + .../stub/HttpJsonProjectServiceStub.java | 1 + .../reflect-config.json | 9 + .../reflect-config.json | 9 + .../v1/ProjectServiceProto.java | 84 +- .../v1/ProvisionProjectRequest.java | 837 ++ .../v1/ProvisionProjectRequestOrBuilder.java | 105 + .../discoveryengine/v1/project_service.proto | 37 + .../v1beta/ProjectServiceProto.java | 85 +- .../v1beta/ProvisionProjectRequest.java | 841 ++ .../ProvisionProjectRequestOrBuilder.java | 106 + .../v1beta/project_service.proto | 41 + .../AsyncProvisionProject.java | 3 + .../AsyncProvisionProjectLRO.java | 3 + .../SyncProvisionProject.java | 3 + .../AsyncProvisionProject.java | 3 + .../AsyncProvisionProjectLRO.java | 3 + .../SyncProvisionProject.java | 3 + java-distributedcloudedge/README.md | 8 +- java-dlp/README.md | 8 +- java-dms/README.md | 8 +- java-document-ai/README.md | 8 +- java-domains/README.md | 8 +- java-edgenetwork/README.md | 8 +- java-enterpriseknowledgegraph/README.md | 8 +- java-errorreporting/README.md | 8 +- java-essential-contacts/README.md | 8 +- java-eventarc-publishing/README.md | 8 +- java-eventarc/README.md | 8 +- java-filestore/README.md | 8 +- java-financialservices/README.md | 8 +- java-firestore/README.md | 8 +- java-ftp/README.md | 8 +- java-functions/README.md | 8 +- java-gdchardwaremanagement/README.md | 8 +- java-geminidataanalytics/README.md | 8 +- java-gke-backup/README.md | 8 +- java-gke-connect-gateway/README.md | 8 +- java-gke-multi-cloud/README.md | 8 +- java-gkehub/README.md | 8 +- java-gkerecommender/README.md | 8 +- java-grafeas/README.md | 8 +- java-gsuite-addons/README.md | 8 +- .../gsuiteaddons/v1/GSuiteAddOnsClient.java | 301 +- .../gsuiteaddons/v1/GSuiteAddOnsSettings.java | 23 + .../cloud/gsuiteaddons/v1/gapic_metadata.json | 6 + .../cloud/gsuiteaddons/v1/package-info.java | 23 +- .../v1/stub/GSuiteAddOnsStub.java | 11 + .../v1/stub/GSuiteAddOnsStubSettings.java | 62 +- .../v1/stub/GrpcGSuiteAddOnsStub.java | 70 + .../v1/stub/HttpJsonGSuiteAddOnsStub.java | 126 + .../reflect-config.json | 297 + .../v1/GSuiteAddOnsClientHttpJsonTest.java | 166 + .../v1/GSuiteAddOnsClientTest.java | 133 + .../gsuiteaddons/v1/MockGSuiteAddOnsImpl.java | 42 + .../gsuiteaddons/v1/GSuiteAddOnsGrpc.java | 495 +- .../script/type/meet/MeetAddOnManifest.java | 1314 +++ .../type/meet/MeetAddOnManifestOrBuilder.java | 158 + .../type/meet/MeetAddOnManifestProto.java | 139 + .../com/google/apps/script/type/meet/Web.java | 3171 +++++++ .../apps/script/type/meet/WebOrBuilder.java | 421 + .../type/meet/meet_addon_manifest.proto | 121 + .../cloud/gsuiteaddons/v1/AppCommand.java | 1763 ++++ .../gsuiteaddons/v1/AppCommandOrBuilder.java | 195 + .../v1/AppsScriptEndpointConfig.java | 953 ++ .../v1/AppsScriptEndpointConfigOrBuilder.java | 104 + .../v1/AppsScriptPerEventEndpointConfig.java | 1397 +++ ...ScriptPerEventEndpointConfigOrBuilder.java | 208 + .../cloud/gsuiteaddons/v1/ChatAppConfig.java | 2568 +++++ .../gsuiteaddons/v1/ChatAppConfigName.java | 171 + .../v1/ChatAppConfigOrBuilder.java | 336 + .../v1/CloudPubSubEndpointConfig.java | 653 ++ .../CloudPubSubEndpointConfigOrBuilder.java | 70 + .../gsuiteaddons/v1/ConnectionConfig.java | 1799 ++++ .../v1/ConnectionConfigOrBuilder.java | 193 + .../v1/DialogflowEndpointConfig.java | 1039 ++ .../v1/DialogflowEndpointConfigOrBuilder.java | 110 + .../gsuiteaddons/v1/GSuiteAddOnsProto.java | 540 +- .../v1/GetChatAppConfigRequest.java | 1001 ++ .../v1/GetChatAppConfigRequestOrBuilder.java | 96 + .../gsuiteaddons/v1/HttpEndpointConfig.java | 1091 +++ .../v1/HttpEndpointConfigOrBuilder.java | 119 + .../v1/HttpPerEventEndpointConfig.java | 1169 +++ .../HttpPerEventEndpointConfigOrBuilder.java | 132 + .../v1/InteractiveFeatureConfig.java | 2334 +++++ .../v1/InteractiveFeatureConfigOrBuilder.java | 299 + .../v1/UpdateChatAppConfigRequest.java | 1051 ++ .../UpdateChatAppConfigRequestOrBuilder.java | 120 + .../cloud/gsuiteaddons/v1/UrlPattern.java | 835 ++ .../gsuiteaddons/v1/UrlPatternOrBuilder.java | 94 + .../cloud/gsuiteaddons/v1/gsuiteaddons.proto | 422 +- .../AsyncGetChatAppConfig.java | 50 + .../SyncGetChatAppConfig.java | 46 + ...SyncGetChatAppConfigChatappconfigname.java | 42 + .../SyncGetChatAppConfigString.java | 42 + .../AsyncUpdateChatAppConfig.java | 51 + .../SyncUpdateChatAppConfig.java | 47 + ...teChatAppConfigChatappconfigFieldmask.java | 43 + java-health/README.md | 8 +- java-hypercomputecluster/README.md | 8 +- java-iam-admin/README.md | 8 +- java-iam-policy/README.md | 8 +- java-iamcredentials/README.md | 8 +- java-iap/README.md | 8 +- java-ids/README.md | 8 +- java-infra-manager/README.md | 8 +- java-iot/README.md | 8 +- java-kms/README.md | 8 +- java-kmsinventory/README.md | 8 +- java-language/README.md | 8 +- java-licensemanager/README.md | 8 +- java-life-sciences/README.md | 8 +- java-locationfinder/README.md | 8 +- java-logging/README.md | 8 +- java-lustre/README.md | 8 +- java-maintenance/README.md | 8 +- java-managed-identities/README.md | 8 +- java-managedkafka/README.md | 8 +- java-maps-addressvalidation/README.md | 8 +- java-maps-area-insights/README.md | 8 +- java-maps-fleetengine-delivery/README.md | 8 +- java-maps-fleetengine/README.md | 8 +- java-maps-geocode/README.md | 8 +- java-maps-isochrones/README.md | 8 +- java-maps-mapmanagement/README.md | 8 +- java-maps-mapsplatformdatasets/README.md | 8 +- java-maps-navconnect/README.md | 8 +- java-maps-places/README.md | 8 +- java-maps-routeoptimization/README.md | 8 +- java-maps-routing/README.md | 8 +- java-maps-solar/README.md | 8 +- java-marketingplatformadminapi/README.md | 8 +- java-mediatranslation/README.md | 8 +- java-meet/README.md | 8 +- java-memcache/README.md | 8 +- java-migrationcenter/README.md | 8 +- java-modelarmor/README.md | 8 +- java-monitoring-dashboards/README.md | 8 +- java-monitoring-metricsscope/README.md | 8 +- java-monitoring/README.md | 8 +- java-netapp/README.md | 8 +- java-network-management/README.md | 8 +- java-network-security/README.md | 8 +- java-networkconnectivity/README.md | 8 +- .../v1/HubServiceClient.java | 1300 ++- .../v1/HubServiceSettings.java | 111 + .../v1/gapic_metadata.json | 15 + .../v1/stub/GrpcHubServiceStub.java | 261 + .../v1/stub/HubServiceStub.java | 63 + .../v1/stub/HubServiceStubSettings.java | 384 + .../reflect-config.json | 216 + .../v1/HubServiceClientTest.java | 509 +- .../v1/MockHubServiceImpl.java | 112 + .../v1/HubServiceGrpc.java | 699 ++ .../CreateGatewayAdvertisedRouteRequest.java | 1456 +++ ...atewayAdvertisedRouteRequestOrBuilder.java | 184 + .../DeleteGatewayAdvertisedRouteRequest.java | 933 ++ ...atewayAdvertisedRouteRequestOrBuilder.java | 114 + .../cloud/networkconnectivity/v1/Gateway.java | 2560 +++++ .../v1/GatewayAdvertisedRoute.java | 2861 ++++++ .../v1/GatewayAdvertisedRouteName.java | 273 + .../v1/GatewayAdvertisedRouteOrBuilder.java | 393 + .../v1/GatewayOrBuilder.java | 229 + .../v1/GetGatewayAdvertisedRouteRequest.java | 630 ++ ...atewayAdvertisedRouteRequestOrBuilder.java | 58 + .../cloud/networkconnectivity/v1/Group.java | 28 +- .../v1/GroupOrBuilder.java | 8 +- .../cloud/networkconnectivity/v1/Hub.java | 1243 ++- .../networkconnectivity/v1/HubOrBuilder.java | 77 +- .../networkconnectivity/v1/HubProto.java | 781 +- .../v1/LinkedInterconnectAttachments.java | 3411 +++++-- ...inkedInterconnectAttachmentsOrBuilder.java | 470 +- .../v1/LinkedProducerVpcNetwork.java | 104 +- .../v1/LinkedProducerVpcNetworkOrBuilder.java | 32 +- .../v1/LinkedRouterApplianceInstances.java | 3775 ++++++-- ...nkedRouterApplianceInstancesOrBuilder.java | 470 +- .../v1/LinkedVpcNetwork.java | 130 +- .../v1/LinkedVpcNetworkOrBuilder.java | 40 +- .../v1/LinkedVpnTunnels.java | 3387 +++++-- .../v1/LinkedVpnTunnelsOrBuilder.java | 470 +- .../ListGatewayAdvertisedRoutesRequest.java | 1343 +++ ...tewayAdvertisedRoutesRequestOrBuilder.java | 161 + .../ListGatewayAdvertisedRoutesResponse.java | 1522 +++ ...ewayAdvertisedRoutesResponseOrBuilder.java | 181 + .../v1/LocationFeature.java | 48 +- .../networkconnectivity/v1/NextHopSpoke.java | 717 ++ .../v1/NextHopSpokeOrBuilder.java | 73 + .../networkconnectivity/v1/PolicyMode.java | 2 +- .../v1/PresetTopology.java | 27 +- .../cloud/networkconnectivity/v1/Route.java | 309 + .../v1/RouteOrBuilder.java | 43 + .../networkconnectivity/v1/RouteType.java | 27 +- .../cloud/networkconnectivity/v1/Spoke.java | 473 +- .../v1/SpokeOrBuilder.java | 62 +- .../networkconnectivity/v1/SpokeType.java | 25 +- .../cloud/networkconnectivity/v1/State.java | 2 +- .../UpdateGatewayAdvertisedRouteRequest.java | 1444 +++ ...atewayAdvertisedRouteRequestOrBuilder.java | 192 + .../cloud/networkconnectivity/v1/hub.proto | 589 +- .../AsyncCreateGatewayAdvertisedRoute.java | 54 + .../AsyncCreateGatewayAdvertisedRouteLRO.java | 54 + .../SyncCreateGatewayAdvertisedRoute.java | 50 + ...SpokenameGatewayadvertisedrouteString.java | 49 + ...uteStringGatewayadvertisedrouteString.java | 49 + .../AsyncDeleteGatewayAdvertisedRoute.java | 54 + .../AsyncDeleteGatewayAdvertisedRouteLRO.java | 55 + .../SyncDeleteGatewayAdvertisedRoute.java | 50 + ...rtisedRouteGatewayadvertisedroutename.java | 44 + ...yncDeleteGatewayAdvertisedRouteString.java | 45 + .../AsyncGetGatewayAdvertisedRoute.java | 53 + .../SyncGetGatewayAdvertisedRoute.java | 49 + ...rtisedRouteGatewayadvertisedroutename.java | 44 + .../SyncGetGatewayAdvertisedRouteString.java | 45 + .../AsyncListGatewayAdvertisedRoutes.java | 56 + ...AsyncListGatewayAdvertisedRoutesPaged.java | 64 + .../SyncListGatewayAdvertisedRoutes.java | 53 + ...cListGatewayAdvertisedRoutesSpokename.java | 45 + ...SyncListGatewayAdvertisedRoutesString.java | 45 + .../AsyncUpdateGatewayAdvertisedRoute.java | 53 + .../AsyncUpdateGatewayAdvertisedRouteLRO.java | 53 + .../SyncUpdateGatewayAdvertisedRoute.java | 49 + ...dRouteGatewayadvertisedrouteFieldmask.java | 47 + java-networkservices/README.md | 8 +- java-notebooks/README.md | 8 +- java-observability/README.md | 8 +- java-optimization/README.md | 8 +- java-oracledatabase/README.md | 8 +- .../v1/OracleDatabaseClient.java | 153 + .../v1/OracleDatabaseSettings.java | 23 + .../oracledatabase/v1/gapic_metadata.json | 3 + .../v1/stub/GrpcOracleDatabaseStub.java | 46 + .../v1/stub/HttpJsonOracleDatabaseStub.java | 80 + .../v1/stub/OracleDatabaseStub.java | 10 + .../v1/stub/OracleDatabaseStubSettings.java | 69 + .../reflect-config.json | 18 + .../v1/MockOracleDatabaseImpl.java | 21 + .../v1/OracleDatabaseClientHttpJsonTest.java | 72 + .../v1/OracleDatabaseClientTest.java | 54 + .../oracledatabase/v1/OracleDatabaseGrpc.java | 237 +- .../oracledatabase/v1/OdbDnsZoneProto.java | 62 +- .../v1/UpdateOdbDnsZoneRequest.java | 1374 +++ .../v1/UpdateOdbDnsZoneRequestOrBuilder.java | 182 + .../cloud/oracledatabase/v1/V1mainProto.java | 735 +- .../oracledatabase/v1/odb_dns_zone.proto | 33 + .../oracledatabase/v1/oracledatabase.proto | 14 + .../AsyncUpdateOdbDnsZone.java | 53 + .../AsyncUpdateOdbDnsZoneLRO.java | 53 + .../SyncUpdateOdbDnsZone.java | 48 + ...ncUpdateOdbDnsZoneOdbdnszoneFieldmask.java | 44 + java-orchestration-airflow/README.md | 8 +- java-orgpolicy/README.md | 8 +- java-os-config/README.md | 8 +- java-os-login/README.md | 8 +- java-parallelstore/README.md | 8 +- java-parametermanager/README.md | 8 +- java-phishingprotection/README.md | 8 +- java-policy-troubleshooter/README.md | 8 +- java-policysimulator/README.md | 8 +- java-private-catalog/README.md | 8 +- java-privilegedaccessmanager/README.md | 8 +- java-productregistry/README.md | 8 +- java-profiler/README.md | 8 +- java-publicca/README.md | 8 +- java-pubsub/README.md | 8 +- java-rapidmigrationassessment/README.md | 8 +- java-recaptchaenterprise/README.md | 8 +- java-recommendations-ai/README.md | 8 +- java-recommender/README.md | 8 +- java-redis-cluster/README.md | 8 +- java-redis/README.md | 8 +- java-resourcemanager/README.md | 8 +- java-retail/README.md | 8 +- java-run/README.md | 8 +- java-saasservicemgmt/README.md | 8 +- java-scheduler/README.md | 8 +- java-secretmanager/README.md | 8 +- .../v1/SecretOperationsServiceClient.java | 1625 ++++ .../v1/SecretOperationsServiceSettings.java | 358 + .../secretmanager/v1/gapic_metadata.json | 27 + .../cloud/secretmanager/v1/package-info.java | 28 + ...ecretOperationsServiceCallableFactory.java | 115 + .../stub/GrpcSecretOperationsServiceStub.java | 400 + ...ecretOperationsServiceCallableFactory.java | 103 + .../HttpJsonSecretOperationsServiceStub.java | 631 ++ .../v1/stub/SecretOperationsServiceStub.java | 110 + .../SecretOperationsServiceStubSettings.java | 745 ++ .../reflect-config.json | 342 + .../v1/MockSecretOperationsService.java | 59 + .../v1/MockSecretOperationsServiceImpl.java | 186 + ...etOperationsServiceClientHttpJsonTest.java | 973 ++ .../v1/SecretOperationsServiceClientTest.java | 922 ++ .../v1/SecretOperationsServiceGrpc.java | 1110 +++ .../google/cloud/secretmanager/v1/Backup.java | 2828 ++++++ .../cloud/secretmanager/v1/BackupName.java | 226 + .../secretmanager/v1/BackupOrBuilder.java | 364 + .../secretmanager/v1/CreateBackupRequest.java | 1150 +++ .../v1/CreateBackupRequestOrBuilder.java | 136 + .../cloud/secretmanager/v1/CryptoKeyName.java | 264 + .../secretmanager/v1/DeleteBackupRequest.java | 823 ++ .../v1/DeleteBackupRequestOrBuilder.java | 90 + .../secretmanager/v1/GetBackupRequest.java | 626 ++ .../v1/GetBackupRequestOrBuilder.java | 62 + .../secretmanager/v1/ListBackupsRequest.java | 1305 +++ .../v1/ListBackupsRequestOrBuilder.java | 157 + .../secretmanager/v1/ListBackupsResponse.java | 1440 +++ .../v1/ListBackupsResponseOrBuilder.java | 173 + .../secretmanager/v1/OperationMetadata.java | 2940 ++++++ .../v1/OperationMetadataOrBuilder.java | 276 + .../v1/OperationsServiceProto.java | 363 + .../secretmanager/v1/ResourcesProto.java | 97 +- .../v1/RestoreBackupRequest.java | 1299 +++ .../v1/RestoreBackupRequestOrBuilder.java | 170 + .../google/cloud/secretmanager/v1/Secret.java | 342 +- .../secretmanager/v1/SecretOrBuilder.java | 30 + .../secretmanager/v1/UpdateBackupRequest.java | 1085 +++ .../v1/UpdateBackupRequestOrBuilder.java | 129 + .../secretmanager/v1/operations_service.proto | 416 + .../cloud/secretmanager/v1/resources.proto | 16 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../createbackup/AsyncCreateBackup.java | 54 + .../createbackup/AsyncCreateBackupLRO.java | 54 + .../createbackup/SyncCreateBackup.java | 49 + ...cCreateBackupLocationnameBackupString.java | 46 + .../SyncCreateBackupStringBackupString.java | 46 + .../deletebackup/AsyncDeleteBackup.java | 52 + .../deletebackup/AsyncDeleteBackupLRO.java | 53 + .../deletebackup/SyncDeleteBackup.java | 48 + .../SyncDeleteBackupBackupname.java | 43 + .../deletebackup/SyncDeleteBackupString.java | 43 + .../getbackup/AsyncGetBackup.java | 51 + .../getbackup/SyncGetBackup.java | 47 + .../getbackup/SyncGetBackupBackupname.java | 43 + .../getbackup/SyncGetBackupString.java | 43 + .../listbackups/AsyncListBackups.java | 57 + .../listbackups/AsyncListBackupsPaged.java | 65 + .../listbackups/SyncListBackups.java | 53 + .../SyncListBackupsLocationname.java | 45 + .../listbackups/SyncListBackupsString.java | 45 + .../restorebackup/AsyncRestoreBackup.java | 58 + .../restorebackup/AsyncRestoreBackupLRO.java | 59 + .../restorebackup/SyncRestoreBackup.java | 54 + ...oreBackupBackupnameLocationnameString.java | 49 + ...toreBackupBackupnameProjectnameString.java | 49 + ...ncRestoreBackupBackupnameStringString.java | 49 + ...RestoreBackupStringLocationnameString.java | 49 + ...cRestoreBackupStringProjectnameString.java | 49 + .../SyncRestoreBackupStringStringString.java | 49 + .../updatebackup/AsyncUpdateBackup.java | 53 + .../updatebackup/AsyncUpdateBackupLRO.java | 53 + .../updatebackup/SyncUpdateBackup.java | 48 + .../SyncUpdateBackupBackupFieldmask.java | 44 + .../createbackup/SyncCreateBackup.java | 54 + .../getbackup/SyncGetBackup.java | 57 + .../createbackup/SyncCreateBackup.java | 54 + .../getbackup/SyncGetBackup.java | 57 + java-securesourcemanager/README.md | 8 +- java-security-private-ca/README.md | 8 +- java-securitycenter-settings/README.md | 8 +- java-securitycenter/README.md | 8 +- java-securitycentermanagement/README.md | 8 +- java-securityposture/README.md | 8 +- java-service-control/README.md | 8 +- java-service-management/README.md | 8 +- java-service-usage/README.md | 8 +- java-servicedirectory/README.md | 8 +- java-servicehealth/README.md | 8 +- java-shell/README.md | 8 +- java-shopping-css/README.md | 8 +- java-shopping-merchant-accounts/README.md | 8 +- java-shopping-merchant-conversions/README.md | 8 +- java-shopping-merchant-datasources/README.md | 8 +- java-shopping-merchant-inventories/README.md | 8 +- .../README.md | 8 +- java-shopping-merchant-lfp/README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- java-shopping-merchant-products/README.md | 8 +- java-shopping-merchant-promotions/README.md | 8 +- java-shopping-merchant-quota/README.md | 8 +- java-shopping-merchant-reports/README.md | 8 +- java-shopping-merchant-reviews/README.md | 8 +- java-spanner/README.md | 8 +- .../connection/ConnectionOptionsTest.java | 14 +- .../GrpcInterceptorProviderTest.java | 3 +- java-spanneradapter/README.md | 8 +- java-speech/README.md | 8 +- java-storage-transfer/README.md | 8 +- java-storage/README.md | 10 +- java-storagebatchoperations/README.md | 8 +- java-storageinsights/README.md | 8 +- java-talent/README.md | 8 +- java-tasks/README.md | 8 +- java-telcoautomation/README.md | 8 +- java-texttospeech/README.md | 8 +- java-tpu/README.md | 8 +- java-trace/README.md | 8 +- java-translate/README.md | 8 +- java-valkey/README.md | 8 +- java-vectorsearch/README.md | 8 +- java-video-intelligence/README.md | 8 +- java-video-live-stream/README.md | 8 +- java-video-stitcher/README.md | 8 +- java-video-transcoder/README.md | 8 +- java-vision/README.md | 8 +- java-visionai/README.md | 8 +- java-vmmigration/README.md | 8 +- java-vmwareengine/README.md | 8 +- java-vpcaccess/README.md | 8 +- java-webrisk/README.md | 8 +- java-websecurityscanner/README.md | 8 +- java-workflow-executions/README.md | 8 +- java-workflows/README.md | 8 +- java-workloadidentity/README.md | 8 +- java-workloadmanager/README.md | 8 +- java-workspaceevents/README.md | 8 +- java-workstations/README.md | 8 +- 838 files changed, 202122 insertions(+), 9317 deletions(-) create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplication.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ArchiveUploadSource.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ArchiveUploadSourceOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRevisionRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRevisionRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRevisionRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRevisionRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Finding.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Frontmatter.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FrontmatterOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GcsSource.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GcsSourceOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationAgentRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationAgentRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationEndpointRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationEndpointRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationMcpServerRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationMcpServerRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetFindingRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetFindingRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetPublisherRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetPublisherRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillEncryptionSpecRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillEncryptionSpecRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRevisionRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRevisionRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Publisher.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PublisherName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PublisherOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ScanningConfig.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ScanningConfigOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchType.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Severity.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Skill.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpec.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevision.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevisionName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevisionOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillEncryptionSpecRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillEncryptionSpecRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/ai_application.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/finding.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/skill.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/skill_encryption_spec.proto create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/AsyncCreateSkill.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/AsyncCreateSkillLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkill.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkillLocationnameSkillString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkillStringSkillString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/AsyncCreateSkillRevision.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/AsyncCreateSkillRevisionLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevision.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevisionSkillnameSkillrevisionString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevisionStringSkillrevisionString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/AsyncDeleteSkill.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/AsyncDeleteSkillLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkill.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkillSkillname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkillString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/AsyncDeleteSkillRevision.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/AsyncDeleteSkillRevisionLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevision.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevisionSkillrevisionname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevisionString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/AsyncGetAiApplication.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplication.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplicationAiapplicationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplicationString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/AsyncGetAiApplicationAgent.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgent.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgentAgentname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgentString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/AsyncGetAiApplicationEndpoint.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpoint.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpointEndpointname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpointString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/AsyncGetAiApplicationMcpServer.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServer.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServerMcpservername.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServerString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/AsyncGetFinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFindingFindingname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFindingString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/AsyncGetPublisher.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisher.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisherPublishername.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisherString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/AsyncGetSkill.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkill.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkillSkillname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkillString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/AsyncGetSkillEncryptionSpec.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpec.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpecSkillencryptionspecname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpecString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/AsyncGetSkillRevision.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevision.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevisionSkillrevisionname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevisionString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/AsyncListAiApplicationAgents.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/AsyncListAiApplicationAgentsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgents.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgentsAiapplicationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgentsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/AsyncListAiApplicationEndpoints.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/AsyncListAiApplicationEndpointsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpoints.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpointsAiapplicationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpointsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/AsyncListAiApplicationMcpServers.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/AsyncListAiApplicationMcpServersPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServers.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServersAiapplicationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServersString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/AsyncListAiApplications.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/AsyncListAiApplicationsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplications.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplicationsLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplicationsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/AsyncListFindings.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/AsyncListFindingsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindings.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindingsLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindingsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/AsyncListPublishers.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/AsyncListPublishersPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishers.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishersLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishersString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/AsyncListSkillRevisions.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/AsyncListSkillRevisionsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisions.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisionsSkillname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisionsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/AsyncListSkills.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/AsyncListSkillsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkills.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkillsLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkillsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/AsyncSearchSkills.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/AsyncSearchSkillsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/SyncSearchSkills.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/AsyncUpdateSkill.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/AsyncUpdateSkillLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/SyncUpdateSkill.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/SyncUpdateSkillSkillFieldmask.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/AsyncUpdateSkillEncryptionSpec.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/AsyncUpdateSkillEncryptionSpecLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/SyncUpdateSkillEncryptionSpec.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/SyncUpdateSkillEncryptionSpecSkillencryptionspecFieldmask.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequestOrBuilder.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/AsyncUpdateThreadReadState.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadState.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadStateThreadreadstateFieldmask.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadata.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadataOrBuilder.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadata.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadataOrBuilder.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java create mode 100644 java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifest.java create mode 100644 java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifestOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifestProto.java create mode 100644 java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/Web.java create mode 100644 java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/WebOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/meet/meet_addon_manifest.proto create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppCommand.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppCommandOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptEndpointConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptEndpointConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptPerEventEndpointConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptPerEventEndpointConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfigName.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/CloudPubSubEndpointConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/CloudPubSubEndpointConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ConnectionConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ConnectionConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DialogflowEndpointConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DialogflowEndpointConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetChatAppConfigRequest.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetChatAppConfigRequestOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpEndpointConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpEndpointConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpPerEventEndpointConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpPerEventEndpointConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InteractiveFeatureConfig.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InteractiveFeatureConfigOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UpdateChatAppConfigRequest.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UpdateChatAppConfigRequestOrBuilder.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UrlPattern.java create mode 100644 java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UrlPatternOrBuilder.java create mode 100644 java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/AsyncGetChatAppConfig.java create mode 100644 java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfig.java create mode 100644 java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfigChatappconfigname.java create mode 100644 java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfigString.java create mode 100644 java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/AsyncUpdateChatAppConfig.java create mode 100644 java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/SyncUpdateChatAppConfig.java create mode 100644 java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/SyncUpdateChatAppConfigChatappconfigFieldmask.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateGatewayAdvertisedRouteRequest.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateGatewayAdvertisedRouteRequestOrBuilder.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteGatewayAdvertisedRouteRequest.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteGatewayAdvertisedRouteRequestOrBuilder.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Gateway.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRouteName.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRouteOrBuilder.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayOrBuilder.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetGatewayAdvertisedRouteRequest.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetGatewayAdvertisedRouteRequestOrBuilder.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesRequest.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesRequestOrBuilder.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesResponse.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesResponseOrBuilder.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopSpoke.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopSpokeOrBuilder.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGatewayAdvertisedRouteRequest.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGatewayAdvertisedRouteRequestOrBuilder.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/AsyncCreateGatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/AsyncCreateGatewayAdvertisedRouteLRO.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRouteSpokenameGatewayadvertisedrouteString.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRouteStringGatewayadvertisedrouteString.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/AsyncDeleteGatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/AsyncDeleteGatewayAdvertisedRouteLRO.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRouteGatewayadvertisedroutename.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRouteString.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/AsyncGetGatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRouteGatewayadvertisedroutename.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRouteString.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/AsyncListGatewayAdvertisedRoutes.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/AsyncListGatewayAdvertisedRoutesPaged.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutes.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutesSpokename.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutesString.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/AsyncUpdateGatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/AsyncUpdateGatewayAdvertisedRouteLRO.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/SyncUpdateGatewayAdvertisedRoute.java create mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/SyncUpdateGatewayAdvertisedRouteGatewayadvertisedrouteFieldmask.java create mode 100644 java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequest.java create mode 100644 java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequestOrBuilder.java create mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZone.java create mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZoneLRO.java create mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZone.java create mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZoneOdbdnszoneFieldmask.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClient.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceSettings.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceCallableFactory.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceStub.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceCallableFactory.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceStub.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStub.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStubSettings.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsService.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsServiceImpl.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientHttpJsonTest.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientTest.java create mode 100644 java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceGrpc.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Backup.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupName.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CryptoKeyName.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponse.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponseOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadata.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadataOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationsServiceProto.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/operations_service.proto create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetEndpoint.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackupLRO.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupLocationnameBackupString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupStringBackupString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackupLRO.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupBackupname.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/AsyncGetBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupBackupname.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackups.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackupsPaged.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackups.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsLocationname.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackupLRO.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameLocationnameString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameProjectnameString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameStringString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringLocationnameString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringProjectnameString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringStringString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackupLRO.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackupBackupFieldmask.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/createbackup/SyncCreateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/getbackup/SyncGetBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/createbackup/SyncCreateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/getbackup/SyncGetBackup.java diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 6b963e60ae1f..af62c4be7737 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-accessapproval' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.103.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-accessapproval/latest/overview [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-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.104.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-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index eb5b11fcaa42..fa778f5fb073 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.103.0 + 1.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-identity-accesscontextmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.103.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.103.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.104.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-admanager/README.md b/java-admanager/README.md index beeb0a931990..e506d16b3897 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads ad-manager - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.61.0' +implementation 'com.google.api-ads:ad-manager:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.61.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.62.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.62.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-advisorynotifications/README.md b/java-advisorynotifications/README.md index ed395eb6e320..4d79068949ee 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.91.0 + 0.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-advisorynotifications' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.91.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-advisorynotifications/latest/overview [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-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.92.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-agentidentity/README.md b/java-agentidentity/README.md index 12057602bcda..4cded7678d53 100644 --- a/java-agentidentity/README.md +++ b/java-agentidentity/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-agentidentity - 0.8.0 + 0.9.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-agentidentity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-agentidentity:0.8.0' +implementation 'com.google.cloud:google-cloud-agentidentity:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.9.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentidentity/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-agentidentity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.9.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-agentregistry/README.md b/java-agentregistry/README.md index b79f5dd6baec..53831757a9d1 100644 --- a/java-agentregistry/README.md +++ b/java-agentregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-agentregistry - 0.9.0 + 0.10.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-agentregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-agentregistry:0.9.0' +implementation 'com.google.cloud:google-cloud-agentregistry:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.10.0" ``` ## Authentication @@ -188,7 +188,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentregistry/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-agentregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.10.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-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java index 51ef4d4cb78d..70fa58b0a8ce 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java @@ -47,7 +47,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: Service for managing Agents, Endpoints, McpServers, Services, and Bindings. + * Service Description: Service for managing Agent Registry resources. * *

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: @@ -59,7 +59,7 @@ * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + * AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]"); * Agent response = agentRegistryClient.getAgent(name); * } * } @@ -448,294 +448,4232 @@ * * * - *

ListLocations - *

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. + *

CreateSkill + *

========================================================================= # Skills Collection APIs + *

Creates a Skill resource container, optionally publishing the initial SkillRevision inline in a single, atomic CRUD roundtrip. * *

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

* + *

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

+ * *

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

* * * * - *

GetLocation - *

Gets information about a location. + *

GetSkill + *

Fetches the active configuration and metadata of a Skill. * *

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

* + *

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

+ * *

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

* * * - * - * - *

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 AgentRegistrySettings 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
- * AgentRegistrySettings agentRegistrySettings =
- *     AgentRegistrySettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
- * }
- * - *

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
- * AgentRegistrySettings agentRegistrySettings =
- *     AgentRegistrySettings.newBuilder().setEndpoint(myEndpoint).build();
- * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
- * }
- * - *

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
- * AgentRegistrySettings agentRegistrySettings =
- *     AgentRegistrySettings.newHttpJsonBuilder().build();
- * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class AgentRegistryClient implements BackgroundResource { - private final @Nullable AgentRegistrySettings settings; - private final AgentRegistryStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of AgentRegistryClient with default settings. */ - public static final AgentRegistryClient create() throws IOException { - return create(AgentRegistrySettings.newBuilder().build()); - } - - /** - * Constructs an instance of AgentRegistryClient, 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 AgentRegistryClient create(AgentRegistrySettings settings) - throws IOException { - return new AgentRegistryClient(settings); - } - - /** - * Constructs an instance of AgentRegistryClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(AgentRegistrySettings). - */ - public static final AgentRegistryClient create(AgentRegistryStub stub) { - return new AgentRegistryClient(stub); - } - - /** - * Constructs an instance of AgentRegistryClient, 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 AgentRegistryClient(AgentRegistrySettings settings) throws IOException { - this.settings = settings; - this.stub = ((AgentRegistryStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected AgentRegistryClient(AgentRegistryStub 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 @Nullable AgentRegistrySettings getSettings() { - return settings; - } - - public AgentRegistryStub 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. - /** - * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Parent value for ListAgentsRequest - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAgentsPagedResponse listAgents(@Nullable LocationName parent) { - ListAgentsRequest request = - ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listAgents(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Parent value for ListAgentsRequest - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAgentsPagedResponse listAgents(String parent) { - ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent).build(); - return listAgents(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   ListAgentsRequest request =
-   *       ListAgentsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (Agent element : agentRegistryClient.listAgents(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 ListAgentsPagedResponse listAgents(ListAgentsRequest request) { - return listAgentsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   ListAgentsRequest request =
-   *       ListAgentsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
+ *    
+ *      

UpdateSkill + *

Updates Skill metadata or overrides active pointers/state using REST standard PATCH. + * + *

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

+ *
    + *
  • updateSkillAsync(UpdateSkillRequest request) + *

+ *

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

+ *
    + *
  • updateSkillAsync(Skill skill, 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.

+ *
    + *
  • updateSkillOperationCallable() + *

  • updateSkillCallable() + *

+ * + * + * + *

DeleteSkill + *

Deletes a Skill container along with all its revisions. + * + *

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

+ *
    + *
  • deleteSkillAsync(DeleteSkillRequest request) + *

+ *

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

+ *
    + *
  • deleteSkillAsync(SkillName name) + *

  • deleteSkillAsync(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.

+ *
    + *
  • deleteSkillOperationCallable() + *

  • deleteSkillCallable() + *

+ * + * + * + *

ListSkills + *

Lists logical Skills available in a project. + * + *

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

+ *
    + *
  • listSkills(ListSkillsRequest request) + *

+ *

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

+ *
    + *
  • listSkills(LocationName parent) + *

  • listSkills(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.

+ *
    + *
  • listSkillsPagedCallable() + *

  • listSkillsCallable() + *

+ * + * + * + *

SearchSkills + *

Custom deep-search method to filter by frontmatter or query SKILL.md text blobs. + * + *

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

+ *
    + *
  • searchSkills(SearchSkillsRequest request) + *

+ *

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

+ *
    + *
  • searchSkillsPagedCallable() + *

  • searchSkillsCallable() + *

+ * + * + * + *

CreateSkillRevision + *

Creates a new immutable revision and triggers validation pipelines. + * + *

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

+ *
    + *
  • createSkillRevisionAsync(CreateSkillRevisionRequest request) + *

+ *

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

+ *
    + *
  • createSkillRevisionAsync(SkillName parent, SkillRevision skillRevision, String skillRevisionId) + *

  • createSkillRevisionAsync(String parent, SkillRevision skillRevision, String skillRevisionId) + *

+ *

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

+ *
    + *
  • createSkillRevisionOperationCallable() + *

  • createSkillRevisionCallable() + *

+ * + * + * + *

GetSkillRevision + *

Gets details of a single immutable Revision. + * + *

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

+ *
    + *
  • getSkillRevision(GetSkillRevisionRequest request) + *

+ *

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

+ *
    + *
  • getSkillRevision(SkillRevisionName name) + *

  • getSkillRevision(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.

+ *
    + *
  • getSkillRevisionCallable() + *

+ * + * + * + *

DeleteSkillRevision + *

Deletes a specific revision (restricted to admins to purge accidentally committed secrets). + * + *

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

+ *
    + *
  • deleteSkillRevisionAsync(DeleteSkillRevisionRequest request) + *

+ *

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

+ *
    + *
  • deleteSkillRevisionAsync(SkillRevisionName name) + *

  • deleteSkillRevisionAsync(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.

+ *
    + *
  • deleteSkillRevisionOperationCallable() + *

  • deleteSkillRevisionCallable() + *

+ * + * + * + *

ListSkillRevisions + *

Lists all revisions belonging to a parent Skill. + * + *

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

+ *
    + *
  • listSkillRevisions(ListSkillRevisionsRequest request) + *

+ *

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

+ *
    + *
  • listSkillRevisions(SkillName parent) + *

  • listSkillRevisions(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.

+ *
    + *
  • listSkillRevisionsPagedCallable() + *

  • listSkillRevisionsCallable() + *

+ * + * + * + *

GetPublisher + *

Fetches details of a specific Publisher. + * + *

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

+ *
    + *
  • getPublisher(GetPublisherRequest request) + *

+ *

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

+ *
    + *
  • getPublisher(PublisherName name) + *

  • getPublisher(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.

+ *
    + *
  • getPublisherCallable() + *

+ * + * + * + *

ListPublishers + *

Lists all Publishers in a location. + * + *

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

+ *
    + *
  • listPublishers(ListPublishersRequest request) + *

+ *

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

+ *
    + *
  • listPublishers(LocationName parent) + *

  • listPublishers(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.

+ *
    + *
  • listPublishersPagedCallable() + *

  • listPublishersCallable() + *

+ * + * + * + *

GetAiApplication + *

Gets details of a single AI Application. + * + *

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

+ *
    + *
  • getAiApplication(GetAiApplicationRequest request) + *

+ *

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

+ *
    + *
  • getAiApplication(AiApplicationName name) + *

  • getAiApplication(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.

+ *
    + *
  • getAiApplicationCallable() + *

+ * + * + * + *

ListAiApplications + *

Lists AI Applications in a given project and location. + * + *

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

+ *
    + *
  • listAiApplications(ListAiApplicationsRequest request) + *

+ *

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

+ *
    + *
  • listAiApplications(LocationName parent) + *

  • listAiApplications(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.

+ *
    + *
  • listAiApplicationsPagedCallable() + *

  • listAiApplicationsCallable() + *

+ * + * + * + *

GetAiApplicationAgent + *

Gets details of a single Agent under an AI Application. + * + *

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

+ *
    + *
  • getAiApplicationAgent(GetAiApplicationAgentRequest request) + *

+ *

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

+ *
    + *
  • getAiApplicationAgent(AgentName name) + *

  • getAiApplicationAgent(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.

+ *
    + *
  • getAiApplicationAgentCallable() + *

+ * + * + * + *

ListAiApplicationAgents + *

Lists Agents under an AI Application. + * + *

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

+ *
    + *
  • listAiApplicationAgents(ListAiApplicationAgentsRequest request) + *

+ *

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

+ *
    + *
  • listAiApplicationAgents(AiApplicationName parent) + *

  • listAiApplicationAgents(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.

+ *
    + *
  • listAiApplicationAgentsPagedCallable() + *

  • listAiApplicationAgentsCallable() + *

+ * + * + * + *

GetAiApplicationMcpServer + *

Gets details of a single McpServer under an AI Application. + * + *

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

+ *
    + *
  • getAiApplicationMcpServer(GetAiApplicationMcpServerRequest request) + *

+ *

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

+ *
    + *
  • getAiApplicationMcpServer(McpServerName name) + *

  • getAiApplicationMcpServer(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.

+ *
    + *
  • getAiApplicationMcpServerCallable() + *

+ * + * + * + *

ListAiApplicationMcpServers + *

Lists McpServers under an AI Application. + * + *

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

+ *
    + *
  • listAiApplicationMcpServers(ListAiApplicationMcpServersRequest request) + *

+ *

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

+ *
    + *
  • listAiApplicationMcpServers(AiApplicationName parent) + *

  • listAiApplicationMcpServers(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.

+ *
    + *
  • listAiApplicationMcpServersPagedCallable() + *

  • listAiApplicationMcpServersCallable() + *

+ * + * + * + *

GetFinding + *

Gets details of a single Finding. + * + *

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

+ *
    + *
  • getFinding(GetFindingRequest request) + *

+ *

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

+ *
    + *
  • getFinding(FindingName name) + *

  • getFinding(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.

+ *
    + *
  • getFindingCallable() + *

+ * + * + * + *

ListFindings + *

Lists Findings in a given project and location. + * + *

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

+ *
    + *
  • listFindings(ListFindingsRequest request) + *

+ *

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

+ *
    + *
  • listFindings(LocationName parent) + *

  • listFindings(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.

+ *
    + *
  • listFindingsPagedCallable() + *

  • listFindingsCallable() + *

+ * + * + * + *

GetAiApplicationEndpoint + *

Gets details of a single Endpoint under an AI Application. + * + *

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

+ *
    + *
  • getAiApplicationEndpoint(GetAiApplicationEndpointRequest request) + *

+ *

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

+ *
    + *
  • getAiApplicationEndpoint(EndpointName name) + *

  • getAiApplicationEndpoint(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.

+ *
    + *
  • getAiApplicationEndpointCallable() + *

+ * + * + * + *

ListAiApplicationEndpoints + *

Lists Endpoints under an AI Application. + * + *

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

+ *
    + *
  • listAiApplicationEndpoints(ListAiApplicationEndpointsRequest request) + *

+ *

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

+ *
    + *
  • listAiApplicationEndpoints(AiApplicationName parent) + *

  • listAiApplicationEndpoints(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.

+ *
    + *
  • listAiApplicationEndpointsPagedCallable() + *

  • listAiApplicationEndpointsCallable() + *

+ * + * + * + *

GetSkillEncryptionSpec + *

========================================================================= # Skill Encryption Spec Service Methods + *

Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific project and location. + * + *

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

+ *
    + *
  • getSkillEncryptionSpec(GetSkillEncryptionSpecRequest request) + *

+ *

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

+ *
    + *
  • getSkillEncryptionSpec(SkillEncryptionSpecName name) + *

  • getSkillEncryptionSpec(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.

+ *
    + *
  • getSkillEncryptionSpecCallable() + *

+ * + * + * + *

UpdateSkillEncryptionSpec + *

Updates the customer-managed encryption key (CMEK) configuration for Skills in a specific project and location. + *

This method is only allowed when no Skills exist in the target project and location. If any Skill already exists in the location, the request fails with `FAILED_PRECONDITION`. + * + *

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

+ *
    + *
  • updateSkillEncryptionSpecAsync(UpdateSkillEncryptionSpecRequest request) + *

+ *

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

+ *
    + *
  • updateSkillEncryptionSpecAsync(SkillEncryptionSpec skillEncryptionSpec, 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.

+ *
    + *
  • updateSkillEncryptionSpecOperationCallable() + *

  • updateSkillEncryptionSpecCallable() + *

+ * + * + * + *

ListLocations + *

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.

+ *
    + *
  • 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() + *

+ * + * + * + * + *

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 AgentRegistrySettings 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
+ * AgentRegistrySettings agentRegistrySettings =
+ *     AgentRegistrySettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
+ * }
+ * + *

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
+ * AgentRegistrySettings agentRegistrySettings =
+ *     AgentRegistrySettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
+ * }
+ * + *

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
+ * AgentRegistrySettings agentRegistrySettings =
+ *     AgentRegistrySettings.newHttpJsonBuilder().build();
+ * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class AgentRegistryClient implements BackgroundResource { + private final @Nullable AgentRegistrySettings settings; + private final AgentRegistryStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AgentRegistryClient with default settings. */ + public static final AgentRegistryClient create() throws IOException { + return create(AgentRegistrySettings.newBuilder().build()); + } + + /** + * Constructs an instance of AgentRegistryClient, 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 AgentRegistryClient create(AgentRegistrySettings settings) + throws IOException { + return new AgentRegistryClient(settings); + } + + /** + * Constructs an instance of AgentRegistryClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(AgentRegistrySettings). + */ + public static final AgentRegistryClient create(AgentRegistryStub stub) { + return new AgentRegistryClient(stub); + } + + /** + * Constructs an instance of AgentRegistryClient, 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 AgentRegistryClient(AgentRegistrySettings settings) throws IOException { + this.settings = settings; + this.stub = ((AgentRegistryStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AgentRegistryClient(AgentRegistryStub 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 @Nullable AgentRegistrySettings getSettings() { + return settings; + } + + public AgentRegistryStub 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. + /** + * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListAgentsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentsPagedResponse listAgents(@Nullable LocationName parent) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListAgentsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentsPagedResponse listAgents(String parent) { + ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent).build(); + return listAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListAgentsRequest request =
+   *       ListAgentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Agent element : agentRegistryClient.listAgents(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 ListAgentsPagedResponse listAgents(ListAgentsRequest request) { + return listAgentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListAgentsRequest request =
+   *       ListAgentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.listAgentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Agent element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listAgentsPagedCallable() { + return stub.listAgentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListAgentsRequest request =
+   *       ListAgentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAgentsResponse response = agentRegistryClient.listAgentsCallable().call(request);
+   *     for (Agent element : response.getAgentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listAgentsCallable() { + return stub.listAgentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for SearchAgentsRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAgentsPagedResponse searchAgents(@Nullable LocationName parent) { + SearchAgentsRequest request = + SearchAgentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return searchAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for SearchAgentsRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAgentsPagedResponse searchAgents(String parent) { + SearchAgentsRequest request = SearchAgentsRequest.newBuilder().setParent(parent).build(); + return searchAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SearchAgentsRequest request =
+   *       SearchAgentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSearchString("searchString120312793")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Agent element : agentRegistryClient.searchAgents(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 SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request) { + return searchAgentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SearchAgentsRequest request =
+   *       SearchAgentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSearchString("searchString120312793")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.searchAgentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Agent element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchAgentsPagedCallable() { + return stub.searchAgentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SearchAgentsRequest request =
+   *       SearchAgentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSearchString("searchString120312793")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchAgentsResponse response = agentRegistryClient.searchAgentsCallable().call(request);
+   *     for (Agent element : response.getAgentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable searchAgentsCallable() { + return stub.searchAgentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Agent. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]");
+   *   Agent response = agentRegistryClient.getAgent(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent getAgent(@Nullable AgentName name) { + GetAgentRequest request = + GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Agent. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name =
+   *       AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+   *   Agent response = agentRegistryClient.getAgent(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent getAgent(String name) { + GetAgentRequest request = GetAgentRequest.newBuilder().setName(name).build(); + return getAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Agent. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetAgentRequest request =
+   *       GetAgentRequest.newBuilder()
+   *           .setName(
+   *               AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]")
+   *                   .toString())
+   *           .build();
+   *   Agent response = agentRegistryClient.getAgent(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 Agent getAgent(GetAgentRequest request) { + return getAgentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Agent. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetAgentRequest request =
+   *       GetAgentRequest.newBuilder()
+   *           .setName(
+   *               AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.getAgentCallable().futureCall(request);
+   *   // Do something.
+   *   Agent response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAgentCallable() { + return stub.getAgentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location to list endpoints in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName parent) { + ListEndpointsRequest request = + ListEndpointsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEndpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location to list endpoints in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEndpointsPagedResponse listEndpoints(String parent) { + ListEndpointsRequest request = ListEndpointsRequest.newBuilder().setParent(parent).build(); + return listEndpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListEndpointsRequest request =
+   *       ListEndpointsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Endpoint element : agentRegistryClient.listEndpoints(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 ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest request) { + return listEndpointsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListEndpointsRequest request =
+   *       ListEndpointsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.listEndpointsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Endpoint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEndpointsPagedCallable() { + return stub.listEndpointsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListEndpointsRequest request =
+   *       ListEndpointsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListEndpointsResponse response = agentRegistryClient.listEndpointsCallable().call(request);
+   *     for (Endpoint element : response.getEndpointsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listEndpointsCallable() { + return stub.listEndpointsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Endpoint. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   EndpointName name =
+   *       EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
+   *   Endpoint response = agentRegistryClient.getEndpoint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the endpoint to retrieve. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Endpoint getEndpoint(@Nullable EndpointName name) { + GetEndpointRequest request = + GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEndpoint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Endpoint. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name =
+   *       EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *           .toString();
+   *   Endpoint response = agentRegistryClient.getEndpoint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the endpoint to retrieve. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Endpoint getEndpoint(String name) { + GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name).build(); + return getEndpoint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Endpoint. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetEndpointRequest request =
+   *       GetEndpointRequest.newBuilder()
+   *           .setName(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .build();
+   *   Endpoint response = agentRegistryClient.getEndpoint(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 Endpoint getEndpoint(GetEndpointRequest request) { + return getEndpointCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Endpoint. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetEndpointRequest request =
+   *       GetEndpointRequest.newBuilder()
+   *           .setName(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.getEndpointCallable().futureCall(request);
+   *   // Do something.
+   *   Endpoint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getEndpointCallable() { + return stub.getEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMcpServersPagedResponse listMcpServers(@Nullable LocationName parent) { + ListMcpServersRequest request = + ListMcpServersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMcpServersPagedResponse listMcpServers(String parent) { + ListMcpServersRequest request = ListMcpServersRequest.newBuilder().setParent(parent).build(); + return listMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListMcpServersRequest request =
+   *       ListMcpServersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (McpServer element : agentRegistryClient.listMcpServers(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 ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest request) { + return listMcpServersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListMcpServersRequest request =
+   *       ListMcpServersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.listMcpServersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (McpServer element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMcpServersPagedCallable() { + return stub.listMcpServersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListMcpServersRequest request =
+   *       ListMcpServersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListMcpServersResponse response =
+   *         agentRegistryClient.listMcpServersCallable().call(request);
+   *     for (McpServer element : response.getMcpServersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMcpServersCallable() { + return stub.listMcpServersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for SearchMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchMcpServersPagedResponse searchMcpServers(@Nullable LocationName parent) { + SearchMcpServersRequest request = + SearchMcpServersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return searchMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for SearchMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchMcpServersPagedResponse searchMcpServers(String parent) { + SearchMcpServersRequest request = + SearchMcpServersRequest.newBuilder().setParent(parent).build(); + return searchMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SearchMcpServersRequest request =
+   *       SearchMcpServersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSearchString("searchString120312793")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (McpServer element : agentRegistryClient.searchMcpServers(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 SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequest request) { + return searchMcpServersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SearchMcpServersRequest request =
+   *       SearchMcpServersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSearchString("searchString120312793")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.searchMcpServersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (McpServer element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchMcpServersPagedCallable() { + return stub.searchMcpServersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SearchMcpServersRequest request =
+   *       SearchMcpServersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSearchString("searchString120312793")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchMcpServersResponse response =
+   *         agentRegistryClient.searchMcpServersCallable().call(request);
+   *     for (McpServer element : response.getMcpServersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchMcpServersCallable() { + return stub.searchMcpServersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single McpServer. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   McpServerName name =
+   *       McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]");
+   *   McpServer response = agentRegistryClient.getMcpServer(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final McpServer getMcpServer(@Nullable McpServerName name) { + GetMcpServerRequest request = + GetMcpServerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMcpServer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single McpServer. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name =
+   *       McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]")
+   *           .toString();
+   *   McpServer response = agentRegistryClient.getMcpServer(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final McpServer getMcpServer(String name) { + GetMcpServerRequest request = GetMcpServerRequest.newBuilder().setName(name).build(); + return getMcpServer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single McpServer. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetMcpServerRequest request =
+   *       GetMcpServerRequest.newBuilder()
+   *           .setName(
+   *               McpServerName.ofProjectLocationMcpServerName(
+   *                       "[PROJECT]", "[LOCATION]", "[MCP_SERVER]")
+   *                   .toString())
+   *           .build();
+   *   McpServer response = agentRegistryClient.getMcpServer(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 McpServer getMcpServer(GetMcpServerRequest request) { + return getMcpServerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single McpServer. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetMcpServerRequest request =
+   *       GetMcpServerRequest.newBuilder()
+   *           .setName(
+   *               McpServerName.ofProjectLocationMcpServerName(
+   *                       "[PROJECT]", "[LOCATION]", "[MCP_SERVER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.getMcpServerCallable().futureCall(request);
+   *   // Do something.
+   *   McpServer response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getMcpServerCallable() { + return stub.getMcpServerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Service element : agentRegistryClient.listServices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServicesPagedResponse listServices(@Nullable LocationName parent) { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Service element : agentRegistryClient.listServices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServicesPagedResponse listServices(String parent) { + ListServicesRequest request = ListServicesRequest.newBuilder().setParent(parent).build(); + return listServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListServicesRequest request =
+   *       ListServicesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Service element : agentRegistryClient.listServices(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 ListServicesPagedResponse listServices(ListServicesRequest request) { + return listServicesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListServicesRequest request =
+   *       ListServicesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.listServicesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Service element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listServicesPagedCallable() { + return stub.listServicesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListServicesRequest request =
+   *       ListServicesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListServicesResponse response = agentRegistryClient.listServicesCallable().call(request);
+   *     for (Service element : response.getServicesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listServicesCallable() { + return stub.listServicesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
+   *   Service response = agentRegistryClient.getService(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Service getService(@Nullable ServiceName name) { + GetServiceRequest request = + GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
+   *   Service response = agentRegistryClient.getService(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Service getService(String name) { + GetServiceRequest request = GetServiceRequest.newBuilder().setName(name).build(); + return getService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetServiceRequest request =
+   *       GetServiceRequest.newBuilder()
+   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+   *           .build();
+   *   Service response = agentRegistryClient.getService(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 Service getService(GetServiceRequest request) { + return getServiceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetServiceRequest request =
+   *       GetServiceRequest.newBuilder()
+   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.getServiceCallable().futureCall(request);
+   *   // Do something.
+   *   Service response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getServiceCallable() { + return stub.getServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Service service = Service.newBuilder().build();
+   *   String serviceId = "serviceId-194185552";
+   *   Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get();
+   * }
+   * }
+ * + * @param parent Required. The project and location to create the Service in. Expected format: + * `projects/{project}/locations/{location}`. + * @param service Required. The Service resource that is being created. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @param serviceId Required. The ID to use for the service, which will become the final component + * of the service's resource name. + *

This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createServiceAsync( + @Nullable LocationName parent, Service service, String serviceId) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setService(service) + .setServiceId(serviceId) + .build(); + return createServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Service service = Service.newBuilder().build();
+   *   String serviceId = "serviceId-194185552";
+   *   Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get();
+   * }
+   * }
+ * + * @param parent Required. The project and location to create the Service in. Expected format: + * `projects/{project}/locations/{location}`. + * @param service Required. The Service resource that is being created. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @param serviceId Required. The ID to use for the service, which will become the final component + * of the service's resource name. + *

This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createServiceAsync( + String parent, Service service, String serviceId) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(parent) + .setService(service) + .setServiceId(serviceId) + .build(); + return createServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateServiceRequest request =
+   *       CreateServiceRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setServiceId("serviceId-194185552")
+   *           .setService(Service.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Service response = agentRegistryClient.createServiceAsync(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 createServiceAsync( + CreateServiceRequest request) { + return createServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateServiceRequest request =
+   *       CreateServiceRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setServiceId("serviceId-194185552")
+   *           .setService(Service.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.createServiceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Service response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createServiceOperationCallable() { + return stub.createServiceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateServiceRequest request =
+   *       CreateServiceRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setServiceId("serviceId-194185552")
+   *           .setService(Service.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.createServiceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createServiceCallable() { + return stub.createServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   Service service = Service.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Service response = agentRegistryClient.updateServiceAsync(service, updateMask).get();
+   * }
+   * }
+ * + * @param service Required. The Service resource that is being updated. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * Service resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields present in the request will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateServiceAsync( + Service service, FieldMask updateMask) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder().setService(service).setUpdateMask(updateMask).build(); + return updateServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateServiceRequest request =
+   *       UpdateServiceRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setService(Service.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Service response = agentRegistryClient.updateServiceAsync(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 updateServiceAsync( + UpdateServiceRequest request) { + return updateServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateServiceRequest request =
+   *       UpdateServiceRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setService(Service.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.updateServiceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Service response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateServiceOperationCallable() { + return stub.updateServiceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateServiceRequest request =
+   *       UpdateServiceRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setService(Service.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.updateServiceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateServiceCallable() { + return stub.updateServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
+   *   agentRegistryClient.deleteServiceAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteServiceAsync( + @Nullable ServiceName name) { + DeleteServiceRequest request = + DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
+   *   agentRegistryClient.deleteServiceAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteServiceAsync(String name) { + DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name).build(); + return deleteServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteServiceRequest request =
+   *       DeleteServiceRequest.newBuilder()
+   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   agentRegistryClient.deleteServiceAsync(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 deleteServiceAsync( + DeleteServiceRequest request) { + return deleteServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteServiceRequest request =
+   *       DeleteServiceRequest.newBuilder()
+   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.deleteServiceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteServiceOperationCallable() { + return stub.deleteServiceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteServiceRequest request =
+   *       DeleteServiceRequest.newBuilder()
+   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.deleteServiceCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteServiceCallable() { + return stub.deleteServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location to list bindings in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBindingsPagedResponse listBindings(@Nullable LocationName parent) { + ListBindingsRequest request = + ListBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location to list bindings in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBindingsPagedResponse listBindings(String parent) { + ListBindingsRequest request = ListBindingsRequest.newBuilder().setParent(parent).build(); + return listBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListBindingsRequest request =
+   *       ListBindingsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Binding element : agentRegistryClient.listBindings(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 ListBindingsPagedResponse listBindings(ListBindingsRequest request) { + return listBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListBindingsRequest request =
+   *       ListBindingsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.listBindingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Binding element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBindingsPagedCallable() { + return stub.listBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListBindingsRequest request =
+   *       ListBindingsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListBindingsResponse response = agentRegistryClient.listBindingsCallable().call(request);
+   *     for (Binding element : response.getBindingsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listBindingsCallable() { + return stub.listBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]");
+   *   Binding response = agentRegistryClient.getBinding(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Binding. Format: + * `projects/{project}/locations/{location}/bindings/{binding}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Binding getBinding(@Nullable BindingName name) { + GetBindingRequest request = + GetBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString();
+   *   Binding response = agentRegistryClient.getBinding(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Binding. Format: + * `projects/{project}/locations/{location}/bindings/{binding}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Binding getBinding(String name) { + GetBindingRequest request = GetBindingRequest.newBuilder().setName(name).build(); + return getBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetBindingRequest request =
+   *       GetBindingRequest.newBuilder()
+   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+   *           .build();
+   *   Binding response = agentRegistryClient.getBinding(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 Binding getBinding(GetBindingRequest request) { + return getBindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetBindingRequest request =
+   *       GetBindingRequest.newBuilder()
+   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.getBindingCallable().futureCall(request);
+   *   // Do something.
+   *   Binding response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBindingCallable() { + return stub.getBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Binding binding = Binding.newBuilder().build();
+   *   String bindingId = "bindingId-920966528";
+   *   Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get();
+   * }
+   * }
+ * + * @param parent Required. The project and location to create the Binding in. Expected format: + * `projects/{project}/locations/{location}`. + * @param binding Required. The Binding resource that is being created. + * @param bindingId Required. The ID to use for the binding, which will become the final component + * of the binding's resource name. + *

This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it + * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBindingAsync( + @Nullable LocationName parent, Binding binding, String bindingId) { + CreateBindingRequest request = + CreateBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBinding(binding) + .setBindingId(bindingId) + .build(); + return createBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Binding binding = Binding.newBuilder().build();
+   *   String bindingId = "bindingId-920966528";
+   *   Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get();
+   * }
+   * }
+ * + * @param parent Required. The project and location to create the Binding in. Expected format: + * `projects/{project}/locations/{location}`. + * @param binding Required. The Binding resource that is being created. + * @param bindingId Required. The ID to use for the binding, which will become the final component + * of the binding's resource name. + *

This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it + * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBindingAsync( + String parent, Binding binding, String bindingId) { + CreateBindingRequest request = + CreateBindingRequest.newBuilder() + .setParent(parent) + .setBinding(binding) + .setBindingId(bindingId) + .build(); + return createBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateBindingRequest request =
+   *       CreateBindingRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBindingId("bindingId-920966528")
+   *           .setBinding(Binding.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Binding response = agentRegistryClient.createBindingAsync(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 createBindingAsync( + CreateBindingRequest request) { + return createBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateBindingRequest request =
+   *       CreateBindingRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBindingId("bindingId-920966528")
+   *           .setBinding(Binding.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.createBindingOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Binding response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createBindingOperationCallable() { + return stub.createBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateBindingRequest request =
+   *       CreateBindingRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBindingId("bindingId-920966528")
+   *           .setBinding(Binding.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.createBindingCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBindingCallable() { + return stub.createBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   Binding binding = Binding.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Binding response = agentRegistryClient.updateBindingAsync(binding, updateMask).get();
+   * }
+   * }
+ * + * @param binding Required. The Binding resource that is being updated. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * Binding resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields present in the request will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBindingAsync( + Binding binding, FieldMask updateMask) { + UpdateBindingRequest request = + UpdateBindingRequest.newBuilder().setBinding(binding).setUpdateMask(updateMask).build(); + return updateBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateBindingRequest request =
+   *       UpdateBindingRequest.newBuilder()
+   *           .setBinding(Binding.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Binding response = agentRegistryClient.updateBindingAsync(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 updateBindingAsync( + UpdateBindingRequest request) { + return updateBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateBindingRequest request =
+   *       UpdateBindingRequest.newBuilder()
+   *           .setBinding(Binding.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.updateBindingOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Binding response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateBindingOperationCallable() { + return stub.updateBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateBindingRequest request =
+   *       UpdateBindingRequest.newBuilder()
+   *           .setBinding(Binding.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.updateBindingCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBindingCallable() { + return stub.updateBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]");
+   *   agentRegistryClient.deleteBindingAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Binding. Format: + * `projects/{project}/locations/{location}/bindings/{binding}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBindingAsync( + @Nullable BindingName name) { + DeleteBindingRequest request = + DeleteBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString();
+   *   agentRegistryClient.deleteBindingAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Binding. Format: + * `projects/{project}/locations/{location}/bindings/{binding}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBindingAsync(String name) { + DeleteBindingRequest request = DeleteBindingRequest.newBuilder().setName(name).build(); + return deleteBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteBindingRequest request =
+   *       DeleteBindingRequest.newBuilder()
+   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   agentRegistryClient.deleteBindingAsync(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 deleteBindingAsync( + DeleteBindingRequest request) { + return deleteBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteBindingRequest request =
+   *       DeleteBindingRequest.newBuilder()
+   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.deleteBindingOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteBindingOperationCallable() { + return stub.deleteBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Binding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteBindingRequest request =
+   *       DeleteBindingRequest.newBuilder()
+   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.deleteBindingCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBindingCallable() { + return stub.deleteBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches available Bindings. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchAvailableBindingsPagedResponse fetchAvailableBindings( + @Nullable LocationName parent) { + FetchAvailableBindingsRequest request = + FetchAvailableBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return fetchAvailableBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches available Bindings. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(String parent) { + FetchAvailableBindingsRequest request = + FetchAvailableBindingsRequest.newBuilder().setParent(parent).build(); + return fetchAvailableBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches available Bindings. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   FetchAvailableBindingsRequest request =
+   *       FetchAvailableBindingsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(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 FetchAvailableBindingsPagedResponse fetchAvailableBindings( + FetchAvailableBindingsRequest request) { + return fetchAvailableBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches available Bindings. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   FetchAvailableBindingsRequest request =
+   *       FetchAvailableBindingsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.fetchAvailableBindingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Binding element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + fetchAvailableBindingsPagedCallable() { + return stub.fetchAvailableBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches available Bindings. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   FetchAvailableBindingsRequest request =
+   *       FetchAvailableBindingsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     FetchAvailableBindingsResponse response =
+   *         agentRegistryClient.fetchAvailableBindingsCallable().call(request);
+   *     for (Binding element : response.getBindingsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + fetchAvailableBindingsCallable() { + return stub.fetchAvailableBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ========================================================================= # Skills Collection + * APIs + * + *

Creates a Skill resource container, optionally publishing the initial SkillRevision inline + * in a single, atomic CRUD roundtrip. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Skill skill = Skill.newBuilder().build();
+   *   String skillId = "skillId2147320652";
+   *   Skill response = agentRegistryClient.createSkillAsync(parent, skill, skillId).get();
+   * }
+   * }
+ * + * @param parent Required. The project and location location to bootstrap. + * @param skill Required. Skill container body config. + * @param skillId Required. Custom, user-defined unique container identifier. Must be unique + * within the parent project and location. This value should be 4-64 characters, and valid + * characters are `/[a-z][0-9]-/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSkillAsync( + @Nullable LocationName parent, Skill skill, String skillId) { + CreateSkillRequest request = + CreateSkillRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSkill(skill) + .setSkillId(skillId) + .build(); + return createSkillAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ========================================================================= # Skills Collection + * APIs + * + *

Creates a Skill resource container, optionally publishing the initial SkillRevision inline + * in a single, atomic CRUD roundtrip. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Skill skill = Skill.newBuilder().build();
+   *   String skillId = "skillId2147320652";
+   *   Skill response = agentRegistryClient.createSkillAsync(parent, skill, skillId).get();
+   * }
+   * }
+ * + * @param parent Required. The project and location location to bootstrap. + * @param skill Required. Skill container body config. + * @param skillId Required. Custom, user-defined unique container identifier. Must be unique + * within the parent project and location. This value should be 4-64 characters, and valid + * characters are `/[a-z][0-9]-/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSkillAsync( + String parent, Skill skill, String skillId) { + CreateSkillRequest request = + CreateSkillRequest.newBuilder() + .setParent(parent) + .setSkill(skill) + .setSkillId(skillId) + .build(); + return createSkillAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ========================================================================= # Skills Collection + * APIs + * + *

Creates a Skill resource container, optionally publishing the initial SkillRevision inline + * in a single, atomic CRUD roundtrip. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateSkillRequest request =
+   *       CreateSkillRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSkillId("skillId2147320652")
+   *           .setSkill(Skill.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Skill response = agentRegistryClient.createSkillAsync(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 createSkillAsync( + CreateSkillRequest request) { + return createSkillOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ========================================================================= # Skills Collection + * APIs + * + *

Creates a Skill resource container, optionally publishing the initial SkillRevision inline + * in a single, atomic CRUD roundtrip. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateSkillRequest request =
+   *       CreateSkillRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSkillId("skillId2147320652")
+   *           .setSkill(Skill.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.createSkillOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Skill response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createSkillOperationCallable() { + return stub.createSkillOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ========================================================================= # Skills Collection + * APIs + * + *

Creates a Skill resource container, optionally publishing the initial SkillRevision inline + * in a single, atomic CRUD roundtrip. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   CreateSkillRequest request =
+   *       CreateSkillRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSkillId("skillId2147320652")
+   *           .setSkill(Skill.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.createSkillCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createSkillCallable() { + return stub.createSkillCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the active configuration and metadata of a Skill. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]");
+   *   Skill response = agentRegistryClient.getSkill(name);
+   * }
+   * }
+ * + * @param name Required. Target resource container name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Skill getSkill(@Nullable SkillName name) { + GetSkillRequest request = + GetSkillRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSkill(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the active configuration and metadata of a Skill. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString();
+   *   Skill response = agentRegistryClient.getSkill(name);
+   * }
+   * }
+ * + * @param name Required. Target resource container name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Skill getSkill(String name) { + GetSkillRequest request = GetSkillRequest.newBuilder().setName(name).build(); + return getSkill(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the active configuration and metadata of a Skill. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetSkillRequest request =
+   *       GetSkillRequest.newBuilder()
+   *           .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+   *           .build();
+   *   Skill response = agentRegistryClient.getSkill(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 Skill getSkill(GetSkillRequest request) { + return getSkillCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the active configuration and metadata of a Skill. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetSkillRequest request =
+   *       GetSkillRequest.newBuilder()
+   *           .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.getSkillCallable().futureCall(request);
+   *   // Do something.
+   *   Skill response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSkillCallable() { + return stub.getSkillCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates Skill metadata or overrides active pointers/state using REST standard PATCH. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   Skill skill = Skill.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Skill response = agentRegistryClient.updateSkillAsync(skill, updateMask).get();
+   * }
+   * }
+ * + * @param skill Required. Mutable Skill container config fields to write. + * @param updateMask Optional. Standard update target mask mapping relative fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateSkillAsync( + Skill skill, FieldMask updateMask) { + UpdateSkillRequest request = + UpdateSkillRequest.newBuilder().setSkill(skill).setUpdateMask(updateMask).build(); + return updateSkillAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates Skill metadata or overrides active pointers/state using REST standard PATCH. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateSkillRequest request =
+   *       UpdateSkillRequest.newBuilder()
+   *           .setSkill(Skill.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Skill response = agentRegistryClient.updateSkillAsync(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 updateSkillAsync( + UpdateSkillRequest request) { + return updateSkillOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates Skill metadata or overrides active pointers/state using REST standard PATCH. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateSkillRequest request =
+   *       UpdateSkillRequest.newBuilder()
+   *           .setSkill(Skill.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.updateSkillOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Skill response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateSkillOperationCallable() { + return stub.updateSkillOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates Skill metadata or overrides active pointers/state using REST standard PATCH. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   UpdateSkillRequest request =
+   *       UpdateSkillRequest.newBuilder()
+   *           .setSkill(Skill.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.updateSkillCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSkillCallable() { + return stub.updateSkillCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Skill container along with all its revisions. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]");
+   *   agentRegistryClient.deleteSkillAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Target Skill container name to remove. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSkillAsync( + @Nullable SkillName name) { + DeleteSkillRequest request = + DeleteSkillRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteSkillAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Skill container along with all its revisions. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString();
+   *   agentRegistryClient.deleteSkillAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Target Skill container name to remove. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSkillAsync(String name) { + DeleteSkillRequest request = DeleteSkillRequest.newBuilder().setName(name).build(); + return deleteSkillAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Skill container along with all its revisions. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteSkillRequest request =
+   *       DeleteSkillRequest.newBuilder()
+   *           .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   agentRegistryClient.deleteSkillAsync(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 deleteSkillAsync( + DeleteSkillRequest request) { + return deleteSkillOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Skill container along with all its revisions. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteSkillRequest request =
+   *       DeleteSkillRequest.newBuilder()
+   *           .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       agentRegistryClient.deleteSkillOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteSkillOperationCallable() { + return stub.deleteSkillOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Skill container along with all its revisions. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteSkillRequest request =
+   *       DeleteSkillRequest.newBuilder()
+   *           .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.deleteSkillCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteSkillCallable() { + return stub.deleteSkillCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logical Skills available in a project. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Skill element : agentRegistryClient.listSkills(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListSkillsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSkillsPagedResponse listSkills(@Nullable LocationName parent) { + ListSkillsRequest request = + ListSkillsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSkills(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logical Skills available in a project. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Skill element : agentRegistryClient.listSkills(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListSkillsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSkillsPagedResponse listSkills(String parent) { + ListSkillsRequest request = ListSkillsRequest.newBuilder().setParent(parent).build(); + return listSkills(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logical Skills available in a project. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListSkillsRequest request =
+   *       ListSkillsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Skill element : agentRegistryClient.listSkills(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 ListSkillsPagedResponse listSkills(ListSkillsRequest request) { + return listSkillsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logical Skills available in a project. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListSkillsRequest request =
+   *       ListSkillsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future = agentRegistryClient.listSkillsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Skill element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSkillsPagedCallable() { + return stub.listSkillsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logical Skills available in a project. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListSkillsRequest request =
+   *       ListSkillsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListSkillsResponse response = agentRegistryClient.listSkillsCallable().call(request);
+   *     for (Skill element : response.getSkillsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSkillsCallable() { + return stub.listSkillsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SearchSkillsRequest request =
+   *       SearchSkillsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSearchType(SearchType.forNumber(0))
+   *           .setSearchString("searchString120312793")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Skill element : agentRegistryClient.searchSkills(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 SearchSkillsPagedResponse searchSkills(SearchSkillsRequest request) { + return searchSkillsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SearchSkillsRequest request =
+   *       SearchSkillsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSearchType(SearchType.forNumber(0))
+   *           .setSearchString("searchString120312793")
    *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
    *           .build();
-   *   ApiFuture future = agentRegistryClient.listAgentsPagedCallable().futureCall(request);
+   *   ApiFuture future = agentRegistryClient.searchSkillsPagedCallable().futureCall(request);
    *   // Do something.
-   *   for (Agent element : future.get().iterateAll()) {
+   *   for (Skill element : future.get().iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
    * }
*/ - public final UnaryCallable listAgentsPagedCallable() { - return stub.listAgentsPagedCallable(); + public final UnaryCallable + searchSkillsPagedCallable() { + return stub.searchSkillsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Agents in a given project and location. + * Custom deep-search method to filter by frontmatter or query SKILL.md text blobs. * *

Sample code: * @@ -746,17 +4684,18 @@ public final UnaryCallable listAgent * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListAgentsRequest request = - * ListAgentsRequest.newBuilder() + * SearchSkillsRequest request = + * SearchSkillsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setSearchType(SearchType.forNumber(0)) + * .setSearchString("searchString120312793") + * .setFilter("filter-1274492040") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListAgentsResponse response = agentRegistryClient.listAgentsCallable().call(request); - * for (Agent element : response.getAgentsList()) { + * SearchSkillsResponse response = agentRegistryClient.searchSkillsCallable().call(request); + * for (Skill element : response.getSkillsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -769,13 +4708,13 @@ public final UnaryCallable listAgent * } * }

*/ - public final UnaryCallable listAgentsCallable() { - return stub.listAgentsCallable(); + public final UnaryCallable searchSkillsCallable() { + return stub.searchSkillsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches Agents in a given project and location. + * Creates a new immutable revision and triggers validation pipelines. * *

Sample code: * @@ -786,28 +4725,36 @@ public final UnaryCallable listAgentsCall * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) { - * // doThingsWith(element); - * } + * SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + * SkillRevision skillRevision = SkillRevision.newBuilder().build(); + * String skillRevisionId = "skillRevisionId-983110777"; + * SkillRevision response = + * agentRegistryClient + * .createSkillRevisionAsync(parent, skillRevision, skillRevisionId) + * .get(); * } * } * - * @param parent Required. Parent value for SearchAgentsRequest. Format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent logical container name. + * @param skillRevision Required. Immutable SkillRevision snapshot definition schema. + * @param skillRevisionId Optional. Custom, user-defined unique revision identifier. Format: 4-63 + * characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAgentsPagedResponse searchAgents(@Nullable LocationName parent) { - SearchAgentsRequest request = - SearchAgentsRequest.newBuilder() + public final OperationFuture createSkillRevisionAsync( + @Nullable SkillName parent, SkillRevision skillRevision, String skillRevisionId) { + CreateSkillRevisionRequest request = + CreateSkillRevisionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) + .setSkillRevision(skillRevision) + .setSkillRevisionId(skillRevisionId) .build(); - return searchAgents(request); + return createSkillRevisionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches Agents in a given project and location. + * Creates a new immutable revision and triggers validation pipelines. * *

Sample code: * @@ -818,25 +4765,36 @@ public final SearchAgentsPagedResponse searchAgents(@Nullable LocationName paren * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString(); + * SkillRevision skillRevision = SkillRevision.newBuilder().build(); + * String skillRevisionId = "skillRevisionId-983110777"; + * SkillRevision response = + * agentRegistryClient + * .createSkillRevisionAsync(parent, skillRevision, skillRevisionId) + * .get(); * } * } * - * @param parent Required. Parent value for SearchAgentsRequest. Format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent logical container name. + * @param skillRevision Required. Immutable SkillRevision snapshot definition schema. + * @param skillRevisionId Optional. Custom, user-defined unique revision identifier. Format: 4-63 + * characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAgentsPagedResponse searchAgents(String parent) { - SearchAgentsRequest request = SearchAgentsRequest.newBuilder().setParent(parent).build(); - return searchAgents(request); + public final OperationFuture createSkillRevisionAsync( + String parent, SkillRevision skillRevision, String skillRevisionId) { + CreateSkillRevisionRequest request = + CreateSkillRevisionRequest.newBuilder() + .setParent(parent) + .setSkillRevision(skillRevision) + .setSkillRevisionId(skillRevisionId) + .build(); + return createSkillRevisionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches Agents in a given project and location. + * Creates a new immutable revision and triggers validation pipelines. * *

Sample code: * @@ -847,29 +4805,28 @@ public final SearchAgentsPagedResponse searchAgents(String parent) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * SearchAgentsRequest request = - * SearchAgentsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setSearchString("searchString120312793") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateSkillRevisionRequest request = + * CreateSkillRevisionRequest.newBuilder() + * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + * .setSkillRevision(SkillRevision.newBuilder().build()) + * .setSkillRevisionId("skillRevisionId-983110777") + * .setRequestId("requestId693933066") * .build(); - * for (Agent element : agentRegistryClient.searchAgents(request).iterateAll()) { - * // doThingsWith(element); - * } + * SkillRevision response = agentRegistryClient.createSkillRevisionAsync(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 SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request) { - return searchAgentsPagedCallable().call(request); + public final OperationFuture createSkillRevisionAsync( + CreateSkillRevisionRequest request) { + return createSkillRevisionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches Agents in a given project and location. + * Creates a new immutable revision and triggers validation pipelines. * *

Sample code: * @@ -880,29 +4837,28 @@ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request) * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * SearchAgentsRequest request = - * SearchAgentsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setSearchString("searchString120312793") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateSkillRevisionRequest request = + * CreateSkillRevisionRequest.newBuilder() + * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + * .setSkillRevision(SkillRevision.newBuilder().build()) + * .setSkillRevisionId("skillRevisionId-983110777") + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = agentRegistryClient.searchAgentsPagedCallable().futureCall(request); + * OperationFuture future = + * agentRegistryClient.createSkillRevisionOperationCallable().futureCall(request); * // Do something. - * for (Agent element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * SkillRevision response = future.get(); * } * } */ - public final UnaryCallable - searchAgentsPagedCallable() { - return stub.searchAgentsPagedCallable(); + public final OperationCallable + createSkillRevisionOperationCallable() { + return stub.createSkillRevisionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches Agents in a given project and location. + * Creates a new immutable revision and triggers validation pipelines. * *

Sample code: * @@ -913,35 +4869,27 @@ public final SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request) * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * SearchAgentsRequest request = - * SearchAgentsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setSearchString("searchString120312793") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateSkillRevisionRequest request = + * CreateSkillRevisionRequest.newBuilder() + * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + * .setSkillRevision(SkillRevision.newBuilder().build()) + * .setSkillRevisionId("skillRevisionId-983110777") + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * SearchAgentsResponse response = agentRegistryClient.searchAgentsCallable().call(request); - * for (Agent element : response.getAgentsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * agentRegistryClient.createSkillRevisionCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable searchAgentsCallable() { - return stub.searchAgentsCallable(); + public final UnaryCallable createSkillRevisionCallable() { + return stub.createSkillRevisionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Agent. + * Gets details of a single immutable Revision. * *

Sample code: * @@ -952,23 +4900,24 @@ public final UnaryCallable searchAgen * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); - * Agent response = agentRegistryClient.getAgent(name); + * SkillRevisionName name = + * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + * SkillRevision response = agentRegistryClient.getSkillRevision(name); * } * } * - * @param name Required. Name of the resource + * @param name Required. Target revision name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(@Nullable AgentName name) { - GetAgentRequest request = - GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getAgent(request); + public final SkillRevision getSkillRevision(@Nullable SkillRevisionName name) { + GetSkillRevisionRequest request = + GetSkillRevisionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSkillRevision(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Agent. + * Gets details of a single immutable Revision. * *

Sample code: * @@ -979,22 +4928,174 @@ public final Agent getAgent(@Nullable AgentName 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); - * Agent response = agentRegistryClient.getAgent(name); + * String name = + * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString(); + * SkillRevision response = agentRegistryClient.getSkillRevision(name); * } * } * - * @param name Required. Name of the resource + * @param name Required. Target revision name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SkillRevision getSkillRevision(String name) { + GetSkillRevisionRequest request = GetSkillRevisionRequest.newBuilder().setName(name).build(); + return getSkillRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single immutable Revision. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetSkillRevisionRequest request =
+   *       GetSkillRevisionRequest.newBuilder()
+   *           .setName(
+   *               SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   SkillRevision response = agentRegistryClient.getSkillRevision(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 SkillRevision getSkillRevision(GetSkillRevisionRequest request) { + return getSkillRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single immutable Revision. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetSkillRevisionRequest request =
+   *       GetSkillRevisionRequest.newBuilder()
+   *           .setName(
+   *               SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.getSkillRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   SkillRevision response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSkillRevisionCallable() { + return stub.getSkillRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific revision (restricted to admins to purge accidentally committed secrets). + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   SkillRevisionName name =
+   *       SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]");
+   *   agentRegistryClient.deleteSkillRevisionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Target revision name to remove. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSkillRevisionAsync( + @Nullable SkillRevisionName name) { + DeleteSkillRevisionRequest request = + DeleteSkillRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteSkillRevisionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific revision (restricted to admins to purge accidentally committed secrets). + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name =
+   *       SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString();
+   *   agentRegistryClient.deleteSkillRevisionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Target revision name to remove. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSkillRevisionAsync(String name) { + DeleteSkillRevisionRequest request = + DeleteSkillRevisionRequest.newBuilder().setName(name).build(); + return deleteSkillRevisionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific revision (restricted to admins to purge accidentally committed secrets). + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   DeleteSkillRevisionRequest request =
+   *       DeleteSkillRevisionRequest.newBuilder()
+   *           .setName(
+   *               SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   agentRegistryClient.deleteSkillRevisionAsync(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 Agent getAgent(String name) { - GetAgentRequest request = GetAgentRequest.newBuilder().setName(name).build(); - return getAgent(request); + public final OperationFuture deleteSkillRevisionAsync( + DeleteSkillRevisionRequest request) { + return deleteSkillRevisionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Agent. + * Deletes a specific revision (restricted to admins to purge accidentally committed secrets). * *

Sample code: * @@ -1005,24 +5106,28 @@ public final Agent getAgent(String 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetAgentRequest request = - * GetAgentRequest.newBuilder() - * .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + * DeleteSkillRevisionRequest request = + * DeleteSkillRevisionRequest.newBuilder() + * .setName( + * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * Agent response = agentRegistryClient.getAgent(request); + * OperationFuture future = + * agentRegistryClient.deleteSkillRevisionOperationCallable().futureCall(request); + * // Do something. + * future.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 Agent getAgent(GetAgentRequest request) { - return getAgentCallable().call(request); + public final OperationCallable + deleteSkillRevisionOperationCallable() { + return stub.deleteSkillRevisionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Agent. + * Deletes a specific revision (restricted to admins to purge accidentally committed secrets). * *

Sample code: * @@ -1033,23 +5138,27 @@ public final Agent getAgent(GetAgentRequest request) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetAgentRequest request = - * GetAgentRequest.newBuilder() - * .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + * DeleteSkillRevisionRequest request = + * DeleteSkillRevisionRequest.newBuilder() + * .setName( + * SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]") + * .toString()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = agentRegistryClient.getAgentCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.deleteSkillRevisionCallable().futureCall(request); * // Do something. - * Agent response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable getAgentCallable() { - return stub.getAgentCallable(); + public final UnaryCallable deleteSkillRevisionCallable() { + return stub.deleteSkillRevisionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Endpoints in a given project and location. + * Lists all revisions belonging to a parent Skill. * *

Sample code: * @@ -1060,28 +5169,27 @@ public final UnaryCallable getAgentCallable() { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) { + * SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + * for (SkillRevision element : agentRegistryClient.listSkillRevisions(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The project and location to list endpoints in. Expected format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent logical container name to query. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName parent) { - ListEndpointsRequest request = - ListEndpointsRequest.newBuilder() + public final ListSkillRevisionsPagedResponse listSkillRevisions(@Nullable SkillName parent) { + ListSkillRevisionsRequest request = + ListSkillRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listEndpoints(request); + return listSkillRevisions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Endpoints in a given project and location. + * Lists all revisions belonging to a parent Skill. * *

Sample code: * @@ -1092,25 +5200,25 @@ public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName par * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) { + * String parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString(); + * for (SkillRevision element : agentRegistryClient.listSkillRevisions(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The project and location to list endpoints in. Expected format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent logical container name to query. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointsPagedResponse listEndpoints(String parent) { - ListEndpointsRequest request = ListEndpointsRequest.newBuilder().setParent(parent).build(); - return listEndpoints(request); + public final ListSkillRevisionsPagedResponse listSkillRevisions(String parent) { + ListSkillRevisionsRequest request = + ListSkillRevisionsRequest.newBuilder().setParent(parent).build(); + return listSkillRevisions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Endpoints in a given project and location. + * Lists all revisions belonging to a parent Skill. * *

Sample code: * @@ -1121,14 +5229,13 @@ public final ListEndpointsPagedResponse listEndpoints(String parent) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListEndpointsRequest request = - * ListEndpointsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListSkillRevisionsRequest request = + * ListSkillRevisionsRequest.newBuilder() + * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * for (Endpoint element : agentRegistryClient.listEndpoints(request).iterateAll()) { + * for (SkillRevision element : agentRegistryClient.listSkillRevisions(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1137,13 +5244,14 @@ public final ListEndpointsPagedResponse listEndpoints(String parent) { * @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 ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest request) { - return listEndpointsPagedCallable().call(request); + public final ListSkillRevisionsPagedResponse listSkillRevisions( + ListSkillRevisionsRequest request) { + return listSkillRevisionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Endpoints in a given project and location. + * Lists all revisions belonging to a parent Skill. * *

Sample code: * @@ -1154,30 +5262,29 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListEndpointsRequest request = - * ListEndpointsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListSkillRevisionsRequest request = + * ListSkillRevisionsRequest.newBuilder() + * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * agentRegistryClient.listEndpointsPagedCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.listSkillRevisionsPagedCallable().futureCall(request); * // Do something. - * for (Endpoint element : future.get().iterateAll()) { + * for (SkillRevision element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listEndpointsPagedCallable() { - return stub.listEndpointsPagedCallable(); + public final UnaryCallable + listSkillRevisionsPagedCallable() { + return stub.listSkillRevisionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Endpoints in a given project and location. + * Lists all revisions belonging to a parent Skill. * *

Sample code: * @@ -1188,16 +5295,16 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListEndpointsRequest request = - * ListEndpointsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListSkillRevisionsRequest request = + * ListSkillRevisionsRequest.newBuilder() + * .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListEndpointsResponse response = agentRegistryClient.listEndpointsCallable().call(request); - * for (Endpoint element : response.getEndpointsList()) { + * ListSkillRevisionsResponse response = + * agentRegistryClient.listSkillRevisionsCallable().call(request); + * for (SkillRevision element : response.getSkillRevisionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1210,13 +5317,14 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque * } * } */ - public final UnaryCallable listEndpointsCallable() { - return stub.listEndpointsCallable(); + public final UnaryCallable + listSkillRevisionsCallable() { + return stub.listSkillRevisionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Endpoint. + * Fetches details of a specific Publisher. * *

Sample code: * @@ -1227,24 +5335,24 @@ public final UnaryCallable listEndp * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); - * Endpoint response = agentRegistryClient.getEndpoint(name); + * PublisherName name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]"); + * Publisher response = agentRegistryClient.getPublisher(name); * } * } * - * @param name Required. The name of the endpoint to retrieve. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param name Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint getEndpoint(@Nullable EndpointName name) { - GetEndpointRequest request = - GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getEndpoint(request); + public final Publisher getPublisher(@Nullable PublisherName name) { + GetPublisherRequest request = + GetPublisherRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getPublisher(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Endpoint. + * Fetches details of a specific Publisher. * *

Sample code: * @@ -1255,23 +5363,23 @@ public final Endpoint getEndpoint(@Nullable EndpointName 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString(); - * Endpoint response = agentRegistryClient.getEndpoint(name); + * String name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString(); + * Publisher response = agentRegistryClient.getPublisher(name); * } * } * - * @param name Required. The name of the endpoint to retrieve. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param name Required. Target publisher resource name. Format: + * `projects/{project}/locations/{location}/publishers/{publisher}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint getEndpoint(String name) { - GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name).build(); - return getEndpoint(request); + public final Publisher getPublisher(String name) { + GetPublisherRequest request = GetPublisherRequest.newBuilder().setName(name).build(); + return getPublisher(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Endpoint. + * Fetches details of a specific Publisher. * *

Sample code: * @@ -1282,24 +5390,24 @@ public final Endpoint getEndpoint(String 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetEndpointRequest request = - * GetEndpointRequest.newBuilder() - * .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + * GetPublisherRequest request = + * GetPublisherRequest.newBuilder() + * .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) * .build(); - * Endpoint response = agentRegistryClient.getEndpoint(request); + * Publisher response = agentRegistryClient.getPublisher(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 Endpoint getEndpoint(GetEndpointRequest request) { - return getEndpointCallable().call(request); + public final Publisher getPublisher(GetPublisherRequest request) { + return getPublisherCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Endpoint. + * Fetches details of a specific Publisher. * *

Sample code: * @@ -1310,23 +5418,23 @@ public final Endpoint getEndpoint(GetEndpointRequest request) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetEndpointRequest request = - * GetEndpointRequest.newBuilder() - * .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + * GetPublisherRequest request = + * GetPublisherRequest.newBuilder() + * .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) * .build(); - * ApiFuture future = agentRegistryClient.getEndpointCallable().futureCall(request); + * ApiFuture future = agentRegistryClient.getPublisherCallable().futureCall(request); * // Do something. - * Endpoint response = future.get(); + * Publisher response = future.get(); * } * } */ - public final UnaryCallable getEndpointCallable() { - return stub.getEndpointCallable(); + public final UnaryCallable getPublisherCallable() { + return stub.getPublisherCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists McpServers in a given project and location. + * Lists all Publishers in a location. * *

Sample code: * @@ -1338,27 +5446,27 @@ public final UnaryCallable getEndpointCallable() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) { + * for (Publisher element : agentRegistryClient.listPublishers(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Parent value for ListMcpServersRequest. Format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent location to query. Format: + * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMcpServersPagedResponse listMcpServers(@Nullable LocationName parent) { - ListMcpServersRequest request = - ListMcpServersRequest.newBuilder() + public final ListPublishersPagedResponse listPublishers(@Nullable LocationName parent) { + ListPublishersRequest request = + ListPublishersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listMcpServers(request); + return listPublishers(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists McpServers in a given project and location. + * Lists all Publishers in a location. * *

Sample code: * @@ -1370,24 +5478,24 @@ public final ListMcpServersPagedResponse listMcpServers(@Nullable LocationName p * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) { + * for (Publisher element : agentRegistryClient.listPublishers(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Parent value for ListMcpServersRequest. Format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent location to query. Format: + * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMcpServersPagedResponse listMcpServers(String parent) { - ListMcpServersRequest request = ListMcpServersRequest.newBuilder().setParent(parent).build(); - return listMcpServers(request); + public final ListPublishersPagedResponse listPublishers(String parent) { + ListPublishersRequest request = ListPublishersRequest.newBuilder().setParent(parent).build(); + return listPublishers(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists McpServers in a given project and location. + * Lists all Publishers in a location. * *

Sample code: * @@ -1398,15 +5506,13 @@ public final ListMcpServersPagedResponse listMcpServers(String parent) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListMcpServersRequest request = - * ListMcpServersRequest.newBuilder() + * ListPublishersRequest request = + * ListPublishersRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * for (McpServer element : agentRegistryClient.listMcpServers(request).iterateAll()) { + * for (Publisher element : agentRegistryClient.listPublishers(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1415,13 +5521,13 @@ public final ListMcpServersPagedResponse listMcpServers(String parent) { * @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 ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest request) { - return listMcpServersPagedCallable().call(request); + public final ListPublishersPagedResponse listPublishers(ListPublishersRequest request) { + return listPublishersPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists McpServers in a given project and location. + * Lists all Publishers in a location. * *

Sample code: * @@ -1432,31 +5538,29 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListMcpServersRequest request = - * ListMcpServersRequest.newBuilder() + * ListPublishersRequest request = + * ListPublishersRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * agentRegistryClient.listMcpServersPagedCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.listPublishersPagedCallable().futureCall(request); * // Do something. - * for (McpServer element : future.get().iterateAll()) { + * for (Publisher element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listMcpServersPagedCallable() { - return stub.listMcpServersPagedCallable(); + public final UnaryCallable + listPublishersPagedCallable() { + return stub.listPublishersPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists McpServers in a given project and location. + * Lists all Publishers in a location. * *

Sample code: * @@ -1467,18 +5571,16 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListMcpServersRequest request = - * ListMcpServersRequest.newBuilder() + * ListPublishersRequest request = + * ListPublishersRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListMcpServersResponse response = - * agentRegistryClient.listMcpServersCallable().call(request); - * for (McpServer element : response.getMcpServersList()) { + * ListPublishersResponse response = + * agentRegistryClient.listPublishersCallable().call(request); + * for (Publisher element : response.getPublishersList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1491,14 +5593,127 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re * } * } */ - public final UnaryCallable - listMcpServersCallable() { - return stub.listMcpServersCallable(); + public final UnaryCallable + listPublishersCallable() { + return stub.listPublishersCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches McpServers in a given project and location. + * Gets details of a single AI Application. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   AiApplicationName name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]");
+   *   AiApplication response = agentRegistryClient.getAiApplication(name);
+   * }
+   * }
+ * + * @param name Required. Target AI Application resource name. Format: + * `projects/{project}/locations/{location}/aiApplications/{ai_application}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AiApplication getAiApplication(@Nullable AiApplicationName name) { + GetAiApplicationRequest request = + GetAiApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAiApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AI Application. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   String name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString();
+   *   AiApplication response = agentRegistryClient.getAiApplication(name);
+   * }
+   * }
+ * + * @param name Required. Target AI Application resource name. Format: + * `projects/{project}/locations/{location}/aiApplications/{ai_application}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AiApplication getAiApplication(String name) { + GetAiApplicationRequest request = GetAiApplicationRequest.newBuilder().setName(name).build(); + return getAiApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AI Application. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetAiApplicationRequest request =
+   *       GetAiApplicationRequest.newBuilder()
+   *           .setName(
+   *               AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+   *           .build();
+   *   AiApplication response = agentRegistryClient.getAiApplication(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 AiApplication getAiApplication(GetAiApplicationRequest request) { + return getAiApplicationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AI Application. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   GetAiApplicationRequest request =
+   *       GetAiApplicationRequest.newBuilder()
+   *           .setName(
+   *               AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.getAiApplicationCallable().futureCall(request);
+   *   // Do something.
+   *   AiApplication response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAiApplicationCallable() { + return stub.getAiApplicationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AI Applications in a given project and location. * *

Sample code: * @@ -1510,27 +5725,27 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) { + * for (AiApplication element : agentRegistryClient.listAiApplications(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Parent value for SearchMcpServersRequest. Format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent project and location to query. Format: + * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchMcpServersPagedResponse searchMcpServers(@Nullable LocationName parent) { - SearchMcpServersRequest request = - SearchMcpServersRequest.newBuilder() + public final ListAiApplicationsPagedResponse listAiApplications(@Nullable LocationName parent) { + ListAiApplicationsRequest request = + ListAiApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return searchMcpServers(request); + return listAiApplications(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches McpServers in a given project and location. + * Lists AI Applications in a given project and location. * *

Sample code: * @@ -1542,25 +5757,25 @@ public final SearchMcpServersPagedResponse searchMcpServers(@Nullable LocationNa * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) { + * for (AiApplication element : agentRegistryClient.listAiApplications(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Parent value for SearchMcpServersRequest. Format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent project and location to query. Format: + * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchMcpServersPagedResponse searchMcpServers(String parent) { - SearchMcpServersRequest request = - SearchMcpServersRequest.newBuilder().setParent(parent).build(); - return searchMcpServers(request); + public final ListAiApplicationsPagedResponse listAiApplications(String parent) { + ListAiApplicationsRequest request = + ListAiApplicationsRequest.newBuilder().setParent(parent).build(); + return listAiApplications(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches McpServers in a given project and location. + * Lists AI Applications in a given project and location. * *

Sample code: * @@ -1571,14 +5786,15 @@ public final SearchMcpServersPagedResponse searchMcpServers(String parent) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * SearchMcpServersRequest request = - * SearchMcpServersRequest.newBuilder() + * ListAiApplicationsRequest request = + * ListAiApplicationsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setSearchString("searchString120312793") * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * for (McpServer element : agentRegistryClient.searchMcpServers(request).iterateAll()) { + * for (AiApplication element : agentRegistryClient.listAiApplications(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1587,13 +5803,14 @@ public final SearchMcpServersPagedResponse searchMcpServers(String parent) { * @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 SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequest request) { - return searchMcpServersPagedCallable().call(request); + public final ListAiApplicationsPagedResponse listAiApplications( + ListAiApplicationsRequest request) { + return listAiApplicationsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches McpServers in a given project and location. + * Lists AI Applications in a given project and location. * *

Sample code: * @@ -1604,30 +5821,31 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * SearchMcpServersRequest request = - * SearchMcpServersRequest.newBuilder() + * ListAiApplicationsRequest request = + * ListAiApplicationsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setSearchString("searchString120312793") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * agentRegistryClient.searchMcpServersPagedCallable().futureCall(request); + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * ApiFuture future = + * agentRegistryClient.listAiApplicationsPagedCallable().futureCall(request); * // Do something. - * for (McpServer element : future.get().iterateAll()) { + * for (AiApplication element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - searchMcpServersPagedCallable() { - return stub.searchMcpServersPagedCallable(); + public final UnaryCallable + listAiApplicationsPagedCallable() { + return stub.listAiApplicationsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches McpServers in a given project and location. + * Lists AI Applications in a given project and location. * *

Sample code: * @@ -1638,17 +5856,18 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * SearchMcpServersRequest request = - * SearchMcpServersRequest.newBuilder() + * ListAiApplicationsRequest request = + * ListAiApplicationsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setSearchString("searchString120312793") * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * SearchMcpServersResponse response = - * agentRegistryClient.searchMcpServersCallable().call(request); - * for (McpServer element : response.getMcpServersList()) { + * ListAiApplicationsResponse response = + * agentRegistryClient.listAiApplicationsCallable().call(request); + * for (AiApplication element : response.getAiApplicationsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1661,14 +5880,14 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ * } * } */ - public final UnaryCallable - searchMcpServersCallable() { - return stub.searchMcpServersCallable(); + public final UnaryCallable + listAiApplicationsCallable() { + return stub.listAiApplicationsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single McpServer. + * Gets details of a single Agent under an AI Application. * *

Sample code: * @@ -1679,23 +5898,28 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); - * McpServer response = agentRegistryClient.getMcpServer(name); + * AgentName name = + * AgentName.ofProjectLocationAiApplicationAgentName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]"); + * Agent response = agentRegistryClient.getAiApplicationAgent(name); * } * } * - * @param name Required. Name of the resource + * @param name Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final McpServer getMcpServer(@Nullable McpServerName name) { - GetMcpServerRequest request = - GetMcpServerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getMcpServer(request); + public final Agent getAiApplicationAgent(@Nullable AgentName name) { + GetAiApplicationAgentRequest request = + GetAiApplicationAgentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAiApplicationAgent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single McpServer. + * Gets details of a single Agent under an AI Application. * *

Sample code: * @@ -1706,22 +5930,25 @@ public final McpServer getMcpServer(@Nullable McpServerName 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString(); - * McpServer response = agentRegistryClient.getMcpServer(name); + * String name = + * AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); + * Agent response = agentRegistryClient.getAiApplicationAgent(name); * } * } * - * @param name Required. Name of the resource + * @param name Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final McpServer getMcpServer(String name) { - GetMcpServerRequest request = GetMcpServerRequest.newBuilder().setName(name).build(); - return getMcpServer(request); + public final Agent getAiApplicationAgent(String name) { + GetAiApplicationAgentRequest request = + GetAiApplicationAgentRequest.newBuilder().setName(name).build(); + return getAiApplicationAgent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single McpServer. + * Gets details of a single Agent under an AI Application. * *

Sample code: * @@ -1732,24 +5959,27 @@ public final McpServer getMcpServer(String 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetMcpServerRequest request = - * GetMcpServerRequest.newBuilder() - * .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + * GetAiApplicationAgentRequest request = + * GetAiApplicationAgentRequest.newBuilder() + * .setName( + * AgentName.ofProjectLocationAiApplicationAgentName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]") + * .toString()) * .build(); - * McpServer response = agentRegistryClient.getMcpServer(request); + * Agent response = agentRegistryClient.getAiApplicationAgent(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 McpServer getMcpServer(GetMcpServerRequest request) { - return getMcpServerCallable().call(request); + public final Agent getAiApplicationAgent(GetAiApplicationAgentRequest request) { + return getAiApplicationAgentCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single McpServer. + * Gets details of a single Agent under an AI Application. * *

Sample code: * @@ -1760,23 +5990,27 @@ public final McpServer getMcpServer(GetMcpServerRequest request) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetMcpServerRequest request = - * GetMcpServerRequest.newBuilder() - * .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + * GetAiApplicationAgentRequest request = + * GetAiApplicationAgentRequest.newBuilder() + * .setName( + * AgentName.ofProjectLocationAiApplicationAgentName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]") + * .toString()) * .build(); - * ApiFuture future = agentRegistryClient.getMcpServerCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.getAiApplicationAgentCallable().futureCall(request); * // Do something. - * McpServer response = future.get(); + * Agent response = future.get(); * } * } */ - public final UnaryCallable getMcpServerCallable() { - return stub.getMcpServerCallable(); + public final UnaryCallable getAiApplicationAgentCallable() { + return stub.getAiApplicationAgentCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services in a given project and location. + * Lists Agents under an AI Application. * *

Sample code: * @@ -1787,28 +6021,30 @@ public final UnaryCallable getMcpServerCallable( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Service element : agentRegistryClient.listServices(parent).iterateAll()) { + * AiApplicationName parent = + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + * for (Agent element : agentRegistryClient.listAiApplicationAgents(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. + * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(@Nullable LocationName parent) { - ListServicesRequest request = - ListServicesRequest.newBuilder() + public final ListAiApplicationAgentsPagedResponse listAiApplicationAgents( + @Nullable AiApplicationName parent) { + ListAiApplicationAgentsRequest request = + ListAiApplicationAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listServices(request); + return listAiApplicationAgents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services in a given project and location. + * Lists Agents under an AI Application. * *

Sample code: * @@ -1819,25 +6055,27 @@ public final ListServicesPagedResponse listServices(@Nullable LocationName paren * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Service element : agentRegistryClient.listServices(parent).iterateAll()) { + * String parent = + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString(); + * for (Agent element : agentRegistryClient.listAiApplicationAgents(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The project and location to list services in. Expected format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. + * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(String parent) { - ListServicesRequest request = ListServicesRequest.newBuilder().setParent(parent).build(); - return listServices(request); + public final ListAiApplicationAgentsPagedResponse listAiApplicationAgents(String parent) { + ListAiApplicationAgentsRequest request = + ListAiApplicationAgentsRequest.newBuilder().setParent(parent).build(); + return listAiApplicationAgents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services in a given project and location. + * Lists Agents under an AI Application. * *

Sample code: * @@ -1848,14 +6086,14 @@ public final ListServicesPagedResponse listServices(String parent) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListServicesRequest request = - * ListServicesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAiApplicationAgentsRequest request = + * ListAiApplicationAgentsRequest.newBuilder() + * .setParent( + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * for (Service element : agentRegistryClient.listServices(request).iterateAll()) { + * for (Agent element : agentRegistryClient.listAiApplicationAgents(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1864,13 +6102,14 @@ public final ListServicesPagedResponse listServices(String parent) { * @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 ListServicesPagedResponse listServices(ListServicesRequest request) { - return listServicesPagedCallable().call(request); + public final ListAiApplicationAgentsPagedResponse listAiApplicationAgents( + ListAiApplicationAgentsRequest request) { + return listAiApplicationAgentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services in a given project and location. + * Lists Agents under an AI Application. * *

Sample code: * @@ -1881,30 +6120,30 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListServicesRequest request = - * ListServicesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAiApplicationAgentsRequest request = + * ListAiApplicationAgentsRequest.newBuilder() + * .setParent( + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * agentRegistryClient.listServicesPagedCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.listAiApplicationAgentsPagedCallable().futureCall(request); * // Do something. - * for (Service element : future.get().iterateAll()) { + * for (Agent element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listServicesPagedCallable() { - return stub.listServicesPagedCallable(); + public final UnaryCallable + listAiApplicationAgentsPagedCallable() { + return stub.listAiApplicationAgentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Services in a given project and location. + * Lists Agents under an AI Application. * *

Sample code: * @@ -1915,16 +6154,17 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListServicesRequest request = - * ListServicesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAiApplicationAgentsRequest request = + * ListAiApplicationAgentsRequest.newBuilder() + * .setParent( + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListServicesResponse response = agentRegistryClient.listServicesCallable().call(request); - * for (Service element : response.getServicesList()) { + * ListAiApplicationAgentsResponse response = + * agentRegistryClient.listAiApplicationAgentsCallable().call(request); + * for (Agent element : response.getAgentsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1937,13 +6177,14 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) * } * } */ - public final UnaryCallable listServicesCallable() { - return stub.listServicesCallable(); + public final UnaryCallable + listAiApplicationAgentsCallable() { + return stub.listAiApplicationAgentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Service. + * Gets details of a single McpServer under an AI Application. * *

Sample code: * @@ -1954,24 +6195,28 @@ public final UnaryCallable listServic * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); - * Service response = agentRegistryClient.getService(name); + * McpServerName name = + * McpServerName.ofProjectLocationAiApplicationMcpServerName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]"); + * McpServer response = agentRegistryClient.getAiApplicationMcpServer(name); * } * } * - * @param name Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param name Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(@Nullable ServiceName name) { - GetServiceRequest request = - GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getService(request); + public final McpServer getAiApplicationMcpServer(@Nullable McpServerName name) { + GetAiApplicationMcpServerRequest request = + GetAiApplicationMcpServerRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAiApplicationMcpServer(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Service. + * Gets details of a single McpServer under an AI Application. * *

Sample code: * @@ -1982,23 +6227,26 @@ public final Service getService(@Nullable ServiceName 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); - * Service response = agentRegistryClient.getService(name); + * String name = + * McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + * .toString(); + * McpServer response = agentRegistryClient.getAiApplicationMcpServer(name); * } * } * - * @param name Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param name Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(String name) { - GetServiceRequest request = GetServiceRequest.newBuilder().setName(name).build(); - return getService(request); + public final McpServer getAiApplicationMcpServer(String name) { + GetAiApplicationMcpServerRequest request = + GetAiApplicationMcpServerRequest.newBuilder().setName(name).build(); + return getAiApplicationMcpServer(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Service. + * Gets details of a single McpServer under an AI Application. * *

Sample code: * @@ -2009,24 +6257,27 @@ public final Service getService(String 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetServiceRequest request = - * GetServiceRequest.newBuilder() - * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + * GetAiApplicationMcpServerRequest request = + * GetAiApplicationMcpServerRequest.newBuilder() + * .setName( + * McpServerName.ofProjectLocationAiApplicationMcpServerName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]") + * .toString()) * .build(); - * Service response = agentRegistryClient.getService(request); + * McpServer response = agentRegistryClient.getAiApplicationMcpServer(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 Service getService(GetServiceRequest request) { - return getServiceCallable().call(request); + public final McpServer getAiApplicationMcpServer(GetAiApplicationMcpServerRequest request) { + return getAiApplicationMcpServerCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Service. + * Gets details of a single McpServer under an AI Application. * *

Sample code: * @@ -2037,23 +6288,28 @@ public final Service getService(GetServiceRequest request) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetServiceRequest request = - * GetServiceRequest.newBuilder() - * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + * GetAiApplicationMcpServerRequest request = + * GetAiApplicationMcpServerRequest.newBuilder() + * .setName( + * McpServerName.ofProjectLocationAiApplicationMcpServerName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]") + * .toString()) * .build(); - * ApiFuture future = agentRegistryClient.getServiceCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.getAiApplicationMcpServerCallable().futureCall(request); * // Do something. - * Service response = future.get(); + * McpServer response = future.get(); * } * } */ - public final UnaryCallable getServiceCallable() { - return stub.getServiceCallable(); + public final UnaryCallable + getAiApplicationMcpServerCallable() { + return stub.getAiApplicationMcpServerCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Service in a given project and location. + * Lists McpServers under an AI Application. * *

Sample code: * @@ -2064,36 +6320,31 @@ public final UnaryCallable getServiceCallable() { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Service service = Service.newBuilder().build(); - * String serviceId = "serviceId-194185552"; - * Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get(); + * AiApplicationName parent = + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + * for (McpServer element : + * agentRegistryClient.listAiApplicationMcpServers(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param parent Required. The project and location to create the Service in. Expected format: - * `projects/{project}/locations/{location}`. - * @param service Required. The Service resource that is being created. Format: - * `projects/{project}/locations/{location}/services/{service}`. - * @param serviceId Required. The ID to use for the service, which will become the final component - * of the service's resource name. - *

This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`. + * @param parent Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest. + * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createServiceAsync( - @Nullable LocationName parent, Service service, String serviceId) { - CreateServiceRequest request = - CreateServiceRequest.newBuilder() + public final ListAiApplicationMcpServersPagedResponse listAiApplicationMcpServers( + @Nullable AiApplicationName parent) { + ListAiApplicationMcpServersRequest request = + ListAiApplicationMcpServersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setService(service) - .setServiceId(serviceId) .build(); - return createServiceAsync(request); + return listAiApplicationMcpServers(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Service in a given project and location. + * Lists McpServers under an AI Application. * *

Sample code: * @@ -2104,36 +6355,168 @@ public final OperationFuture createServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Service service = Service.newBuilder().build(); - * String serviceId = "serviceId-194185552"; - * Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get(); + * String parent = + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString(); + * for (McpServer element : + * agentRegistryClient.listAiApplicationMcpServers(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param parent Required. The project and location to create the Service in. Expected format: - * `projects/{project}/locations/{location}`. - * @param service Required. The Service resource that is being created. Format: - * `projects/{project}/locations/{location}/services/{service}`. - * @param serviceId Required. The ID to use for the service, which will become the final component - * of the service's resource name. - *

This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`. + * @param parent Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest. + * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAiApplicationMcpServersPagedResponse listAiApplicationMcpServers(String parent) { + ListAiApplicationMcpServersRequest request = + ListAiApplicationMcpServersRequest.newBuilder().setParent(parent).build(); + return listAiApplicationMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers under an AI Application. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListAiApplicationMcpServersRequest request =
+   *       ListAiApplicationMcpServersRequest.newBuilder()
+   *           .setParent(
+   *               AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (McpServer element :
+   *       agentRegistryClient.listAiApplicationMcpServers(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 ListAiApplicationMcpServersPagedResponse listAiApplicationMcpServers( + ListAiApplicationMcpServersRequest request) { + return listAiApplicationMcpServersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers under an AI Application. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListAiApplicationMcpServersRequest request =
+   *       ListAiApplicationMcpServersRequest.newBuilder()
+   *           .setParent(
+   *               AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       agentRegistryClient.listAiApplicationMcpServersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (McpServer element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersPagedCallable() { + return stub.listAiApplicationMcpServersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers under an AI Application. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   ListAiApplicationMcpServersRequest request =
+   *       ListAiApplicationMcpServersRequest.newBuilder()
+   *           .setParent(
+   *               AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAiApplicationMcpServersResponse response =
+   *         agentRegistryClient.listAiApplicationMcpServersCallable().call(request);
+   *     for (McpServer element : response.getMcpServersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse> + listAiApplicationMcpServersCallable() { + return stub.listAiApplicationMcpServersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Finding. + * + *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
+   *   FindingName name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]");
+   *   Finding response = agentRegistryClient.getFinding(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Finding to retrieve. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createServiceAsync( - String parent, Service service, String serviceId) { - CreateServiceRequest request = - CreateServiceRequest.newBuilder() - .setParent(parent) - .setService(service) - .setServiceId(serviceId) - .build(); - return createServiceAsync(request); + public final Finding getFinding(@Nullable FindingName name) { + GetFindingRequest request = + GetFindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Service in a given project and location. + * Gets details of a single Finding. * *

Sample code: * @@ -2144,28 +6527,23 @@ public final OperationFuture createServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * CreateServiceRequest request = - * CreateServiceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setServiceId("serviceId-194185552") - * .setService(Service.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * Service response = agentRegistryClient.createServiceAsync(request).get(); + * String name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString(); + * Finding response = agentRegistryClient.getFinding(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the Finding to retrieve. Format: + * `projects/{project}/locations/{location}/findings/{finding}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createServiceAsync( - CreateServiceRequest request) { - return createServiceOperationCallable().futureCall(request); + public final Finding getFinding(String name) { + GetFindingRequest request = GetFindingRequest.newBuilder().setName(name).build(); + return getFinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Service in a given project and location. + * Gets details of a single Finding. * *

Sample code: * @@ -2176,28 +6554,24 @@ public final OperationFuture createServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * CreateServiceRequest request = - * CreateServiceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setServiceId("serviceId-194185552") - * .setService(Service.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetFindingRequest request = + * GetFindingRequest.newBuilder() + * .setName(FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString()) * .build(); - * OperationFuture future = - * agentRegistryClient.createServiceOperationCallable().futureCall(request); - * // Do something. - * Service response = future.get(); + * Finding response = agentRegistryClient.getFinding(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 OperationCallable - createServiceOperationCallable() { - return stub.createServiceOperationCallable(); + public final Finding getFinding(GetFindingRequest request) { + return getFindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Service in a given project and location. + * Gets details of a single Finding. * *

Sample code: * @@ -2208,26 +6582,23 @@ public final OperationFuture createServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * CreateServiceRequest request = - * CreateServiceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setServiceId("serviceId-194185552") - * .setService(Service.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetFindingRequest request = + * GetFindingRequest.newBuilder() + * .setName(FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString()) * .build(); - * ApiFuture future = agentRegistryClient.createServiceCallable().futureCall(request); + * ApiFuture future = agentRegistryClient.getFindingCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * Finding response = future.get(); * } * } */ - public final UnaryCallable createServiceCallable() { - return stub.createServiceCallable(); + public final UnaryCallable getFindingCallable() { + return stub.getFindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Service. + * Lists Findings in a given project and location. * *

Sample code: * @@ -2238,30 +6609,28 @@ public final UnaryCallable createServiceCallabl * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * Service service = Service.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Service response = agentRegistryClient.updateServiceAsync(service, updateMask).get(); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (Finding element : agentRegistryClient.listFindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param service Required. The Service resource that is being updated. Format: - * `projects/{project}/locations/{location}/services/{service}`. - * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * Service resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields present in the request will be overwritten. + * @param parent Required. Parent value for ListFindingsRequest. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateServiceAsync( - Service service, FieldMask updateMask) { - UpdateServiceRequest request = - UpdateServiceRequest.newBuilder().setService(service).setUpdateMask(updateMask).build(); - return updateServiceAsync(request); + public final ListFindingsPagedResponse listFindings(@Nullable LocationName parent) { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Service. + * Lists Findings in a given project and location. * *

Sample code: * @@ -2272,27 +6641,25 @@ public final OperationFuture updateServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * UpdateServiceRequest request = - * UpdateServiceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setService(Service.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * Service response = agentRegistryClient.updateServiceAsync(request).get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (Finding element : agentRegistryClient.listFindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Parent value for ListFindingsRequest. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateServiceAsync( - UpdateServiceRequest request) { - return updateServiceOperationCallable().futureCall(request); + public final ListFindingsPagedResponse listFindings(String parent) { + ListFindingsRequest request = ListFindingsRequest.newBuilder().setParent(parent).build(); + return listFindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Service. + * Lists Findings in a given project and location. * *

Sample code: * @@ -2303,27 +6670,30 @@ public final OperationFuture updateServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * UpdateServiceRequest request = - * UpdateServiceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setService(Service.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListFindingsRequest request = + * ListFindingsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * OperationFuture future = - * agentRegistryClient.updateServiceOperationCallable().futureCall(request); - * // Do something. - * Service response = future.get(); + * for (Finding element : agentRegistryClient.listFindings(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 OperationCallable - updateServiceOperationCallable() { - return stub.updateServiceOperationCallable(); + public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) { + return listFindingsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Service. + * Lists Findings in a given project and location. * *

Sample code: * @@ -2334,25 +6704,31 @@ public final OperationFuture updateServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * UpdateServiceRequest request = - * UpdateServiceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setService(Service.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListFindingsRequest request = + * ListFindingsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = agentRegistryClient.updateServiceCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.listFindingsPagedCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * for (Finding element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable updateServiceCallable() { - return stub.updateServiceCallable(); + public final UnaryCallable + listFindingsPagedCallable() { + return stub.listFindingsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Service. + * Lists Findings in a given project and location. * *

Sample code: * @@ -2363,25 +6739,36 @@ public final UnaryCallable updateServiceCallabl * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); - * agentRegistryClient.deleteServiceAsync(name).get(); + * ListFindingsRequest request = + * ListFindingsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * while (true) { + * ListFindingsResponse response = agentRegistryClient.listFindingsCallable().call(request); + * for (Finding element : response.getFindingsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param name Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync( - @Nullable ServiceName name) { - DeleteServiceRequest request = - DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteServiceAsync(request); + public final UnaryCallable listFindingsCallable() { + return stub.listFindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Service. + * Gets details of a single Endpoint under an AI Application. * *

Sample code: * @@ -2392,23 +6779,28 @@ public final OperationFuture deleteServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); - * agentRegistryClient.deleteServiceAsync(name).get(); + * EndpointName name = + * EndpointName.ofProjectLocationAiApplicationEndpointName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]"); + * Endpoint response = agentRegistryClient.getAiApplicationEndpoint(name); * } * } * - * @param name Required. The name of the Service. Format: - * `projects/{project}/locations/{location}/services/{service}`. + * @param name Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync(String name) { - DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name).build(); - return deleteServiceAsync(request); + public final Endpoint getAiApplicationEndpoint(@Nullable EndpointName name) { + GetAiApplicationEndpointRequest request = + GetAiApplicationEndpointRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAiApplicationEndpoint(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Service. + * Gets details of a single Endpoint under an AI Application. * *

Sample code: * @@ -2419,26 +6811,26 @@ public final OperationFuture deleteServiceAsync(String * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * DeleteServiceRequest request = - * DeleteServiceRequest.newBuilder() - * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) - * .setRequestId("requestId693933066") - * .build(); - * agentRegistryClient.deleteServiceAsync(request).get(); + * String name = + * EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + * .toString(); + * Endpoint response = agentRegistryClient.getAiApplicationEndpoint(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Name of the resource. Format: + * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync( - DeleteServiceRequest request) { - return deleteServiceOperationCallable().futureCall(request); + public final Endpoint getAiApplicationEndpoint(String name) { + GetAiApplicationEndpointRequest request = + GetAiApplicationEndpointRequest.newBuilder().setName(name).build(); + return getAiApplicationEndpoint(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Service. + * Gets details of a single Endpoint under an AI Application. * *

Sample code: * @@ -2449,26 +6841,27 @@ public final OperationFuture deleteServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * DeleteServiceRequest request = - * DeleteServiceRequest.newBuilder() - * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) - * .setRequestId("requestId693933066") + * GetAiApplicationEndpointRequest request = + * GetAiApplicationEndpointRequest.newBuilder() + * .setName( + * EndpointName.ofProjectLocationAiApplicationEndpointName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]") + * .toString()) * .build(); - * OperationFuture future = - * agentRegistryClient.deleteServiceOperationCallable().futureCall(request); - * // Do something. - * future.get(); + * Endpoint response = agentRegistryClient.getAiApplicationEndpoint(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 OperationCallable - deleteServiceOperationCallable() { - return stub.deleteServiceOperationCallable(); + public final Endpoint getAiApplicationEndpoint(GetAiApplicationEndpointRequest request) { + return getAiApplicationEndpointCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Service. + * Gets details of a single Endpoint under an AI Application. * *

Sample code: * @@ -2479,24 +6872,28 @@ public final OperationFuture deleteServiceAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * DeleteServiceRequest request = - * DeleteServiceRequest.newBuilder() - * .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) - * .setRequestId("requestId693933066") + * GetAiApplicationEndpointRequest request = + * GetAiApplicationEndpointRequest.newBuilder() + * .setName( + * EndpointName.ofProjectLocationAiApplicationEndpointName( + * "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]") + * .toString()) * .build(); - * ApiFuture future = agentRegistryClient.deleteServiceCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.getAiApplicationEndpointCallable().futureCall(request); * // Do something. - * future.get(); + * Endpoint response = future.get(); * } * } */ - public final UnaryCallable deleteServiceCallable() { - return stub.deleteServiceCallable(); + public final UnaryCallable + getAiApplicationEndpointCallable() { + return stub.getAiApplicationEndpointCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Bindings in a given project and location. + * Lists Endpoints under an AI Application. * *

Sample code: * @@ -2507,28 +6904,30 @@ public final UnaryCallable deleteServiceCallabl * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) { + * AiApplicationName parent = + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + * for (Endpoint element : agentRegistryClient.listAiApplicationEndpoints(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The project and location to list bindings in. Expected format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest. + * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBindingsPagedResponse listBindings(@Nullable LocationName parent) { - ListBindingsRequest request = - ListBindingsRequest.newBuilder() + public final ListAiApplicationEndpointsPagedResponse listAiApplicationEndpoints( + @Nullable AiApplicationName parent) { + ListAiApplicationEndpointsRequest request = + ListAiApplicationEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listBindings(request); + return listAiApplicationEndpoints(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Bindings in a given project and location. + * Lists Endpoints under an AI Application. * *

Sample code: * @@ -2539,25 +6938,27 @@ public final ListBindingsPagedResponse listBindings(@Nullable LocationName paren * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) { + * String parent = + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString(); + * for (Endpoint element : agentRegistryClient.listAiApplicationEndpoints(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The project and location to list bindings in. Expected format: - * `projects/{project}/locations/{location}`. + * @param parent Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest. + * Format: `projects/{project}/locations/{location}/aiApplications/{ai_application}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBindingsPagedResponse listBindings(String parent) { - ListBindingsRequest request = ListBindingsRequest.newBuilder().setParent(parent).build(); - return listBindings(request); + public final ListAiApplicationEndpointsPagedResponse listAiApplicationEndpoints(String parent) { + ListAiApplicationEndpointsRequest request = + ListAiApplicationEndpointsRequest.newBuilder().setParent(parent).build(); + return listAiApplicationEndpoints(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Bindings in a given project and location. + * Lists Endpoints under an AI Application. * *

Sample code: * @@ -2568,15 +6969,15 @@ public final ListBindingsPagedResponse listBindings(String parent) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListBindingsRequest request = - * ListBindingsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAiApplicationEndpointsRequest request = + * ListAiApplicationEndpointsRequest.newBuilder() + * .setParent( + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * for (Binding element : agentRegistryClient.listBindings(request).iterateAll()) { + * for (Endpoint element : + * agentRegistryClient.listAiApplicationEndpoints(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2585,13 +6986,14 @@ public final ListBindingsPagedResponse listBindings(String parent) { * @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 ListBindingsPagedResponse listBindings(ListBindingsRequest request) { - return listBindingsPagedCallable().call(request); + public final ListAiApplicationEndpointsPagedResponse listAiApplicationEndpoints( + ListAiApplicationEndpointsRequest request) { + return listAiApplicationEndpointsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Bindings in a given project and location. + * Lists Endpoints under an AI Application. * *

Sample code: * @@ -2602,31 +7004,31 @@ public final ListBindingsPagedResponse listBindings(ListBindingsRequest request) * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListBindingsRequest request = - * ListBindingsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAiApplicationEndpointsRequest request = + * ListAiApplicationEndpointsRequest.newBuilder() + * .setParent( + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * agentRegistryClient.listBindingsPagedCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.listAiApplicationEndpointsPagedCallable().futureCall(request); * // Do something. - * for (Binding element : future.get().iterateAll()) { + * for (Endpoint element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listBindingsPagedCallable() { - return stub.listBindingsPagedCallable(); + public final UnaryCallable< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsPagedCallable() { + return stub.listAiApplicationEndpointsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Bindings in a given project and location. + * Lists Endpoints under an AI Application. * *

Sample code: * @@ -2637,17 +7039,17 @@ public final ListBindingsPagedResponse listBindings(ListBindingsRequest request) * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * ListBindingsRequest request = - * ListBindingsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListAiApplicationEndpointsRequest request = + * ListAiApplicationEndpointsRequest.newBuilder() + * .setParent( + * AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * while (true) { - * ListBindingsResponse response = agentRegistryClient.listBindingsCallable().call(request); - * for (Binding element : response.getBindingsList()) { + * while (true) { + * ListAiApplicationEndpointsResponse response = + * agentRegistryClient.listAiApplicationEndpointsCallable().call(request); + * for (Endpoint element : response.getEndpointsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2660,13 +7062,18 @@ public final ListBindingsPagedResponse listBindings(ListBindingsRequest request) * } * } */ - public final UnaryCallable listBindingsCallable() { - return stub.listBindingsCallable(); + public final UnaryCallable + listAiApplicationEndpointsCallable() { + return stub.listAiApplicationEndpointsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Binding. + * ========================================================================= # Skill Encryption + * Spec Service Methods + * + *

Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific + * project and location. * *

Sample code: * @@ -2677,24 +7084,30 @@ public final UnaryCallable listBindin * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); - * Binding response = agentRegistryClient.getBinding(name); + * SkillEncryptionSpecName name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]"); + * SkillEncryptionSpec response = agentRegistryClient.getSkillEncryptionSpec(name); * } * } * - * @param name Required. The name of the Binding. Format: - * `projects/{project}/locations/{location}/bindings/{binding}`. + * @param name Required. The name of the SkillEncryptionSpec to retrieve. Format: + * `projects/{project}/locations/{location}/skillEncryptionSpec`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Binding getBinding(@Nullable BindingName name) { - GetBindingRequest request = - GetBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getBinding(request); + public final SkillEncryptionSpec getSkillEncryptionSpec(@Nullable SkillEncryptionSpecName name) { + GetSkillEncryptionSpecRequest request = + GetSkillEncryptionSpecRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSkillEncryptionSpec(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Binding. + * ========================================================================= # Skill Encryption + * Spec Service Methods + * + *

Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific + * project and location. * *

Sample code: * @@ -2705,23 +7118,28 @@ public final Binding getBinding(@Nullable BindingName 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString(); - * Binding response = agentRegistryClient.getBinding(name); + * String name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString(); + * SkillEncryptionSpec response = agentRegistryClient.getSkillEncryptionSpec(name); * } * } * - * @param name Required. The name of the Binding. Format: - * `projects/{project}/locations/{location}/bindings/{binding}`. + * @param name Required. The name of the SkillEncryptionSpec to retrieve. Format: + * `projects/{project}/locations/{location}/skillEncryptionSpec`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Binding getBinding(String name) { - GetBindingRequest request = GetBindingRequest.newBuilder().setName(name).build(); - return getBinding(request); + public final SkillEncryptionSpec getSkillEncryptionSpec(String name) { + GetSkillEncryptionSpecRequest request = + GetSkillEncryptionSpecRequest.newBuilder().setName(name).build(); + return getSkillEncryptionSpec(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Binding. + * ========================================================================= # Skill Encryption + * Spec Service Methods + * + *

Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific + * project and location. * *

Sample code: * @@ -2732,24 +7150,28 @@ public final Binding getBinding(String 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetBindingRequest request = - * GetBindingRequest.newBuilder() - * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + * GetSkillEncryptionSpecRequest request = + * GetSkillEncryptionSpecRequest.newBuilder() + * .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); - * Binding response = agentRegistryClient.getBinding(request); + * SkillEncryptionSpec response = agentRegistryClient.getSkillEncryptionSpec(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 Binding getBinding(GetBindingRequest request) { - return getBindingCallable().call(request); + public final SkillEncryptionSpec getSkillEncryptionSpec(GetSkillEncryptionSpecRequest request) { + return getSkillEncryptionSpecCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Binding. + * ========================================================================= # Skill Encryption + * Spec Service Methods + * + *

Gets the customer-managed encryption key (CMEK) configuration for Skills in a specific + * project and location. * *

Sample code: * @@ -2760,63 +7182,29 @@ public final Binding getBinding(GetBindingRequest request) { * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * GetBindingRequest request = - * GetBindingRequest.newBuilder() - * .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + * GetSkillEncryptionSpecRequest request = + * GetSkillEncryptionSpecRequest.newBuilder() + * .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); - * ApiFuture future = agentRegistryClient.getBindingCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.getSkillEncryptionSpecCallable().futureCall(request); * // Do something. - * Binding response = future.get(); + * SkillEncryptionSpec response = future.get(); * } * } */ - public final UnaryCallable getBindingCallable() { - return stub.getBindingCallable(); + public final UnaryCallable + getSkillEncryptionSpecCallable() { + return stub.getSkillEncryptionSpecCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Binding in a 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Binding binding = Binding.newBuilder().build();
-   *   String bindingId = "bindingId-920966528";
-   *   Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get();
-   * }
-   * }
+ * Updates the customer-managed encryption key (CMEK) configuration for Skills in a specific + * project and location. * - * @param parent Required. The project and location to create the Binding in. Expected format: - * `projects/{project}/locations/{location}`. - * @param binding Required. The Binding resource that is being created. - * @param bindingId Required. The ID to use for the binding, which will become the final component - * of the binding's resource name. - *

This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it - * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createBindingAsync( - @Nullable LocationName parent, Binding binding, String bindingId) { - CreateBindingRequest request = - CreateBindingRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setBinding(binding) - .setBindingId(bindingId) - .build(); - return createBindingAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Binding in a given project and location. + *

This method is only allowed when no Skills exist in the target project and location. If any + * Skill already exists in the location, the request fails with `FAILED_PRECONDITION`. * *

Sample code: * @@ -2827,36 +7215,39 @@ public final OperationFuture createBindingAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Binding binding = Binding.newBuilder().build(); - * String bindingId = "bindingId-920966528"; - * Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get(); + * SkillEncryptionSpec skillEncryptionSpec = SkillEncryptionSpec.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * SkillEncryptionSpec response = + * agentRegistryClient.updateSkillEncryptionSpecAsync(skillEncryptionSpec, updateMask).get(); * } * } * - * @param parent Required. The project and location to create the Binding in. Expected format: - * `projects/{project}/locations/{location}`. - * @param binding Required. The Binding resource that is being created. - * @param bindingId Required. The ID to use for the binding, which will become the final component - * of the binding's resource name. - *

This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it - * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @param skillEncryptionSpec Required. The SkillEncryptionSpec to update. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * SkillEncryptionSpec resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields present in the request will be + * overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createBindingAsync( - String parent, Binding binding, String bindingId) { - CreateBindingRequest request = - CreateBindingRequest.newBuilder() - .setParent(parent) - .setBinding(binding) - .setBindingId(bindingId) + public final OperationFuture + updateSkillEncryptionSpecAsync( + SkillEncryptionSpec skillEncryptionSpec, FieldMask updateMask) { + UpdateSkillEncryptionSpecRequest request = + UpdateSkillEncryptionSpecRequest.newBuilder() + .setSkillEncryptionSpec(skillEncryptionSpec) + .setUpdateMask(updateMask) .build(); - return createBindingAsync(request); + return updateSkillEncryptionSpecAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Binding in a given project and location. + * Updates the customer-managed encryption key (CMEK) configuration for Skills in a specific + * project and location. + * + *

This method is only allowed when no Skills exist in the target project and location. If any + * Skill already exists in the location, the request fails with `FAILED_PRECONDITION`. * *

Sample code: * @@ -2867,28 +7258,31 @@ public final OperationFuture createBindingAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * CreateBindingRequest request = - * CreateBindingRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setBindingId("bindingId-920966528") - * .setBinding(Binding.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateSkillEncryptionSpecRequest request = + * UpdateSkillEncryptionSpecRequest.newBuilder() + * .setSkillEncryptionSpec(SkillEncryptionSpec.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * Binding response = agentRegistryClient.createBindingAsync(request).get(); + * SkillEncryptionSpec response = + * agentRegistryClient.updateSkillEncryptionSpecAsync(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 createBindingAsync( - CreateBindingRequest request) { - return createBindingOperationCallable().futureCall(request); + public final OperationFuture + updateSkillEncryptionSpecAsync(UpdateSkillEncryptionSpecRequest request) { + return updateSkillEncryptionSpecOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Binding in a given project and location. + * Updates the customer-managed encryption key (CMEK) configuration for Skills in a specific + * project and location. + * + *

This method is only allowed when no Skills exist in the target project and location. If any + * Skill already exists in the location, the request fails with `FAILED_PRECONDITION`. * *

Sample code: * @@ -2899,28 +7293,31 @@ public final OperationFuture createBindingAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * CreateBindingRequest request = - * CreateBindingRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setBindingId("bindingId-920966528") - * .setBinding(Binding.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateSkillEncryptionSpecRequest request = + * UpdateSkillEncryptionSpecRequest.newBuilder() + * .setSkillEncryptionSpec(SkillEncryptionSpec.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * OperationFuture future = - * agentRegistryClient.createBindingOperationCallable().futureCall(request); + * OperationFuture future = + * agentRegistryClient.updateSkillEncryptionSpecOperationCallable().futureCall(request); * // Do something. - * Binding response = future.get(); + * SkillEncryptionSpec response = future.get(); * } * } */ - public final OperationCallable - createBindingOperationCallable() { - return stub.createBindingOperationCallable(); + public final OperationCallable< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationCallable() { + return stub.updateSkillEncryptionSpecOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Binding in a given project and location. + * Updates the customer-managed encryption key (CMEK) configuration for Skills in a specific + * project and location. + * + *

This method is only allowed when no Skills exist in the target project and location. If any + * Skill already exists in the location, the request fails with `FAILED_PRECONDITION`. * *

Sample code: * @@ -2931,26 +7328,38 @@ public final OperationFuture createBindingAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * CreateBindingRequest request = - * CreateBindingRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setBindingId("bindingId-920966528") - * .setBinding(Binding.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateSkillEncryptionSpecRequest request = + * UpdateSkillEncryptionSpecRequest.newBuilder() + * .setSkillEncryptionSpec(SkillEncryptionSpec.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = agentRegistryClient.createBindingCallable().futureCall(request); + * ApiFuture future = + * agentRegistryClient.updateSkillEncryptionSpecCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable createBindingCallable() { - return stub.createBindingCallable(); + public final UnaryCallable + updateSkillEncryptionSpecCallable() { + return stub.updateSkillEncryptionSpecCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Binding. + * 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: * @@ -2961,29 +7370,41 @@ public final UnaryCallable createBindingCallabl * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * Binding binding = Binding.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Binding response = agentRegistryClient.updateBindingAsync(binding, updateMask).get(); + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Location element : agentRegistryClient.listLocations(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param binding Required. The Binding resource that is being updated. - * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * Binding resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields present in the request will be overwritten. + * @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 updateBindingAsync( - Binding binding, FieldMask updateMask) { - UpdateBindingRequest request = - UpdateBindingRequest.newBuilder().setBinding(binding).setUpdateMask(updateMask).build(); - return updateBindingAsync(request); + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Binding. + * 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: * @@ -2994,27 +7415,42 @@ public final OperationFuture updateBindingAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * UpdateBindingRequest request = - * UpdateBindingRequest.newBuilder() - * .setBinding(Binding.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * Binding response = agentRegistryClient.updateBindingAsync(request).get(); + * ApiFuture future = + * agentRegistryClient.listLocationsPagedCallable().futureCall(request); + * // Do something. + * for (Location element : future.get().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 OperationFuture updateBindingAsync( - UpdateBindingRequest request) { - return updateBindingOperationCallable().futureCall(request); + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Binding. + * 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: * @@ -3025,27 +7461,35 @@ public final OperationFuture updateBindingAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * UpdateBindingRequest request = - * UpdateBindingRequest.newBuilder() - * .setBinding(Binding.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * OperationFuture future = - * agentRegistryClient.updateBindingOperationCallable().futureCall(request); - * // Do something. - * Binding response = future.get(); + * while (true) { + * ListLocationsResponse response = agentRegistryClient.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 OperationCallable - updateBindingOperationCallable() { - return stub.updateBindingOperationCallable(); + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Binding. + * Gets information about a location. * *

Sample code: * @@ -3056,25 +7500,21 @@ public final OperationFuture updateBindingAsync( * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * UpdateBindingRequest request = - * UpdateBindingRequest.newBuilder() - * .setBinding(Binding.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * ApiFuture future = agentRegistryClient.updateBindingCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + * Location response = agentRegistryClient.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 UnaryCallable updateBindingCallable() { - return stub.updateBindingCallable(); + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Binding. + * Gets information about a location. * *

Sample code: * @@ -3085,1141 +7525,1400 @@ public final UnaryCallable updateBindingCallabl * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); - * agentRegistryClient.deleteBindingAsync(name).get(); + * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + * ApiFuture future = agentRegistryClient.getLocationCallable().futureCall(request); + * // Do something. + * Location response = future.get(); * } * } - * - * @param name Required. The name of the Binding. Format: - * `projects/{project}/locations/{location}/bindings/{binding}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBindingAsync( - @Nullable BindingName name) { - DeleteBindingRequest request = - DeleteBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteBindingAsync(request); + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @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 ListAgentsPagedResponse + extends AbstractPagedListResponse< + ListAgentsRequest, + ListAgentsResponse, + Agent, + ListAgentsPage, + ListAgentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListAgentsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListAgentsPagedResponse(ListAgentsPage page) { + super(page, ListAgentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAgentsPage + extends AbstractPage { + + private ListAgentsPage( + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { + super(context, response); + } + + private static ListAgentsPage createEmptyPage() { + return new ListAgentsPage(null, null); + } + + @Override + protected ListAgentsPage createPage( + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { + return new ListAgentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAgentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAgentsRequest, + ListAgentsResponse, + Agent, + ListAgentsPage, + ListAgentsFixedSizeCollection> { + + private ListAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAgentsFixedSizeCollection createEmptyCollection() { + return new ListAgentsFixedSizeCollection(null, 0); + } + + @Override + protected ListAgentsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAgentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchAgentsPagedResponse + extends AbstractPagedListResponse< + SearchAgentsRequest, + SearchAgentsResponse, + Agent, + SearchAgentsPage, + SearchAgentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchAgentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchAgentsPagedResponse(SearchAgentsPage page) { + super(page, SearchAgentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchAgentsPage + extends AbstractPage { + + private SearchAgentsPage( + @Nullable PageContext context, + @Nullable SearchAgentsResponse response) { + super(context, response); + } + + private static SearchAgentsPage createEmptyPage() { + return new SearchAgentsPage(null, null); + } + + @Override + protected SearchAgentsPage createPage( + @Nullable PageContext context, + @Nullable SearchAgentsResponse response) { + return new SearchAgentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchAgentsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchAgentsRequest, + SearchAgentsResponse, + Agent, + SearchAgentsPage, + SearchAgentsFixedSizeCollection> { + + private SearchAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchAgentsFixedSizeCollection createEmptyCollection() { + return new SearchAgentsFixedSizeCollection(null, 0); + } + + @Override + protected SearchAgentsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new SearchAgentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListEndpointsPagedResponse + extends AbstractPagedListResponse< + ListEndpointsRequest, + ListEndpointsResponse, + Endpoint, + ListEndpointsPage, + ListEndpointsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEndpointsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEndpointsPagedResponse(ListEndpointsPage page) { + super(page, ListEndpointsFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Binding. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString();
-   *   agentRegistryClient.deleteBindingAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the Binding. Format: - * `projects/{project}/locations/{location}/bindings/{binding}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteBindingAsync(String name) { - DeleteBindingRequest request = DeleteBindingRequest.newBuilder().setName(name).build(); - return deleteBindingAsync(request); + public static class ListEndpointsPage + extends AbstractPage< + ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { + + private ListEndpointsPage( + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { + super(context, response); + } + + private static ListEndpointsPage createEmptyPage() { + return new ListEndpointsPage(null, null); + } + + @Override + protected ListEndpointsPage createPage( + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { + return new ListEndpointsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Binding. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   DeleteBindingRequest request =
-   *       DeleteBindingRequest.newBuilder()
-   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   agentRegistryClient.deleteBindingAsync(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 deleteBindingAsync( - DeleteBindingRequest request) { - return deleteBindingOperationCallable().futureCall(request); + public static class ListEndpointsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEndpointsRequest, + ListEndpointsResponse, + Endpoint, + ListEndpointsPage, + ListEndpointsFixedSizeCollection> { + + private ListEndpointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEndpointsFixedSizeCollection createEmptyCollection() { + return new ListEndpointsFixedSizeCollection(null, 0); + } + + @Override + protected ListEndpointsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListEndpointsFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Binding. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   DeleteBindingRequest request =
-   *       DeleteBindingRequest.newBuilder()
-   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       agentRegistryClient.deleteBindingOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - deleteBindingOperationCallable() { - return stub.deleteBindingOperationCallable(); + public static class ListMcpServersPagedResponse + extends AbstractPagedListResponse< + ListMcpServersRequest, + ListMcpServersResponse, + McpServer, + ListMcpServersPage, + ListMcpServersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMcpServersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMcpServersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMcpServersPagedResponse(ListMcpServersPage page) { + super(page, ListMcpServersFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Binding. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   DeleteBindingRequest request =
-   *       DeleteBindingRequest.newBuilder()
-   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future = agentRegistryClient.deleteBindingCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteBindingCallable() { - return stub.deleteBindingCallable(); + public static class ListMcpServersPage + extends AbstractPage< + ListMcpServersRequest, ListMcpServersResponse, McpServer, ListMcpServersPage> { + + private ListMcpServersPage( + @Nullable PageContext context, + @Nullable ListMcpServersResponse response) { + super(context, response); + } + + private static ListMcpServersPage createEmptyPage() { + return new ListMcpServersPage(null, null); + } + + @Override + protected ListMcpServersPage createPage( + @Nullable PageContext context, + @Nullable ListMcpServersResponse response) { + return new ListMcpServersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches available Bindings. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FetchAvailableBindingsPagedResponse fetchAvailableBindings( - @Nullable LocationName parent) { - FetchAvailableBindingsRequest request = - FetchAvailableBindingsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return fetchAvailableBindings(request); + public static class ListMcpServersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMcpServersRequest, + ListMcpServersResponse, + McpServer, + ListMcpServersPage, + ListMcpServersFixedSizeCollection> { + + private ListMcpServersFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMcpServersFixedSizeCollection createEmptyCollection() { + return new ListMcpServersFixedSizeCollection(null, 0); + } + + @Override + protected ListMcpServersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListMcpServersFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches available Bindings. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(String parent) { - FetchAvailableBindingsRequest request = - FetchAvailableBindingsRequest.newBuilder().setParent(parent).build(); - return fetchAvailableBindings(request); - } + public static class SearchMcpServersPagedResponse + extends AbstractPagedListResponse< + SearchMcpServersRequest, + SearchMcpServersResponse, + McpServer, + SearchMcpServersPage, + SearchMcpServersFixedSizeCollection> { - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches available Bindings. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   FetchAvailableBindingsRequest request =
-   *       FetchAvailableBindingsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(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 FetchAvailableBindingsPagedResponse fetchAvailableBindings( - FetchAvailableBindingsRequest request) { - return fetchAvailableBindingsPagedCallable().call(request); + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchMcpServersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchMcpServersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchMcpServersPagedResponse(SearchMcpServersPage page) { + super(page, SearchMcpServersFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches available Bindings. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   FetchAvailableBindingsRequest request =
-   *       FetchAvailableBindingsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       agentRegistryClient.fetchAvailableBindingsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Binding element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - fetchAvailableBindingsPagedCallable() { - return stub.fetchAvailableBindingsPagedCallable(); + public static class SearchMcpServersPage + extends AbstractPage< + SearchMcpServersRequest, SearchMcpServersResponse, McpServer, SearchMcpServersPage> { + + private SearchMcpServersPage( + @Nullable PageContext context, + @Nullable SearchMcpServersResponse response) { + super(context, response); + } + + private static SearchMcpServersPage createEmptyPage() { + return new SearchMcpServersPage(null, null); + } + + @Override + protected SearchMcpServersPage createPage( + @Nullable PageContext context, + @Nullable SearchMcpServersResponse response) { + return new SearchMcpServersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Fetches available Bindings. - * - *

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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   FetchAvailableBindingsRequest request =
-   *       FetchAvailableBindingsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     FetchAvailableBindingsResponse response =
-   *         agentRegistryClient.fetchAvailableBindingsCallable().call(request);
-   *     for (Binding element : response.getBindingsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - fetchAvailableBindingsCallable() { - return stub.fetchAvailableBindingsCallable(); + public static class SearchMcpServersFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchMcpServersRequest, + SearchMcpServersResponse, + McpServer, + SearchMcpServersPage, + SearchMcpServersFixedSizeCollection> { + + private SearchMcpServersFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchMcpServersFixedSizeCollection createEmptyCollection() { + return new SearchMcpServersFixedSizeCollection(null, 0); + } + + @Override + protected SearchMcpServersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new SearchMcpServersFixedSizeCollection(pages, collectionSize); + } } - // 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
-   * // 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Location element : agentRegistryClient.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); + public static class ListServicesPagedResponse + extends AbstractPagedListResponse< + ListServicesRequest, + ListServicesResponse, + Service, + ListServicesPage, + ListServicesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListServicesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListServicesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListServicesPagedResponse(ListServicesPage page) { + super(page, ListServicesFixedSizeCollection.createEmptyCollection()); + } } - // 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
-   * // 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       agentRegistryClient.listLocationsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Location element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public static class ListServicesPage + extends AbstractPage { + + private ListServicesPage( + @Nullable PageContext context, + @Nullable ListServicesResponse response) { + super(context, response); + } + + private static ListServicesPage createEmptyPage() { + return new ListServicesPage(null, null); + } + + @Override + protected ListServicesPage createPage( + @Nullable PageContext context, + @Nullable ListServicesResponse response) { + return new ListServicesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // 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
-   * // 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListLocationsResponse response = agentRegistryClient.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(); + public static class ListServicesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListServicesRequest, + ListServicesResponse, + Service, + ListServicesPage, + ListServicesFixedSizeCollection> { + + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListServicesFixedSizeCollection createEmptyCollection() { + return new ListServicesFixedSizeCollection(null, 0); + } + + @Override + protected ListServicesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListServicesFixedSizeCollection(pages, collectionSize); + } } - // 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
-   *   Location response = agentRegistryClient.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); + public static class ListBindingsPagedResponse + extends AbstractPagedListResponse< + ListBindingsRequest, + ListBindingsResponse, + Binding, + ListBindingsPage, + ListBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBindingsPagedResponse(ListBindingsPage page) { + super(page, ListBindingsFixedSizeCollection.createEmptyCollection()); + } } - // 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
-   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
-   *   ApiFuture future = agentRegistryClient.getLocationCallable().futureCall(request);
-   *   // Do something.
-   *   Location response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public static class ListBindingsPage + extends AbstractPage { + + private ListBindingsPage( + @Nullable PageContext context, + @Nullable ListBindingsResponse response) { + super(context, response); + } + + private static ListBindingsPage createEmptyPage() { + return new ListBindingsPage(null, null); + } + + @Override + protected ListBindingsPage createPage( + @Nullable PageContext context, + @Nullable ListBindingsResponse response) { + return new ListBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBindingsRequest, + ListBindingsResponse, + Binding, + ListBindingsPage, + ListBindingsFixedSizeCollection> { + + private ListBindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBindingsFixedSizeCollection createEmptyCollection() { + return new ListBindingsFixedSizeCollection(null, 0); + } + + @Override + protected ListBindingsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListBindingsFixedSizeCollection(pages, collectionSize); + } } - @Override - public final void close() { - stub.close(); + public static class FetchAvailableBindingsPagedResponse + extends AbstractPagedListResponse< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + Binding, + FetchAvailableBindingsPage, + FetchAvailableBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchAvailableBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchAvailableBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchAvailableBindingsPagedResponse(FetchAvailableBindingsPage page) { + super(page, FetchAvailableBindingsFixedSizeCollection.createEmptyCollection()); + } } - @Override - public void shutdown() { - stub.shutdown(); + public static class FetchAvailableBindingsPage + extends AbstractPage< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + Binding, + FetchAvailableBindingsPage> { + + private FetchAvailableBindingsPage( + @Nullable + PageContext + context, + @Nullable FetchAvailableBindingsResponse response) { + super(context, response); + } + + private static FetchAvailableBindingsPage createEmptyPage() { + return new FetchAvailableBindingsPage(null, null); + } + + @Override + protected FetchAvailableBindingsPage createPage( + @Nullable + PageContext + context, + @Nullable FetchAvailableBindingsResponse response) { + return new FetchAvailableBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + public static class FetchAvailableBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + Binding, + FetchAvailableBindingsPage, + FetchAvailableBindingsFixedSizeCollection> { + + private FetchAvailableBindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchAvailableBindingsFixedSizeCollection createEmptyCollection() { + return new FetchAvailableBindingsFixedSizeCollection(null, 0); + } + + @Override + protected FetchAvailableBindingsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new FetchAvailableBindingsFixedSizeCollection(pages, collectionSize); + } } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + public static class ListSkillsPagedResponse + extends AbstractPagedListResponse< + ListSkillsRequest, + ListSkillsResponse, + Skill, + ListSkillsPage, + ListSkillsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSkillsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSkillsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSkillsPagedResponse(ListSkillsPage page) { + super(page, ListSkillsFixedSizeCollection.createEmptyCollection()); + } } - @Override - public void shutdownNow() { - stub.shutdownNow(); + public static class ListSkillsPage + extends AbstractPage { + + private ListSkillsPage( + @Nullable PageContext context, + @Nullable ListSkillsResponse response) { + super(context, response); + } + + private static ListSkillsPage createEmptyPage() { + return new ListSkillsPage(null, null); + } + + @Override + protected ListSkillsPage createPage( + @Nullable PageContext context, + @Nullable ListSkillsResponse response) { + return new ListSkillsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + public static class ListSkillsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSkillsRequest, + ListSkillsResponse, + Skill, + ListSkillsPage, + ListSkillsFixedSizeCollection> { + + private ListSkillsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSkillsFixedSizeCollection createEmptyCollection() { + return new ListSkillsFixedSizeCollection(null, 0); + } + + @Override + protected ListSkillsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListSkillsFixedSizeCollection(pages, collectionSize); + } } - public static class ListAgentsPagedResponse + public static class SearchSkillsPagedResponse extends AbstractPagedListResponse< - ListAgentsRequest, - ListAgentsResponse, - Agent, - ListAgentsPage, - ListAgentsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); + SearchSkillsRequest, + SearchSkillsResponse, + Skill, + SearchSkillsPage, + SearchSkillsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchSkillsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, input -> new ListAgentsPagedResponse(input), MoreExecutors.directExecutor()); + futurePage, + input -> new SearchSkillsPagedResponse(input), + MoreExecutors.directExecutor()); } - private ListAgentsPagedResponse(ListAgentsPage page) { - super(page, ListAgentsFixedSizeCollection.createEmptyCollection()); + private SearchSkillsPagedResponse(SearchSkillsPage page) { + super(page, SearchSkillsFixedSizeCollection.createEmptyCollection()); } } - public static class ListAgentsPage - extends AbstractPage { + public static class SearchSkillsPage + extends AbstractPage { - private ListAgentsPage( - @Nullable PageContext context, - @Nullable ListAgentsResponse response) { + private SearchSkillsPage( + @Nullable PageContext context, + @Nullable SearchSkillsResponse response) { super(context, response); } - private static ListAgentsPage createEmptyPage() { - return new ListAgentsPage(null, null); + private static SearchSkillsPage createEmptyPage() { + return new SearchSkillsPage(null, null); } @Override - protected ListAgentsPage createPage( - @Nullable PageContext context, - @Nullable ListAgentsResponse response) { - return new ListAgentsPage(context, response); + protected SearchSkillsPage createPage( + @Nullable PageContext context, + @Nullable SearchSkillsResponse response) { + return new SearchSkillsPage(context, response); } @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListAgentsFixedSizeCollection + public static class SearchSkillsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAgentsRequest, - ListAgentsResponse, - Agent, - ListAgentsPage, - ListAgentsFixedSizeCollection> { - - private ListAgentsFixedSizeCollection( - @Nullable List pages, int collectionSize) { + SearchSkillsRequest, + SearchSkillsResponse, + Skill, + SearchSkillsPage, + SearchSkillsFixedSizeCollection> { + + private SearchSkillsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } - private static ListAgentsFixedSizeCollection createEmptyCollection() { - return new ListAgentsFixedSizeCollection(null, 0); + private static SearchSkillsFixedSizeCollection createEmptyCollection() { + return new SearchSkillsFixedSizeCollection(null, 0); } @Override - protected ListAgentsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListAgentsFixedSizeCollection(pages, collectionSize); + protected SearchSkillsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new SearchSkillsFixedSizeCollection(pages, collectionSize); } } - public static class SearchAgentsPagedResponse + public static class ListSkillRevisionsPagedResponse extends AbstractPagedListResponse< - SearchAgentsRequest, - SearchAgentsResponse, - Agent, - SearchAgentsPage, - SearchAgentsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - SearchAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); + ListSkillRevisionsRequest, + ListSkillRevisionsResponse, + SkillRevision, + ListSkillRevisionsPage, + ListSkillRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSkillRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new SearchAgentsPagedResponse(input), + input -> new ListSkillRevisionsPagedResponse(input), MoreExecutors.directExecutor()); } - private SearchAgentsPagedResponse(SearchAgentsPage page) { - super(page, SearchAgentsFixedSizeCollection.createEmptyCollection()); + private ListSkillRevisionsPagedResponse(ListSkillRevisionsPage page) { + super(page, ListSkillRevisionsFixedSizeCollection.createEmptyCollection()); } } - public static class SearchAgentsPage - extends AbstractPage { + public static class ListSkillRevisionsPage + extends AbstractPage< + ListSkillRevisionsRequest, + ListSkillRevisionsResponse, + SkillRevision, + ListSkillRevisionsPage> { - private SearchAgentsPage( - @Nullable PageContext context, - @Nullable SearchAgentsResponse response) { + private ListSkillRevisionsPage( + @Nullable PageContext + context, + @Nullable ListSkillRevisionsResponse response) { super(context, response); } - private static SearchAgentsPage createEmptyPage() { - return new SearchAgentsPage(null, null); + private static ListSkillRevisionsPage createEmptyPage() { + return new ListSkillRevisionsPage(null, null); } @Override - protected SearchAgentsPage createPage( - @Nullable PageContext context, - @Nullable SearchAgentsResponse response) { - return new SearchAgentsPage(context, response); + protected ListSkillRevisionsPage createPage( + @Nullable PageContext + context, + @Nullable ListSkillRevisionsResponse response) { + return new ListSkillRevisionsPage(context, response); } @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class SearchAgentsFixedSizeCollection + public static class ListSkillRevisionsFixedSizeCollection extends AbstractFixedSizeCollection< - SearchAgentsRequest, - SearchAgentsResponse, - Agent, - SearchAgentsPage, - SearchAgentsFixedSizeCollection> { - - private SearchAgentsFixedSizeCollection( - @Nullable List pages, int collectionSize) { + ListSkillRevisionsRequest, + ListSkillRevisionsResponse, + SkillRevision, + ListSkillRevisionsPage, + ListSkillRevisionsFixedSizeCollection> { + + private ListSkillRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } - private static SearchAgentsFixedSizeCollection createEmptyCollection() { - return new SearchAgentsFixedSizeCollection(null, 0); + private static ListSkillRevisionsFixedSizeCollection createEmptyCollection() { + return new ListSkillRevisionsFixedSizeCollection(null, 0); } @Override - protected SearchAgentsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new SearchAgentsFixedSizeCollection(pages, collectionSize); + protected ListSkillRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListSkillRevisionsFixedSizeCollection(pages, collectionSize); } } - public static class ListEndpointsPagedResponse + public static class ListPublishersPagedResponse extends AbstractPagedListResponse< - ListEndpointsRequest, - ListEndpointsResponse, - Endpoint, - ListEndpointsPage, - ListEndpointsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); + ListPublishersRequest, + ListPublishersResponse, + Publisher, + ListPublishersPage, + ListPublishersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPublishersPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListEndpointsPagedResponse(input), + input -> new ListPublishersPagedResponse(input), MoreExecutors.directExecutor()); } - private ListEndpointsPagedResponse(ListEndpointsPage page) { - super(page, ListEndpointsFixedSizeCollection.createEmptyCollection()); + private ListPublishersPagedResponse(ListPublishersPage page) { + super(page, ListPublishersFixedSizeCollection.createEmptyCollection()); } } - public static class ListEndpointsPage + public static class ListPublishersPage extends AbstractPage< - ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { + ListPublishersRequest, ListPublishersResponse, Publisher, ListPublishersPage> { - private ListEndpointsPage( - @Nullable PageContext context, - @Nullable ListEndpointsResponse response) { + private ListPublishersPage( + @Nullable PageContext context, + @Nullable ListPublishersResponse response) { super(context, response); } - private static ListEndpointsPage createEmptyPage() { - return new ListEndpointsPage(null, null); + private static ListPublishersPage createEmptyPage() { + return new ListPublishersPage(null, null); } @Override - protected ListEndpointsPage createPage( - @Nullable PageContext context, - @Nullable ListEndpointsResponse response) { - return new ListEndpointsPage(context, response); + protected ListPublishersPage createPage( + @Nullable PageContext context, + @Nullable ListPublishersResponse response) { + return new ListPublishersPage(context, response); } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListEndpointsFixedSizeCollection + public static class ListPublishersFixedSizeCollection extends AbstractFixedSizeCollection< - ListEndpointsRequest, - ListEndpointsResponse, - Endpoint, - ListEndpointsPage, - ListEndpointsFixedSizeCollection> { - - private ListEndpointsFixedSizeCollection( - @Nullable List pages, int collectionSize) { + ListPublishersRequest, + ListPublishersResponse, + Publisher, + ListPublishersPage, + ListPublishersFixedSizeCollection> { + + private ListPublishersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } - private static ListEndpointsFixedSizeCollection createEmptyCollection() { - return new ListEndpointsFixedSizeCollection(null, 0); + private static ListPublishersFixedSizeCollection createEmptyCollection() { + return new ListPublishersFixedSizeCollection(null, 0); } @Override - protected ListEndpointsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListEndpointsFixedSizeCollection(pages, collectionSize); + protected ListPublishersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListPublishersFixedSizeCollection(pages, collectionSize); } } - public static class ListMcpServersPagedResponse + public static class ListAiApplicationsPagedResponse extends AbstractPagedListResponse< - ListMcpServersRequest, - ListMcpServersResponse, - McpServer, - ListMcpServersPage, - ListMcpServersFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListMcpServersPage.createEmptyPage().createPageAsync(context, futureResponse); + ListAiApplicationsRequest, + ListAiApplicationsResponse, + AiApplication, + ListAiApplicationsPage, + ListAiApplicationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAiApplicationsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListMcpServersPagedResponse(input), + input -> new ListAiApplicationsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListMcpServersPagedResponse(ListMcpServersPage page) { - super(page, ListMcpServersFixedSizeCollection.createEmptyCollection()); + private ListAiApplicationsPagedResponse(ListAiApplicationsPage page) { + super(page, ListAiApplicationsFixedSizeCollection.createEmptyCollection()); } } - public static class ListMcpServersPage + public static class ListAiApplicationsPage extends AbstractPage< - ListMcpServersRequest, ListMcpServersResponse, McpServer, ListMcpServersPage> { + ListAiApplicationsRequest, + ListAiApplicationsResponse, + AiApplication, + ListAiApplicationsPage> { - private ListMcpServersPage( - @Nullable PageContext context, - @Nullable ListMcpServersResponse response) { + private ListAiApplicationsPage( + @Nullable PageContext + context, + @Nullable ListAiApplicationsResponse response) { super(context, response); } - private static ListMcpServersPage createEmptyPage() { - return new ListMcpServersPage(null, null); + private static ListAiApplicationsPage createEmptyPage() { + return new ListAiApplicationsPage(null, null); } @Override - protected ListMcpServersPage createPage( - @Nullable PageContext context, - @Nullable ListMcpServersResponse response) { - return new ListMcpServersPage(context, response); + protected ListAiApplicationsPage createPage( + @Nullable PageContext + context, + @Nullable ListAiApplicationsResponse response) { + return new ListAiApplicationsPage(context, response); } @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListMcpServersFixedSizeCollection + public static class ListAiApplicationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMcpServersRequest, - ListMcpServersResponse, - McpServer, - ListMcpServersPage, - ListMcpServersFixedSizeCollection> { - - private ListMcpServersFixedSizeCollection( - @Nullable List pages, int collectionSize) { + ListAiApplicationsRequest, + ListAiApplicationsResponse, + AiApplication, + ListAiApplicationsPage, + ListAiApplicationsFixedSizeCollection> { + + private ListAiApplicationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } - private static ListMcpServersFixedSizeCollection createEmptyCollection() { - return new ListMcpServersFixedSizeCollection(null, 0); + private static ListAiApplicationsFixedSizeCollection createEmptyCollection() { + return new ListAiApplicationsFixedSizeCollection(null, 0); } @Override - protected ListMcpServersFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListMcpServersFixedSizeCollection(pages, collectionSize); + protected ListAiApplicationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAiApplicationsFixedSizeCollection(pages, collectionSize); } } - public static class SearchMcpServersPagedResponse + public static class ListAiApplicationAgentsPagedResponse extends AbstractPagedListResponse< - SearchMcpServersRequest, - SearchMcpServersResponse, - McpServer, - SearchMcpServersPage, - SearchMcpServersFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - SearchMcpServersPage.createEmptyPage().createPageAsync(context, futureResponse); + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + Agent, + ListAiApplicationAgentsPage, + ListAiApplicationAgentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAiApplicationAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new SearchMcpServersPagedResponse(input), + input -> new ListAiApplicationAgentsPagedResponse(input), MoreExecutors.directExecutor()); } - private SearchMcpServersPagedResponse(SearchMcpServersPage page) { - super(page, SearchMcpServersFixedSizeCollection.createEmptyCollection()); + private ListAiApplicationAgentsPagedResponse(ListAiApplicationAgentsPage page) { + super(page, ListAiApplicationAgentsFixedSizeCollection.createEmptyCollection()); } } - public static class SearchMcpServersPage + public static class ListAiApplicationAgentsPage extends AbstractPage< - SearchMcpServersRequest, SearchMcpServersResponse, McpServer, SearchMcpServersPage> { + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + Agent, + ListAiApplicationAgentsPage> { - private SearchMcpServersPage( - @Nullable PageContext context, - @Nullable SearchMcpServersResponse response) { + private ListAiApplicationAgentsPage( + @Nullable + PageContext + context, + @Nullable ListAiApplicationAgentsResponse response) { super(context, response); } - private static SearchMcpServersPage createEmptyPage() { - return new SearchMcpServersPage(null, null); + private static ListAiApplicationAgentsPage createEmptyPage() { + return new ListAiApplicationAgentsPage(null, null); } @Override - protected SearchMcpServersPage createPage( - @Nullable PageContext context, - @Nullable SearchMcpServersResponse response) { - return new SearchMcpServersPage(context, response); + protected ListAiApplicationAgentsPage createPage( + @Nullable + PageContext + context, + @Nullable ListAiApplicationAgentsResponse response) { + return new ListAiApplicationAgentsPage(context, response); } @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + @Nullable + PageContext + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class SearchMcpServersFixedSizeCollection + public static class ListAiApplicationAgentsFixedSizeCollection extends AbstractFixedSizeCollection< - SearchMcpServersRequest, - SearchMcpServersResponse, - McpServer, - SearchMcpServersPage, - SearchMcpServersFixedSizeCollection> { + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + Agent, + ListAiApplicationAgentsPage, + ListAiApplicationAgentsFixedSizeCollection> { - private SearchMcpServersFixedSizeCollection( - @Nullable List pages, int collectionSize) { + private ListAiApplicationAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } - private static SearchMcpServersFixedSizeCollection createEmptyCollection() { - return new SearchMcpServersFixedSizeCollection(null, 0); + private static ListAiApplicationAgentsFixedSizeCollection createEmptyCollection() { + return new ListAiApplicationAgentsFixedSizeCollection(null, 0); } @Override - protected SearchMcpServersFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new SearchMcpServersFixedSizeCollection(pages, collectionSize); + protected ListAiApplicationAgentsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAiApplicationAgentsFixedSizeCollection(pages, collectionSize); } } - public static class ListServicesPagedResponse + public static class ListAiApplicationMcpServersPagedResponse extends AbstractPagedListResponse< - ListServicesRequest, - ListServicesResponse, - Service, - ListServicesPage, - ListServicesFixedSizeCollection> { + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + McpServer, + ListAiApplicationMcpServersPage, + ListAiApplicationMcpServersFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListServicesPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse, McpServer> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAiApplicationMcpServersPage.createEmptyPage() + .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListServicesPagedResponse(input), + input -> new ListAiApplicationMcpServersPagedResponse(input), MoreExecutors.directExecutor()); } - private ListServicesPagedResponse(ListServicesPage page) { - super(page, ListServicesFixedSizeCollection.createEmptyCollection()); + private ListAiApplicationMcpServersPagedResponse(ListAiApplicationMcpServersPage page) { + super(page, ListAiApplicationMcpServersFixedSizeCollection.createEmptyCollection()); } } - public static class ListServicesPage - extends AbstractPage { + public static class ListAiApplicationMcpServersPage + extends AbstractPage< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + McpServer, + ListAiApplicationMcpServersPage> { - private ListServicesPage( - @Nullable PageContext context, - @Nullable ListServicesResponse response) { + private ListAiApplicationMcpServersPage( + @Nullable + PageContext< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse, McpServer> + context, + @Nullable ListAiApplicationMcpServersResponse response) { super(context, response); } - private static ListServicesPage createEmptyPage() { - return new ListServicesPage(null, null); + private static ListAiApplicationMcpServersPage createEmptyPage() { + return new ListAiApplicationMcpServersPage(null, null); } @Override - protected ListServicesPage createPage( - @Nullable PageContext context, - @Nullable ListServicesResponse response) { - return new ListServicesPage(context, response); + protected ListAiApplicationMcpServersPage createPage( + @Nullable + PageContext< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse, McpServer> + context, + @Nullable ListAiApplicationMcpServersResponse response) { + return new ListAiApplicationMcpServersPage(context, response); } @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse, McpServer> + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListServicesFixedSizeCollection + public static class ListAiApplicationMcpServersFixedSizeCollection extends AbstractFixedSizeCollection< - ListServicesRequest, - ListServicesResponse, - Service, - ListServicesPage, - ListServicesFixedSizeCollection> { + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + McpServer, + ListAiApplicationMcpServersPage, + ListAiApplicationMcpServersFixedSizeCollection> { - private ListServicesFixedSizeCollection( - @Nullable List pages, int collectionSize) { + private ListAiApplicationMcpServersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } - private static ListServicesFixedSizeCollection createEmptyCollection() { - return new ListServicesFixedSizeCollection(null, 0); + private static ListAiApplicationMcpServersFixedSizeCollection createEmptyCollection() { + return new ListAiApplicationMcpServersFixedSizeCollection(null, 0); } @Override - protected ListServicesFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListServicesFixedSizeCollection(pages, collectionSize); + protected ListAiApplicationMcpServersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAiApplicationMcpServersFixedSizeCollection(pages, collectionSize); } } - public static class ListBindingsPagedResponse + public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListBindingsRequest, - ListBindingsResponse, - Binding, - ListBindingsPage, - ListBindingsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, + ListFindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFindingsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListBindingsPagedResponse(input), + input -> new ListFindingsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListBindingsPagedResponse(ListBindingsPage page) { - super(page, ListBindingsFixedSizeCollection.createEmptyCollection()); + private ListFindingsPagedResponse(ListFindingsPage page) { + super(page, ListFindingsFixedSizeCollection.createEmptyCollection()); } } - public static class ListBindingsPage - extends AbstractPage { + public static class ListFindingsPage + extends AbstractPage { - private ListBindingsPage( - @Nullable PageContext context, - @Nullable ListBindingsResponse response) { + private ListFindingsPage( + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { super(context, response); } - private static ListBindingsPage createEmptyPage() { - return new ListBindingsPage(null, null); + private static ListFindingsPage createEmptyPage() { + return new ListFindingsPage(null, null); } @Override - protected ListBindingsPage createPage( - @Nullable PageContext context, - @Nullable ListBindingsResponse response) { - return new ListBindingsPage(context, response); + protected ListFindingsPage createPage( + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { + return new ListFindingsPage(context, response); } @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListBindingsFixedSizeCollection + public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBindingsRequest, - ListBindingsResponse, - Binding, - ListBindingsPage, - ListBindingsFixedSizeCollection> { - - private ListBindingsFixedSizeCollection( - @Nullable List pages, int collectionSize) { + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, + ListFindingsFixedSizeCollection> { + + private ListFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } - private static ListBindingsFixedSizeCollection createEmptyCollection() { - return new ListBindingsFixedSizeCollection(null, 0); + private static ListFindingsFixedSizeCollection createEmptyCollection() { + return new ListFindingsFixedSizeCollection(null, 0); } @Override - protected ListBindingsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListBindingsFixedSizeCollection(pages, collectionSize); + protected ListFindingsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListFindingsFixedSizeCollection(pages, collectionSize); } } - public static class FetchAvailableBindingsPagedResponse + public static class ListAiApplicationEndpointsPagedResponse extends AbstractPagedListResponse< - FetchAvailableBindingsRequest, - FetchAvailableBindingsResponse, - Binding, - FetchAvailableBindingsPage, - FetchAvailableBindingsFixedSizeCollection> { + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + Endpoint, + ListAiApplicationEndpointsPage, + ListAiApplicationEndpointsFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - FetchAvailableBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAiApplicationEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new FetchAvailableBindingsPagedResponse(input), + input -> new ListAiApplicationEndpointsPagedResponse(input), MoreExecutors.directExecutor()); } - private FetchAvailableBindingsPagedResponse(FetchAvailableBindingsPage page) { - super(page, FetchAvailableBindingsFixedSizeCollection.createEmptyCollection()); + private ListAiApplicationEndpointsPagedResponse(ListAiApplicationEndpointsPage page) { + super(page, ListAiApplicationEndpointsFixedSizeCollection.createEmptyCollection()); } } - public static class FetchAvailableBindingsPage + public static class ListAiApplicationEndpointsPage extends AbstractPage< - FetchAvailableBindingsRequest, - FetchAvailableBindingsResponse, - Binding, - FetchAvailableBindingsPage> { + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + Endpoint, + ListAiApplicationEndpointsPage> { - private FetchAvailableBindingsPage( + private ListAiApplicationEndpointsPage( @Nullable - PageContext + PageContext< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsResponse, Endpoint> context, - @Nullable FetchAvailableBindingsResponse response) { + @Nullable ListAiApplicationEndpointsResponse response) { super(context, response); } - private static FetchAvailableBindingsPage createEmptyPage() { - return new FetchAvailableBindingsPage(null, null); + private static ListAiApplicationEndpointsPage createEmptyPage() { + return new ListAiApplicationEndpointsPage(null, null); } @Override - protected FetchAvailableBindingsPage createPage( + protected ListAiApplicationEndpointsPage createPage( @Nullable - PageContext + PageContext< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsResponse, Endpoint> context, - @Nullable FetchAvailableBindingsResponse response) { - return new FetchAvailableBindingsPage(context, response); + @Nullable ListAiApplicationEndpointsResponse response) { + return new ListAiApplicationEndpointsPage(context, response); } @Override - public ApiFuture createPageAsync( + public ApiFuture createPageAsync( @Nullable - PageContext + PageContext< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsResponse, Endpoint> context, - ApiFuture futureResponse) { + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class FetchAvailableBindingsFixedSizeCollection + public static class ListAiApplicationEndpointsFixedSizeCollection extends AbstractFixedSizeCollection< - FetchAvailableBindingsRequest, - FetchAvailableBindingsResponse, - Binding, - FetchAvailableBindingsPage, - FetchAvailableBindingsFixedSizeCollection> { + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + Endpoint, + ListAiApplicationEndpointsPage, + ListAiApplicationEndpointsFixedSizeCollection> { - private FetchAvailableBindingsFixedSizeCollection( - @Nullable List pages, int collectionSize) { + private ListAiApplicationEndpointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } - private static FetchAvailableBindingsFixedSizeCollection createEmptyCollection() { - return new FetchAvailableBindingsFixedSizeCollection(null, 0); + private static ListAiApplicationEndpointsFixedSizeCollection createEmptyCollection() { + return new ListAiApplicationEndpointsFixedSizeCollection(null, 0); } @Override - protected FetchAvailableBindingsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new FetchAvailableBindingsFixedSizeCollection(pages, collectionSize); + protected ListAiApplicationEndpointsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAiApplicationEndpointsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java index 63a480df5def..102b91c0f497 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java @@ -18,13 +18,22 @@ import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListFindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListPublishersPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillRevisionsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchSkillsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -274,6 +283,189 @@ public UnaryCallSettings deleteBindingSettings( return ((AgentRegistryStubSettings) getStubSettings()).fetchAvailableBindingsSettings(); } + /** Returns the object with the settings used for calls to createSkill. */ + public UnaryCallSettings createSkillSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).createSkillSettings(); + } + + /** Returns the object with the settings used for calls to createSkill. */ + public OperationCallSettings + createSkillOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).createSkillOperationSettings(); + } + + /** Returns the object with the settings used for calls to getSkill. */ + public UnaryCallSettings getSkillSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getSkillSettings(); + } + + /** Returns the object with the settings used for calls to updateSkill. */ + public UnaryCallSettings updateSkillSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).updateSkillSettings(); + } + + /** Returns the object with the settings used for calls to updateSkill. */ + public OperationCallSettings + updateSkillOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).updateSkillOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteSkill. */ + public UnaryCallSettings deleteSkillSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).deleteSkillSettings(); + } + + /** Returns the object with the settings used for calls to deleteSkill. */ + public OperationCallSettings + deleteSkillOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).deleteSkillOperationSettings(); + } + + /** Returns the object with the settings used for calls to listSkills. */ + public PagedCallSettings + listSkillsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listSkillsSettings(); + } + + /** Returns the object with the settings used for calls to searchSkills. */ + public PagedCallSettings + searchSkillsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).searchSkillsSettings(); + } + + /** Returns the object with the settings used for calls to createSkillRevision. */ + public UnaryCallSettings createSkillRevisionSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).createSkillRevisionSettings(); + } + + /** Returns the object with the settings used for calls to createSkillRevision. */ + public OperationCallSettings + createSkillRevisionOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).createSkillRevisionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getSkillRevision. */ + public UnaryCallSettings getSkillRevisionSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getSkillRevisionSettings(); + } + + /** Returns the object with the settings used for calls to deleteSkillRevision. */ + public UnaryCallSettings deleteSkillRevisionSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).deleteSkillRevisionSettings(); + } + + /** Returns the object with the settings used for calls to deleteSkillRevision. */ + public OperationCallSettings + deleteSkillRevisionOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).deleteSkillRevisionOperationSettings(); + } + + /** Returns the object with the settings used for calls to listSkillRevisions. */ + public PagedCallSettings< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, ListSkillRevisionsPagedResponse> + listSkillRevisionsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listSkillRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to getPublisher. */ + public UnaryCallSettings getPublisherSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getPublisherSettings(); + } + + /** Returns the object with the settings used for calls to listPublishers. */ + public PagedCallSettings< + ListPublishersRequest, ListPublishersResponse, ListPublishersPagedResponse> + listPublishersSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listPublishersSettings(); + } + + /** Returns the object with the settings used for calls to getAiApplication. */ + public UnaryCallSettings getAiApplicationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getAiApplicationSettings(); + } + + /** Returns the object with the settings used for calls to listAiApplications. */ + public PagedCallSettings< + ListAiApplicationsRequest, ListAiApplicationsResponse, ListAiApplicationsPagedResponse> + listAiApplicationsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listAiApplicationsSettings(); + } + + /** Returns the object with the settings used for calls to getAiApplicationAgent. */ + public UnaryCallSettings getAiApplicationAgentSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getAiApplicationAgentSettings(); + } + + /** Returns the object with the settings used for calls to listAiApplicationAgents. */ + public PagedCallSettings< + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + ListAiApplicationAgentsPagedResponse> + listAiApplicationAgentsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listAiApplicationAgentsSettings(); + } + + /** Returns the object with the settings used for calls to getAiApplicationMcpServer. */ + public UnaryCallSettings + getAiApplicationMcpServerSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getAiApplicationMcpServerSettings(); + } + + /** Returns the object with the settings used for calls to listAiApplicationMcpServers. */ + public PagedCallSettings< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listAiApplicationMcpServersSettings(); + } + + /** Returns the object with the settings used for calls to getFinding. */ + public UnaryCallSettings getFindingSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getFindingSettings(); + } + + /** Returns the object with the settings used for calls to listFindings. */ + public PagedCallSettings + listFindingsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listFindingsSettings(); + } + + /** Returns the object with the settings used for calls to getAiApplicationEndpoint. */ + public UnaryCallSettings + getAiApplicationEndpointSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getAiApplicationEndpointSettings(); + } + + /** Returns the object with the settings used for calls to listAiApplicationEndpoints. */ + public PagedCallSettings< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listAiApplicationEndpointsSettings(); + } + + /** Returns the object with the settings used for calls to getSkillEncryptionSpec. */ + public UnaryCallSettings + getSkillEncryptionSpecSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getSkillEncryptionSpecSettings(); + } + + /** Returns the object with the settings used for calls to updateSkillEncryptionSpec. */ + public UnaryCallSettings + updateSkillEncryptionSpecSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).updateSkillEncryptionSpecSettings(); + } + + /** Returns the object with the settings used for calls to updateSkillEncryptionSpec. */ + public OperationCallSettings< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()) + .updateSkillEncryptionSpecOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -545,6 +737,196 @@ public UnaryCallSettings.Builder deleteBindingS return getStubSettingsBuilder().fetchAvailableBindingsSettings(); } + /** Returns the builder for the settings used for calls to createSkill. */ + public UnaryCallSettings.Builder createSkillSettings() { + return getStubSettingsBuilder().createSkillSettings(); + } + + /** Returns the builder for the settings used for calls to createSkill. */ + public OperationCallSettings.Builder + createSkillOperationSettings() { + return getStubSettingsBuilder().createSkillOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getSkill. */ + public UnaryCallSettings.Builder getSkillSettings() { + return getStubSettingsBuilder().getSkillSettings(); + } + + /** Returns the builder for the settings used for calls to updateSkill. */ + public UnaryCallSettings.Builder updateSkillSettings() { + return getStubSettingsBuilder().updateSkillSettings(); + } + + /** Returns the builder for the settings used for calls to updateSkill. */ + public OperationCallSettings.Builder + updateSkillOperationSettings() { + return getStubSettingsBuilder().updateSkillOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSkill. */ + public UnaryCallSettings.Builder deleteSkillSettings() { + return getStubSettingsBuilder().deleteSkillSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSkill. */ + public OperationCallSettings.Builder + deleteSkillOperationSettings() { + return getStubSettingsBuilder().deleteSkillOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listSkills. */ + public PagedCallSettings.Builder + listSkillsSettings() { + return getStubSettingsBuilder().listSkillsSettings(); + } + + /** Returns the builder for the settings used for calls to searchSkills. */ + public PagedCallSettings.Builder< + SearchSkillsRequest, SearchSkillsResponse, SearchSkillsPagedResponse> + searchSkillsSettings() { + return getStubSettingsBuilder().searchSkillsSettings(); + } + + /** Returns the builder for the settings used for calls to createSkillRevision. */ + public UnaryCallSettings.Builder + createSkillRevisionSettings() { + return getStubSettingsBuilder().createSkillRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to createSkillRevision. */ + public OperationCallSettings.Builder< + CreateSkillRevisionRequest, SkillRevision, OperationMetadata> + createSkillRevisionOperationSettings() { + return getStubSettingsBuilder().createSkillRevisionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getSkillRevision. */ + public UnaryCallSettings.Builder + getSkillRevisionSettings() { + return getStubSettingsBuilder().getSkillRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSkillRevision. */ + public UnaryCallSettings.Builder + deleteSkillRevisionSettings() { + return getStubSettingsBuilder().deleteSkillRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSkillRevision. */ + public OperationCallSettings.Builder + deleteSkillRevisionOperationSettings() { + return getStubSettingsBuilder().deleteSkillRevisionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listSkillRevisions. */ + public PagedCallSettings.Builder< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, ListSkillRevisionsPagedResponse> + listSkillRevisionsSettings() { + return getStubSettingsBuilder().listSkillRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to getPublisher. */ + public UnaryCallSettings.Builder getPublisherSettings() { + return getStubSettingsBuilder().getPublisherSettings(); + } + + /** Returns the builder for the settings used for calls to listPublishers. */ + public PagedCallSettings.Builder< + ListPublishersRequest, ListPublishersResponse, ListPublishersPagedResponse> + listPublishersSettings() { + return getStubSettingsBuilder().listPublishersSettings(); + } + + /** Returns the builder for the settings used for calls to getAiApplication. */ + public UnaryCallSettings.Builder + getAiApplicationSettings() { + return getStubSettingsBuilder().getAiApplicationSettings(); + } + + /** Returns the builder for the settings used for calls to listAiApplications. */ + public PagedCallSettings.Builder< + ListAiApplicationsRequest, ListAiApplicationsResponse, ListAiApplicationsPagedResponse> + listAiApplicationsSettings() { + return getStubSettingsBuilder().listAiApplicationsSettings(); + } + + /** Returns the builder for the settings used for calls to getAiApplicationAgent. */ + public UnaryCallSettings.Builder + getAiApplicationAgentSettings() { + return getStubSettingsBuilder().getAiApplicationAgentSettings(); + } + + /** Returns the builder for the settings used for calls to listAiApplicationAgents. */ + public PagedCallSettings.Builder< + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + ListAiApplicationAgentsPagedResponse> + listAiApplicationAgentsSettings() { + return getStubSettingsBuilder().listAiApplicationAgentsSettings(); + } + + /** Returns the builder for the settings used for calls to getAiApplicationMcpServer. */ + public UnaryCallSettings.Builder + getAiApplicationMcpServerSettings() { + return getStubSettingsBuilder().getAiApplicationMcpServerSettings(); + } + + /** Returns the builder for the settings used for calls to listAiApplicationMcpServers. */ + public PagedCallSettings.Builder< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersSettings() { + return getStubSettingsBuilder().listAiApplicationMcpServersSettings(); + } + + /** Returns the builder for the settings used for calls to getFinding. */ + public UnaryCallSettings.Builder getFindingSettings() { + return getStubSettingsBuilder().getFindingSettings(); + } + + /** Returns the builder for the settings used for calls to listFindings. */ + public PagedCallSettings.Builder< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + listFindingsSettings() { + return getStubSettingsBuilder().listFindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getAiApplicationEndpoint. */ + public UnaryCallSettings.Builder + getAiApplicationEndpointSettings() { + return getStubSettingsBuilder().getAiApplicationEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to listAiApplicationEndpoints. */ + public PagedCallSettings.Builder< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsSettings() { + return getStubSettingsBuilder().listAiApplicationEndpointsSettings(); + } + + /** Returns the builder for the settings used for calls to getSkillEncryptionSpec. */ + public UnaryCallSettings.Builder + getSkillEncryptionSpecSettings() { + return getStubSettingsBuilder().getSkillEncryptionSpecSettings(); + } + + /** Returns the builder for the settings used for calls to updateSkillEncryptionSpec. */ + public UnaryCallSettings.Builder + updateSkillEncryptionSpecSettings() { + return getStubSettingsBuilder().updateSkillEncryptionSpecSettings(); + } + + /** Returns the builder for the settings used for calls to updateSkillEncryptionSpec. */ + public OperationCallSettings.Builder< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationSettings() { + return getStubSettingsBuilder().updateSkillEncryptionSpecOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/gapic_metadata.json b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/gapic_metadata.json index 27dc690c6170..606230a622cd 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/gapic_metadata.json +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/gapic_metadata.json @@ -16,62 +16,134 @@ "CreateService": { "methods": ["createServiceAsync", "createServiceAsync", "createServiceAsync", "createServiceOperationCallable", "createServiceCallable"] }, + "CreateSkill": { + "methods": ["createSkillAsync", "createSkillAsync", "createSkillAsync", "createSkillOperationCallable", "createSkillCallable"] + }, + "CreateSkillRevision": { + "methods": ["createSkillRevisionAsync", "createSkillRevisionAsync", "createSkillRevisionAsync", "createSkillRevisionOperationCallable", "createSkillRevisionCallable"] + }, "DeleteBinding": { "methods": ["deleteBindingAsync", "deleteBindingAsync", "deleteBindingAsync", "deleteBindingOperationCallable", "deleteBindingCallable"] }, "DeleteService": { "methods": ["deleteServiceAsync", "deleteServiceAsync", "deleteServiceAsync", "deleteServiceOperationCallable", "deleteServiceCallable"] }, + "DeleteSkill": { + "methods": ["deleteSkillAsync", "deleteSkillAsync", "deleteSkillAsync", "deleteSkillOperationCallable", "deleteSkillCallable"] + }, + "DeleteSkillRevision": { + "methods": ["deleteSkillRevisionAsync", "deleteSkillRevisionAsync", "deleteSkillRevisionAsync", "deleteSkillRevisionOperationCallable", "deleteSkillRevisionCallable"] + }, "FetchAvailableBindings": { "methods": ["fetchAvailableBindings", "fetchAvailableBindings", "fetchAvailableBindings", "fetchAvailableBindingsPagedCallable", "fetchAvailableBindingsCallable"] }, "GetAgent": { "methods": ["getAgent", "getAgent", "getAgent", "getAgentCallable"] }, + "GetAiApplication": { + "methods": ["getAiApplication", "getAiApplication", "getAiApplication", "getAiApplicationCallable"] + }, + "GetAiApplicationAgent": { + "methods": ["getAiApplicationAgent", "getAiApplicationAgent", "getAiApplicationAgent", "getAiApplicationAgentCallable"] + }, + "GetAiApplicationEndpoint": { + "methods": ["getAiApplicationEndpoint", "getAiApplicationEndpoint", "getAiApplicationEndpoint", "getAiApplicationEndpointCallable"] + }, + "GetAiApplicationMcpServer": { + "methods": ["getAiApplicationMcpServer", "getAiApplicationMcpServer", "getAiApplicationMcpServer", "getAiApplicationMcpServerCallable"] + }, "GetBinding": { "methods": ["getBinding", "getBinding", "getBinding", "getBindingCallable"] }, "GetEndpoint": { "methods": ["getEndpoint", "getEndpoint", "getEndpoint", "getEndpointCallable"] }, + "GetFinding": { + "methods": ["getFinding", "getFinding", "getFinding", "getFindingCallable"] + }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, "GetMcpServer": { "methods": ["getMcpServer", "getMcpServer", "getMcpServer", "getMcpServerCallable"] }, + "GetPublisher": { + "methods": ["getPublisher", "getPublisher", "getPublisher", "getPublisherCallable"] + }, "GetService": { "methods": ["getService", "getService", "getService", "getServiceCallable"] }, + "GetSkill": { + "methods": ["getSkill", "getSkill", "getSkill", "getSkillCallable"] + }, + "GetSkillEncryptionSpec": { + "methods": ["getSkillEncryptionSpec", "getSkillEncryptionSpec", "getSkillEncryptionSpec", "getSkillEncryptionSpecCallable"] + }, + "GetSkillRevision": { + "methods": ["getSkillRevision", "getSkillRevision", "getSkillRevision", "getSkillRevisionCallable"] + }, "ListAgents": { "methods": ["listAgents", "listAgents", "listAgents", "listAgentsPagedCallable", "listAgentsCallable"] }, + "ListAiApplicationAgents": { + "methods": ["listAiApplicationAgents", "listAiApplicationAgents", "listAiApplicationAgents", "listAiApplicationAgentsPagedCallable", "listAiApplicationAgentsCallable"] + }, + "ListAiApplicationEndpoints": { + "methods": ["listAiApplicationEndpoints", "listAiApplicationEndpoints", "listAiApplicationEndpoints", "listAiApplicationEndpointsPagedCallable", "listAiApplicationEndpointsCallable"] + }, + "ListAiApplicationMcpServers": { + "methods": ["listAiApplicationMcpServers", "listAiApplicationMcpServers", "listAiApplicationMcpServers", "listAiApplicationMcpServersPagedCallable", "listAiApplicationMcpServersCallable"] + }, + "ListAiApplications": { + "methods": ["listAiApplications", "listAiApplications", "listAiApplications", "listAiApplicationsPagedCallable", "listAiApplicationsCallable"] + }, "ListBindings": { "methods": ["listBindings", "listBindings", "listBindings", "listBindingsPagedCallable", "listBindingsCallable"] }, "ListEndpoints": { "methods": ["listEndpoints", "listEndpoints", "listEndpoints", "listEndpointsPagedCallable", "listEndpointsCallable"] }, + "ListFindings": { + "methods": ["listFindings", "listFindings", "listFindings", "listFindingsPagedCallable", "listFindingsCallable"] + }, "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, "ListMcpServers": { "methods": ["listMcpServers", "listMcpServers", "listMcpServers", "listMcpServersPagedCallable", "listMcpServersCallable"] }, + "ListPublishers": { + "methods": ["listPublishers", "listPublishers", "listPublishers", "listPublishersPagedCallable", "listPublishersCallable"] + }, "ListServices": { "methods": ["listServices", "listServices", "listServices", "listServicesPagedCallable", "listServicesCallable"] }, + "ListSkillRevisions": { + "methods": ["listSkillRevisions", "listSkillRevisions", "listSkillRevisions", "listSkillRevisionsPagedCallable", "listSkillRevisionsCallable"] + }, + "ListSkills": { + "methods": ["listSkills", "listSkills", "listSkills", "listSkillsPagedCallable", "listSkillsCallable"] + }, "SearchAgents": { "methods": ["searchAgents", "searchAgents", "searchAgents", "searchAgentsPagedCallable", "searchAgentsCallable"] }, "SearchMcpServers": { "methods": ["searchMcpServers", "searchMcpServers", "searchMcpServers", "searchMcpServersPagedCallable", "searchMcpServersCallable"] }, + "SearchSkills": { + "methods": ["searchSkills", "searchSkillsPagedCallable", "searchSkillsCallable"] + }, "UpdateBinding": { "methods": ["updateBindingAsync", "updateBindingAsync", "updateBindingOperationCallable", "updateBindingCallable"] }, "UpdateService": { "methods": ["updateServiceAsync", "updateServiceAsync", "updateServiceOperationCallable", "updateServiceCallable"] + }, + "UpdateSkill": { + "methods": ["updateSkillAsync", "updateSkillAsync", "updateSkillOperationCallable", "updateSkillCallable"] + }, + "UpdateSkillEncryptionSpec": { + "methods": ["updateSkillEncryptionSpecAsync", "updateSkillEncryptionSpecAsync", "updateSkillEncryptionSpecOperationCallable", "updateSkillEncryptionSpecCallable"] } } } diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/package-info.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/package-info.java index d21ff3ab2b69..2fba7046b773 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/package-info.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/package-info.java @@ -21,8 +21,7 @@ * *

======================= AgentRegistryClient ======================= * - *

Service Description: Service for managing Agents, Endpoints, McpServers, Services, and - * Bindings. + *

Service Description: Service for managing Agent Registry resources. * *

Sample for AgentRegistryClient: * @@ -33,7 +32,7 @@ * // - It may require 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - * AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + * AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]"); * Agent response = agentRegistryClient.getAgent(name); * } * } diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java index ebb2a8db2475..b2fcbb81b859 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java @@ -18,50 +18,98 @@ import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListFindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListPublishersPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillRevisionsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchSkillsPagedResponse; 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.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AiApplication; import com.google.cloud.agentregistry.v1.Binding; import com.google.cloud.agentregistry.v1.CreateBindingRequest; import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.CreateSkillRequest; +import com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest; import com.google.cloud.agentregistry.v1.DeleteBindingRequest; import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.DeleteSkillRequest; +import com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest; import com.google.cloud.agentregistry.v1.Endpoint; import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.Finding; import com.google.cloud.agentregistry.v1.GetAgentRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationRequest; import com.google.cloud.agentregistry.v1.GetBindingRequest; import com.google.cloud.agentregistry.v1.GetEndpointRequest; +import com.google.cloud.agentregistry.v1.GetFindingRequest; import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetPublisherRequest; import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.GetSkillRequest; +import com.google.cloud.agentregistry.v1.GetSkillRevisionRequest; import com.google.cloud.agentregistry.v1.ListAgentsRequest; import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationsResponse; import com.google.cloud.agentregistry.v1.ListBindingsRequest; import com.google.cloud.agentregistry.v1.ListBindingsResponse; import com.google.cloud.agentregistry.v1.ListEndpointsRequest; import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListFindingsRequest; +import com.google.cloud.agentregistry.v1.ListFindingsResponse; import com.google.cloud.agentregistry.v1.ListMcpServersRequest; import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListPublishersRequest; +import com.google.cloud.agentregistry.v1.ListPublishersResponse; import com.google.cloud.agentregistry.v1.ListServicesRequest; import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse; +import com.google.cloud.agentregistry.v1.ListSkillsRequest; +import com.google.cloud.agentregistry.v1.ListSkillsResponse; import com.google.cloud.agentregistry.v1.McpServer; import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.Publisher; import com.google.cloud.agentregistry.v1.SearchAgentsRequest; import com.google.cloud.agentregistry.v1.SearchAgentsResponse; import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.cloud.agentregistry.v1.SearchSkillsRequest; +import com.google.cloud.agentregistry.v1.SearchSkillsResponse; import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.SkillRevision; import com.google.cloud.agentregistry.v1.UpdateBindingRequest; import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.UpdateSkillRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -237,6 +285,191 @@ public UnaryCallable deleteBindingCallable() { throw new UnsupportedOperationException("Not implemented: fetchAvailableBindingsCallable()"); } + public OperationCallable + createSkillOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createSkillOperationCallable()"); + } + + public UnaryCallable createSkillCallable() { + throw new UnsupportedOperationException("Not implemented: createSkillCallable()"); + } + + public UnaryCallable getSkillCallable() { + throw new UnsupportedOperationException("Not implemented: getSkillCallable()"); + } + + public OperationCallable + updateSkillOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateSkillOperationCallable()"); + } + + public UnaryCallable updateSkillCallable() { + throw new UnsupportedOperationException("Not implemented: updateSkillCallable()"); + } + + public OperationCallable + deleteSkillOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSkillOperationCallable()"); + } + + public UnaryCallable deleteSkillCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSkillCallable()"); + } + + public UnaryCallable listSkillsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSkillsPagedCallable()"); + } + + public UnaryCallable listSkillsCallable() { + throw new UnsupportedOperationException("Not implemented: listSkillsCallable()"); + } + + public UnaryCallable searchSkillsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchSkillsPagedCallable()"); + } + + public UnaryCallable searchSkillsCallable() { + throw new UnsupportedOperationException("Not implemented: searchSkillsCallable()"); + } + + public OperationCallable + createSkillRevisionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createSkillRevisionOperationCallable()"); + } + + public UnaryCallable createSkillRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: createSkillRevisionCallable()"); + } + + public UnaryCallable getSkillRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: getSkillRevisionCallable()"); + } + + public OperationCallable + deleteSkillRevisionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteSkillRevisionOperationCallable()"); + } + + public UnaryCallable deleteSkillRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSkillRevisionCallable()"); + } + + public UnaryCallable + listSkillRevisionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSkillRevisionsPagedCallable()"); + } + + public UnaryCallable + listSkillRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listSkillRevisionsCallable()"); + } + + public UnaryCallable getPublisherCallable() { + throw new UnsupportedOperationException("Not implemented: getPublisherCallable()"); + } + + public UnaryCallable + listPublishersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPublishersPagedCallable()"); + } + + public UnaryCallable listPublishersCallable() { + throw new UnsupportedOperationException("Not implemented: listPublishersCallable()"); + } + + public UnaryCallable getAiApplicationCallable() { + throw new UnsupportedOperationException("Not implemented: getAiApplicationCallable()"); + } + + public UnaryCallable + listAiApplicationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAiApplicationsPagedCallable()"); + } + + public UnaryCallable + listAiApplicationsCallable() { + throw new UnsupportedOperationException("Not implemented: listAiApplicationsCallable()"); + } + + public UnaryCallable getAiApplicationAgentCallable() { + throw new UnsupportedOperationException("Not implemented: getAiApplicationAgentCallable()"); + } + + public UnaryCallable + listAiApplicationAgentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAiApplicationAgentsPagedCallable()"); + } + + public UnaryCallable + listAiApplicationAgentsCallable() { + throw new UnsupportedOperationException("Not implemented: listAiApplicationAgentsCallable()"); + } + + public UnaryCallable + getAiApplicationMcpServerCallable() { + throw new UnsupportedOperationException("Not implemented: getAiApplicationMcpServerCallable()"); + } + + public UnaryCallable + listAiApplicationMcpServersPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAiApplicationMcpServersPagedCallable()"); + } + + public UnaryCallable + listAiApplicationMcpServersCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAiApplicationMcpServersCallable()"); + } + + public UnaryCallable getFindingCallable() { + throw new UnsupportedOperationException("Not implemented: getFindingCallable()"); + } + + public UnaryCallable listFindingsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFindingsPagedCallable()"); + } + + public UnaryCallable listFindingsCallable() { + throw new UnsupportedOperationException("Not implemented: listFindingsCallable()"); + } + + public UnaryCallable + getAiApplicationEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: getAiApplicationEndpointCallable()"); + } + + public UnaryCallable + listAiApplicationEndpointsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAiApplicationEndpointsPagedCallable()"); + } + + public UnaryCallable + listAiApplicationEndpointsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAiApplicationEndpointsCallable()"); + } + + public UnaryCallable + getSkillEncryptionSpecCallable() { + throw new UnsupportedOperationException("Not implemented: getSkillEncryptionSpecCallable()"); + } + + public OperationCallable + updateSkillEncryptionSpecOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateSkillEncryptionSpecOperationCallable()"); + } + + public UnaryCallable + updateSkillEncryptionSpecCallable() { + throw new UnsupportedOperationException("Not implemented: updateSkillEncryptionSpecCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java index 19e649fabea4..4f827e4f7670 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java @@ -18,13 +18,22 @@ import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListFindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListPublishersPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillRevisionsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchSkillsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -58,38 +67,77 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AiApplication; import com.google.cloud.agentregistry.v1.Binding; import com.google.cloud.agentregistry.v1.CreateBindingRequest; import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.CreateSkillRequest; +import com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest; import com.google.cloud.agentregistry.v1.DeleteBindingRequest; import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.DeleteSkillRequest; +import com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest; import com.google.cloud.agentregistry.v1.Endpoint; import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.Finding; import com.google.cloud.agentregistry.v1.GetAgentRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationRequest; import com.google.cloud.agentregistry.v1.GetBindingRequest; import com.google.cloud.agentregistry.v1.GetEndpointRequest; +import com.google.cloud.agentregistry.v1.GetFindingRequest; import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetPublisherRequest; import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.GetSkillRequest; +import com.google.cloud.agentregistry.v1.GetSkillRevisionRequest; import com.google.cloud.agentregistry.v1.ListAgentsRequest; import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationsResponse; import com.google.cloud.agentregistry.v1.ListBindingsRequest; import com.google.cloud.agentregistry.v1.ListBindingsResponse; import com.google.cloud.agentregistry.v1.ListEndpointsRequest; import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListFindingsRequest; +import com.google.cloud.agentregistry.v1.ListFindingsResponse; import com.google.cloud.agentregistry.v1.ListMcpServersRequest; import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListPublishersRequest; +import com.google.cloud.agentregistry.v1.ListPublishersResponse; import com.google.cloud.agentregistry.v1.ListServicesRequest; import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse; +import com.google.cloud.agentregistry.v1.ListSkillsRequest; +import com.google.cloud.agentregistry.v1.ListSkillsResponse; import com.google.cloud.agentregistry.v1.McpServer; import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.Publisher; import com.google.cloud.agentregistry.v1.SearchAgentsRequest; import com.google.cloud.agentregistry.v1.SearchAgentsResponse; import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.cloud.agentregistry.v1.SearchSkillsRequest; +import com.google.cloud.agentregistry.v1.SearchSkillsResponse; import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.SkillRevision; import com.google.cloud.agentregistry.v1.UpdateBindingRequest; import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.UpdateSkillRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -244,6 +292,73 @@ public class AgentRegistryStubSettings extends StubSettings fetchAvailableBindingsSettings; + private final UnaryCallSettings createSkillSettings; + private final OperationCallSettings + createSkillOperationSettings; + private final UnaryCallSettings getSkillSettings; + private final UnaryCallSettings updateSkillSettings; + private final OperationCallSettings + updateSkillOperationSettings; + private final UnaryCallSettings deleteSkillSettings; + private final OperationCallSettings + deleteSkillOperationSettings; + private final PagedCallSettings + listSkillsSettings; + private final PagedCallSettings< + SearchSkillsRequest, SearchSkillsResponse, SearchSkillsPagedResponse> + searchSkillsSettings; + private final UnaryCallSettings + createSkillRevisionSettings; + private final OperationCallSettings + createSkillRevisionOperationSettings; + private final UnaryCallSettings getSkillRevisionSettings; + private final UnaryCallSettings + deleteSkillRevisionSettings; + private final OperationCallSettings + deleteSkillRevisionOperationSettings; + private final PagedCallSettings< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, ListSkillRevisionsPagedResponse> + listSkillRevisionsSettings; + private final UnaryCallSettings getPublisherSettings; + private final PagedCallSettings< + ListPublishersRequest, ListPublishersResponse, ListPublishersPagedResponse> + listPublishersSettings; + private final UnaryCallSettings getAiApplicationSettings; + private final PagedCallSettings< + ListAiApplicationsRequest, ListAiApplicationsResponse, ListAiApplicationsPagedResponse> + listAiApplicationsSettings; + private final UnaryCallSettings + getAiApplicationAgentSettings; + private final PagedCallSettings< + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + ListAiApplicationAgentsPagedResponse> + listAiApplicationAgentsSettings; + private final UnaryCallSettings + getAiApplicationMcpServerSettings; + private final PagedCallSettings< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersSettings; + private final UnaryCallSettings getFindingSettings; + private final PagedCallSettings< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + listFindingsSettings; + private final UnaryCallSettings + getAiApplicationEndpointSettings; + private final PagedCallSettings< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsSettings; + private final UnaryCallSettings + getSkillEncryptionSpecSettings; + private final UnaryCallSettings + updateSkillEncryptionSpecSettings; + private final OperationCallSettings< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -531,6 +646,346 @@ public Iterable extractResources(FetchAvailableBindingsResponse payload } }; + private static final PagedListDescriptor + LIST_SKILLS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSkillsRequest injectToken(ListSkillsRequest payload, String token) { + return ListSkillsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSkillsRequest injectPageSize(ListSkillsRequest payload, int pageSize) { + return ListSkillsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSkillsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSkillsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSkillsResponse payload) { + return payload.getSkillsList(); + } + }; + + private static final PagedListDescriptor + SEARCH_SKILLS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchSkillsRequest injectToken(SearchSkillsRequest payload, String token) { + return SearchSkillsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchSkillsRequest injectPageSize(SearchSkillsRequest payload, int pageSize) { + return SearchSkillsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchSkillsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchSkillsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchSkillsResponse payload) { + return payload.getSkillsList(); + } + }; + + private static final PagedListDescriptor< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, SkillRevision> + LIST_SKILL_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, SkillRevision>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSkillRevisionsRequest injectToken( + ListSkillRevisionsRequest payload, String token) { + return ListSkillRevisionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSkillRevisionsRequest injectPageSize( + ListSkillRevisionsRequest payload, int pageSize) { + return ListSkillRevisionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSkillRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSkillRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSkillRevisionsResponse payload) { + return payload.getSkillRevisionsList(); + } + }; + + private static final PagedListDescriptor + LIST_PUBLISHERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPublishersRequest injectToken(ListPublishersRequest payload, String token) { + return ListPublishersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPublishersRequest injectPageSize( + ListPublishersRequest payload, int pageSize) { + return ListPublishersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPublishersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPublishersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPublishersResponse payload) { + return payload.getPublishersList(); + } + }; + + private static final PagedListDescriptor< + ListAiApplicationsRequest, ListAiApplicationsResponse, AiApplication> + LIST_AI_APPLICATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAiApplicationsRequest, ListAiApplicationsResponse, AiApplication>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAiApplicationsRequest injectToken( + ListAiApplicationsRequest payload, String token) { + return ListAiApplicationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAiApplicationsRequest injectPageSize( + ListAiApplicationsRequest payload, int pageSize) { + return ListAiApplicationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAiApplicationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAiApplicationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAiApplicationsResponse payload) { + return payload.getAiApplicationsList(); + } + }; + + private static final PagedListDescriptor< + ListAiApplicationAgentsRequest, ListAiApplicationAgentsResponse, Agent> + LIST_AI_APPLICATION_AGENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAiApplicationAgentsRequest, ListAiApplicationAgentsResponse, Agent>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAiApplicationAgentsRequest injectToken( + ListAiApplicationAgentsRequest payload, String token) { + return ListAiApplicationAgentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAiApplicationAgentsRequest injectPageSize( + ListAiApplicationAgentsRequest payload, int pageSize) { + return ListAiApplicationAgentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAiApplicationAgentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAiApplicationAgentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAiApplicationAgentsResponse payload) { + return payload.getAgentsList(); + } + }; + + private static final PagedListDescriptor< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse, McpServer> + LIST_AI_APPLICATION_MCP_SERVERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + McpServer>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAiApplicationMcpServersRequest injectToken( + ListAiApplicationMcpServersRequest payload, String token) { + return ListAiApplicationMcpServersRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAiApplicationMcpServersRequest injectPageSize( + ListAiApplicationMcpServersRequest payload, int pageSize) { + return ListAiApplicationMcpServersRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAiApplicationMcpServersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAiApplicationMcpServersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAiApplicationMcpServersResponse payload) { + return payload.getMcpServersList(); + } + }; + + private static final PagedListDescriptor + LIST_FINDINGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFindingsRequest injectToken(ListFindingsRequest payload, String token) { + return ListFindingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFindingsRequest injectPageSize(ListFindingsRequest payload, int pageSize) { + return ListFindingsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFindingsResponse payload) { + return payload.getFindingsList(); + } + }; + + private static final PagedListDescriptor< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsResponse, Endpoint> + LIST_AI_APPLICATION_ENDPOINTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsResponse, Endpoint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAiApplicationEndpointsRequest injectToken( + ListAiApplicationEndpointsRequest payload, String token) { + return ListAiApplicationEndpointsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAiApplicationEndpointsRequest injectPageSize( + ListAiApplicationEndpointsRequest payload, int pageSize) { + return ListAiApplicationEndpointsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAiApplicationEndpointsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAiApplicationEndpointsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAiApplicationEndpointsResponse payload) { + return payload.getEndpointsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -711,32 +1166,226 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - LIST_LOCATIONS_PAGE_STR_FACT = + ListSkillsRequest, ListSkillsResponse, ListSkillsPagedResponse> + LIST_SKILLS_PAGE_STR_FACT = new PagedListResponseFactory< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + ListSkillsRequest, ListSkillsResponse, ListSkillsPagedResponse>() { @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListLocationsRequest request, + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSkillsRequest request, ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); - return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SKILLS_PAGE_STR_DESC, request, context); + return ListSkillsPagedResponse.createAsync(pageContext, futureResponse); } }; - /** Returns the object with the settings used for calls to listAgents. */ - public PagedCallSettings - listAgentsSettings() { - return listAgentsSettings; - } - - /** Returns the object with the settings used for calls to searchAgents. */ - public PagedCallSettings - searchAgentsSettings() { - return searchAgentsSettings; + private static final PagedListResponseFactory< + SearchSkillsRequest, SearchSkillsResponse, SearchSkillsPagedResponse> + SEARCH_SKILLS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchSkillsRequest, SearchSkillsResponse, SearchSkillsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchSkillsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, SEARCH_SKILLS_PAGE_STR_DESC, request, context); + return SearchSkillsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, ListSkillRevisionsPagedResponse> + LIST_SKILL_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSkillRevisionsRequest, + ListSkillRevisionsResponse, + ListSkillRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSkillRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SKILL_REVISIONS_PAGE_STR_DESC, request, context); + return ListSkillRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPublishersRequest, ListPublishersResponse, ListPublishersPagedResponse> + LIST_PUBLISHERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPublishersRequest, ListPublishersResponse, ListPublishersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPublishersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_PUBLISHERS_PAGE_STR_DESC, request, context); + return ListPublishersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAiApplicationsRequest, ListAiApplicationsResponse, ListAiApplicationsPagedResponse> + LIST_AI_APPLICATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAiApplicationsRequest, + ListAiApplicationsResponse, + ListAiApplicationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAiApplicationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AI_APPLICATIONS_PAGE_STR_DESC, request, context); + return ListAiApplicationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + ListAiApplicationAgentsPagedResponse> + LIST_AI_APPLICATION_AGENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + ListAiApplicationAgentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAiApplicationAgentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AI_APPLICATION_AGENTS_PAGE_STR_DESC, request, context); + return ListAiApplicationAgentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + ListAiApplicationMcpServersPagedResponse> + LIST_AI_APPLICATION_MCP_SERVERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + ListAiApplicationMcpServersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse> + callable, + ListAiApplicationMcpServersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + McpServer> + pageContext = + PageContext.create( + callable, + LIST_AI_APPLICATION_MCP_SERVERS_PAGE_STR_DESC, + request, + context); + return ListAiApplicationMcpServersPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + LIST_FINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_FINDINGS_PAGE_STR_DESC, request, context); + return ListFindingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + ListAiApplicationEndpointsPagedResponse> + LIST_AI_APPLICATION_ENDPOINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + ListAiApplicationEndpointsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAiApplicationEndpointsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + Endpoint> + pageContext = + PageContext.create( + callable, LIST_AI_APPLICATION_ENDPOINTS_PAGE_STR_DESC, request, context); + return ListAiApplicationEndpointsPagedResponse.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 listAgents. */ + public PagedCallSettings + listAgentsSettings() { + return listAgentsSettings; + } + + /** Returns the object with the settings used for calls to searchAgents. */ + public PagedCallSettings + searchAgentsSettings() { + return searchAgentsSettings; } /** Returns the object with the settings used for calls to getAgent. */ @@ -871,6 +1520,188 @@ public UnaryCallSettings deleteBindingSettings( return fetchAvailableBindingsSettings; } + /** Returns the object with the settings used for calls to createSkill. */ + public UnaryCallSettings createSkillSettings() { + return createSkillSettings; + } + + /** Returns the object with the settings used for calls to createSkill. */ + public OperationCallSettings + createSkillOperationSettings() { + return createSkillOperationSettings; + } + + /** Returns the object with the settings used for calls to getSkill. */ + public UnaryCallSettings getSkillSettings() { + return getSkillSettings; + } + + /** Returns the object with the settings used for calls to updateSkill. */ + public UnaryCallSettings updateSkillSettings() { + return updateSkillSettings; + } + + /** Returns the object with the settings used for calls to updateSkill. */ + public OperationCallSettings + updateSkillOperationSettings() { + return updateSkillOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteSkill. */ + public UnaryCallSettings deleteSkillSettings() { + return deleteSkillSettings; + } + + /** Returns the object with the settings used for calls to deleteSkill. */ + public OperationCallSettings + deleteSkillOperationSettings() { + return deleteSkillOperationSettings; + } + + /** Returns the object with the settings used for calls to listSkills. */ + public PagedCallSettings + listSkillsSettings() { + return listSkillsSettings; + } + + /** Returns the object with the settings used for calls to searchSkills. */ + public PagedCallSettings + searchSkillsSettings() { + return searchSkillsSettings; + } + + /** Returns the object with the settings used for calls to createSkillRevision. */ + public UnaryCallSettings createSkillRevisionSettings() { + return createSkillRevisionSettings; + } + + /** Returns the object with the settings used for calls to createSkillRevision. */ + public OperationCallSettings + createSkillRevisionOperationSettings() { + return createSkillRevisionOperationSettings; + } + + /** Returns the object with the settings used for calls to getSkillRevision. */ + public UnaryCallSettings getSkillRevisionSettings() { + return getSkillRevisionSettings; + } + + /** Returns the object with the settings used for calls to deleteSkillRevision. */ + public UnaryCallSettings deleteSkillRevisionSettings() { + return deleteSkillRevisionSettings; + } + + /** Returns the object with the settings used for calls to deleteSkillRevision. */ + public OperationCallSettings + deleteSkillRevisionOperationSettings() { + return deleteSkillRevisionOperationSettings; + } + + /** Returns the object with the settings used for calls to listSkillRevisions. */ + public PagedCallSettings< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, ListSkillRevisionsPagedResponse> + listSkillRevisionsSettings() { + return listSkillRevisionsSettings; + } + + /** Returns the object with the settings used for calls to getPublisher. */ + public UnaryCallSettings getPublisherSettings() { + return getPublisherSettings; + } + + /** Returns the object with the settings used for calls to listPublishers. */ + public PagedCallSettings< + ListPublishersRequest, ListPublishersResponse, ListPublishersPagedResponse> + listPublishersSettings() { + return listPublishersSettings; + } + + /** Returns the object with the settings used for calls to getAiApplication. */ + public UnaryCallSettings getAiApplicationSettings() { + return getAiApplicationSettings; + } + + /** Returns the object with the settings used for calls to listAiApplications. */ + public PagedCallSettings< + ListAiApplicationsRequest, ListAiApplicationsResponse, ListAiApplicationsPagedResponse> + listAiApplicationsSettings() { + return listAiApplicationsSettings; + } + + /** Returns the object with the settings used for calls to getAiApplicationAgent. */ + public UnaryCallSettings getAiApplicationAgentSettings() { + return getAiApplicationAgentSettings; + } + + /** Returns the object with the settings used for calls to listAiApplicationAgents. */ + public PagedCallSettings< + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + ListAiApplicationAgentsPagedResponse> + listAiApplicationAgentsSettings() { + return listAiApplicationAgentsSettings; + } + + /** Returns the object with the settings used for calls to getAiApplicationMcpServer. */ + public UnaryCallSettings + getAiApplicationMcpServerSettings() { + return getAiApplicationMcpServerSettings; + } + + /** Returns the object with the settings used for calls to listAiApplicationMcpServers. */ + public PagedCallSettings< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersSettings() { + return listAiApplicationMcpServersSettings; + } + + /** Returns the object with the settings used for calls to getFinding. */ + public UnaryCallSettings getFindingSettings() { + return getFindingSettings; + } + + /** Returns the object with the settings used for calls to listFindings. */ + public PagedCallSettings + listFindingsSettings() { + return listFindingsSettings; + } + + /** Returns the object with the settings used for calls to getAiApplicationEndpoint. */ + public UnaryCallSettings + getAiApplicationEndpointSettings() { + return getAiApplicationEndpointSettings; + } + + /** Returns the object with the settings used for calls to listAiApplicationEndpoints. */ + public PagedCallSettings< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsSettings() { + return listAiApplicationEndpointsSettings; + } + + /** Returns the object with the settings used for calls to getSkillEncryptionSpec. */ + public UnaryCallSettings + getSkillEncryptionSpecSettings() { + return getSkillEncryptionSpecSettings; + } + + /** Returns the object with the settings used for calls to updateSkillEncryptionSpec. */ + public UnaryCallSettings + updateSkillEncryptionSpecSettings() { + return updateSkillEncryptionSpecSettings; + } + + /** Returns the object with the settings used for calls to updateSkillEncryptionSpec. */ + public OperationCallSettings< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationSettings() { + return updateSkillEncryptionSpecOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1018,6 +1849,41 @@ protected AgentRegistryStubSettings(Builder settingsBuilder) throws IOException deleteBindingSettings = settingsBuilder.deleteBindingSettings().build(); deleteBindingOperationSettings = settingsBuilder.deleteBindingOperationSettings().build(); fetchAvailableBindingsSettings = settingsBuilder.fetchAvailableBindingsSettings().build(); + createSkillSettings = settingsBuilder.createSkillSettings().build(); + createSkillOperationSettings = settingsBuilder.createSkillOperationSettings().build(); + getSkillSettings = settingsBuilder.getSkillSettings().build(); + updateSkillSettings = settingsBuilder.updateSkillSettings().build(); + updateSkillOperationSettings = settingsBuilder.updateSkillOperationSettings().build(); + deleteSkillSettings = settingsBuilder.deleteSkillSettings().build(); + deleteSkillOperationSettings = settingsBuilder.deleteSkillOperationSettings().build(); + listSkillsSettings = settingsBuilder.listSkillsSettings().build(); + searchSkillsSettings = settingsBuilder.searchSkillsSettings().build(); + createSkillRevisionSettings = settingsBuilder.createSkillRevisionSettings().build(); + createSkillRevisionOperationSettings = + settingsBuilder.createSkillRevisionOperationSettings().build(); + getSkillRevisionSettings = settingsBuilder.getSkillRevisionSettings().build(); + deleteSkillRevisionSettings = settingsBuilder.deleteSkillRevisionSettings().build(); + deleteSkillRevisionOperationSettings = + settingsBuilder.deleteSkillRevisionOperationSettings().build(); + listSkillRevisionsSettings = settingsBuilder.listSkillRevisionsSettings().build(); + getPublisherSettings = settingsBuilder.getPublisherSettings().build(); + listPublishersSettings = settingsBuilder.listPublishersSettings().build(); + getAiApplicationSettings = settingsBuilder.getAiApplicationSettings().build(); + listAiApplicationsSettings = settingsBuilder.listAiApplicationsSettings().build(); + getAiApplicationAgentSettings = settingsBuilder.getAiApplicationAgentSettings().build(); + listAiApplicationAgentsSettings = settingsBuilder.listAiApplicationAgentsSettings().build(); + getAiApplicationMcpServerSettings = settingsBuilder.getAiApplicationMcpServerSettings().build(); + listAiApplicationMcpServersSettings = + settingsBuilder.listAiApplicationMcpServersSettings().build(); + getFindingSettings = settingsBuilder.getFindingSettings().build(); + listFindingsSettings = settingsBuilder.listFindingsSettings().build(); + getAiApplicationEndpointSettings = settingsBuilder.getAiApplicationEndpointSettings().build(); + listAiApplicationEndpointsSettings = + settingsBuilder.listAiApplicationEndpointsSettings().build(); + getSkillEncryptionSpecSettings = settingsBuilder.getSkillEncryptionSpecSettings().build(); + updateSkillEncryptionSpecSettings = settingsBuilder.updateSkillEncryptionSpecSettings().build(); + updateSkillEncryptionSpecOperationSettings = + settingsBuilder.updateSkillEncryptionSpecOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1083,6 +1949,78 @@ public static class Builder extends StubSettings.Builder fetchAvailableBindingsSettings; + private final UnaryCallSettings.Builder createSkillSettings; + private final OperationCallSettings.Builder + createSkillOperationSettings; + private final UnaryCallSettings.Builder getSkillSettings; + private final UnaryCallSettings.Builder updateSkillSettings; + private final OperationCallSettings.Builder + updateSkillOperationSettings; + private final UnaryCallSettings.Builder deleteSkillSettings; + private final OperationCallSettings.Builder + deleteSkillOperationSettings; + private final PagedCallSettings.Builder< + ListSkillsRequest, ListSkillsResponse, ListSkillsPagedResponse> + listSkillsSettings; + private final PagedCallSettings.Builder< + SearchSkillsRequest, SearchSkillsResponse, SearchSkillsPagedResponse> + searchSkillsSettings; + private final UnaryCallSettings.Builder + createSkillRevisionSettings; + private final OperationCallSettings.Builder< + CreateSkillRevisionRequest, SkillRevision, OperationMetadata> + createSkillRevisionOperationSettings; + private final UnaryCallSettings.Builder + getSkillRevisionSettings; + private final UnaryCallSettings.Builder + deleteSkillRevisionSettings; + private final OperationCallSettings.Builder< + DeleteSkillRevisionRequest, Empty, OperationMetadata> + deleteSkillRevisionOperationSettings; + private final PagedCallSettings.Builder< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, ListSkillRevisionsPagedResponse> + listSkillRevisionsSettings; + private final UnaryCallSettings.Builder getPublisherSettings; + private final PagedCallSettings.Builder< + ListPublishersRequest, ListPublishersResponse, ListPublishersPagedResponse> + listPublishersSettings; + private final UnaryCallSettings.Builder + getAiApplicationSettings; + private final PagedCallSettings.Builder< + ListAiApplicationsRequest, ListAiApplicationsResponse, ListAiApplicationsPagedResponse> + listAiApplicationsSettings; + private final UnaryCallSettings.Builder + getAiApplicationAgentSettings; + private final PagedCallSettings.Builder< + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + ListAiApplicationAgentsPagedResponse> + listAiApplicationAgentsSettings; + private final UnaryCallSettings.Builder + getAiApplicationMcpServerSettings; + private final PagedCallSettings.Builder< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersSettings; + private final UnaryCallSettings.Builder getFindingSettings; + private final PagedCallSettings.Builder< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + listFindingsSettings; + private final UnaryCallSettings.Builder + getAiApplicationEndpointSettings; + private final PagedCallSettings.Builder< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsSettings; + private final UnaryCallSettings.Builder + getSkillEncryptionSpecSettings; + private final UnaryCallSettings.Builder + updateSkillEncryptionSpecSettings; + private final OperationCallSettings.Builder< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1164,6 +2102,39 @@ protected Builder(@Nullable ClientContext clientContext) { deleteBindingOperationSettings = OperationCallSettings.newBuilder(); fetchAvailableBindingsSettings = PagedCallSettings.newBuilder(FETCH_AVAILABLE_BINDINGS_PAGE_STR_FACT); + createSkillSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSkillOperationSettings = OperationCallSettings.newBuilder(); + getSkillSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSkillSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSkillOperationSettings = OperationCallSettings.newBuilder(); + deleteSkillSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSkillOperationSettings = OperationCallSettings.newBuilder(); + listSkillsSettings = PagedCallSettings.newBuilder(LIST_SKILLS_PAGE_STR_FACT); + searchSkillsSettings = PagedCallSettings.newBuilder(SEARCH_SKILLS_PAGE_STR_FACT); + createSkillRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSkillRevisionOperationSettings = OperationCallSettings.newBuilder(); + getSkillRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSkillRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSkillRevisionOperationSettings = OperationCallSettings.newBuilder(); + listSkillRevisionsSettings = PagedCallSettings.newBuilder(LIST_SKILL_REVISIONS_PAGE_STR_FACT); + getPublisherSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPublishersSettings = PagedCallSettings.newBuilder(LIST_PUBLISHERS_PAGE_STR_FACT); + getAiApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAiApplicationsSettings = PagedCallSettings.newBuilder(LIST_AI_APPLICATIONS_PAGE_STR_FACT); + getAiApplicationAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAiApplicationAgentsSettings = + PagedCallSettings.newBuilder(LIST_AI_APPLICATION_AGENTS_PAGE_STR_FACT); + getAiApplicationMcpServerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAiApplicationMcpServersSettings = + PagedCallSettings.newBuilder(LIST_AI_APPLICATION_MCP_SERVERS_PAGE_STR_FACT); + getFindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listFindingsSettings = PagedCallSettings.newBuilder(LIST_FINDINGS_PAGE_STR_FACT); + getAiApplicationEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAiApplicationEndpointsSettings = + PagedCallSettings.newBuilder(LIST_AI_APPLICATION_ENDPOINTS_PAGE_STR_FACT); + getSkillEncryptionSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSkillEncryptionSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSkillEncryptionSpecOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1188,6 +2159,30 @@ protected Builder(@Nullable ClientContext clientContext) { updateBindingSettings, deleteBindingSettings, fetchAvailableBindingsSettings, + createSkillSettings, + getSkillSettings, + updateSkillSettings, + deleteSkillSettings, + listSkillsSettings, + searchSkillsSettings, + createSkillRevisionSettings, + getSkillRevisionSettings, + deleteSkillRevisionSettings, + listSkillRevisionsSettings, + getPublisherSettings, + listPublishersSettings, + getAiApplicationSettings, + listAiApplicationsSettings, + getAiApplicationAgentSettings, + listAiApplicationAgentsSettings, + getAiApplicationMcpServerSettings, + listAiApplicationMcpServersSettings, + getFindingSettings, + listFindingsSettings, + getAiApplicationEndpointSettings, + listAiApplicationEndpointsSettings, + getSkillEncryptionSpecSettings, + updateSkillEncryptionSpecSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1221,6 +2216,40 @@ protected Builder(AgentRegistryStubSettings settings) { deleteBindingSettings = settings.deleteBindingSettings.toBuilder(); deleteBindingOperationSettings = settings.deleteBindingOperationSettings.toBuilder(); fetchAvailableBindingsSettings = settings.fetchAvailableBindingsSettings.toBuilder(); + createSkillSettings = settings.createSkillSettings.toBuilder(); + createSkillOperationSettings = settings.createSkillOperationSettings.toBuilder(); + getSkillSettings = settings.getSkillSettings.toBuilder(); + updateSkillSettings = settings.updateSkillSettings.toBuilder(); + updateSkillOperationSettings = settings.updateSkillOperationSettings.toBuilder(); + deleteSkillSettings = settings.deleteSkillSettings.toBuilder(); + deleteSkillOperationSettings = settings.deleteSkillOperationSettings.toBuilder(); + listSkillsSettings = settings.listSkillsSettings.toBuilder(); + searchSkillsSettings = settings.searchSkillsSettings.toBuilder(); + createSkillRevisionSettings = settings.createSkillRevisionSettings.toBuilder(); + createSkillRevisionOperationSettings = + settings.createSkillRevisionOperationSettings.toBuilder(); + getSkillRevisionSettings = settings.getSkillRevisionSettings.toBuilder(); + deleteSkillRevisionSettings = settings.deleteSkillRevisionSettings.toBuilder(); + deleteSkillRevisionOperationSettings = + settings.deleteSkillRevisionOperationSettings.toBuilder(); + listSkillRevisionsSettings = settings.listSkillRevisionsSettings.toBuilder(); + getPublisherSettings = settings.getPublisherSettings.toBuilder(); + listPublishersSettings = settings.listPublishersSettings.toBuilder(); + getAiApplicationSettings = settings.getAiApplicationSettings.toBuilder(); + listAiApplicationsSettings = settings.listAiApplicationsSettings.toBuilder(); + getAiApplicationAgentSettings = settings.getAiApplicationAgentSettings.toBuilder(); + listAiApplicationAgentsSettings = settings.listAiApplicationAgentsSettings.toBuilder(); + getAiApplicationMcpServerSettings = settings.getAiApplicationMcpServerSettings.toBuilder(); + listAiApplicationMcpServersSettings = + settings.listAiApplicationMcpServersSettings.toBuilder(); + getFindingSettings = settings.getFindingSettings.toBuilder(); + listFindingsSettings = settings.listFindingsSettings.toBuilder(); + getAiApplicationEndpointSettings = settings.getAiApplicationEndpointSettings.toBuilder(); + listAiApplicationEndpointsSettings = settings.listAiApplicationEndpointsSettings.toBuilder(); + getSkillEncryptionSpecSettings = settings.getSkillEncryptionSpecSettings.toBuilder(); + updateSkillEncryptionSpecSettings = settings.updateSkillEncryptionSpecSettings.toBuilder(); + updateSkillEncryptionSpecOperationSettings = + settings.updateSkillEncryptionSpecOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1245,6 +2274,30 @@ protected Builder(AgentRegistryStubSettings settings) { updateBindingSettings, deleteBindingSettings, fetchAvailableBindingsSettings, + createSkillSettings, + getSkillSettings, + updateSkillSettings, + deleteSkillSettings, + listSkillsSettings, + searchSkillsSettings, + createSkillRevisionSettings, + getSkillRevisionSettings, + deleteSkillRevisionSettings, + listSkillRevisionsSettings, + getPublisherSettings, + listPublishersSettings, + getAiApplicationSettings, + listAiApplicationsSettings, + getAiApplicationAgentSettings, + listAiApplicationAgentsSettings, + getAiApplicationMcpServerSettings, + listAiApplicationMcpServersSettings, + getFindingSettings, + listFindingsSettings, + getAiApplicationEndpointSettings, + listAiApplicationEndpointsSettings, + getSkillEncryptionSpecSettings, + updateSkillEncryptionSpecSettings, listLocationsSettings, getLocationSettings); } @@ -1369,6 +2422,126 @@ 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 + .createSkillSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSkillSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateSkillSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteSkillSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSkillsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .searchSkillsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createSkillRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSkillRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteSkillRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSkillRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getPublisherSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listPublishersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAiApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAiApplicationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAiApplicationAgentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAiApplicationAgentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAiApplicationMcpServerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAiApplicationMcpServersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getFindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listFindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAiApplicationEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAiApplicationEndpointsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getSkillEncryptionSpecSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateSkillEncryptionSpecSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1523,6 +2696,148 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createSkillOperationSettings() + .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(Skill.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 + .updateSkillOperationSettings() + .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(Skill.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 + .deleteSkillOperationSettings() + .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())); + + builder + .createSkillRevisionOperationSettings() + .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(SkillRevision.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 + .deleteSkillRevisionOperationSettings() + .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())); + + builder + .updateSkillEncryptionSpecOperationSettings() + .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(SkillEncryptionSpec.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; } @@ -1689,6 +3004,196 @@ public UnaryCallSettings.Builder deleteBindingS return fetchAvailableBindingsSettings; } + /** Returns the builder for the settings used for calls to createSkill. */ + public UnaryCallSettings.Builder createSkillSettings() { + return createSkillSettings; + } + + /** Returns the builder for the settings used for calls to createSkill. */ + public OperationCallSettings.Builder + createSkillOperationSettings() { + return createSkillOperationSettings; + } + + /** Returns the builder for the settings used for calls to getSkill. */ + public UnaryCallSettings.Builder getSkillSettings() { + return getSkillSettings; + } + + /** Returns the builder for the settings used for calls to updateSkill. */ + public UnaryCallSettings.Builder updateSkillSettings() { + return updateSkillSettings; + } + + /** Returns the builder for the settings used for calls to updateSkill. */ + public OperationCallSettings.Builder + updateSkillOperationSettings() { + return updateSkillOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteSkill. */ + public UnaryCallSettings.Builder deleteSkillSettings() { + return deleteSkillSettings; + } + + /** Returns the builder for the settings used for calls to deleteSkill. */ + public OperationCallSettings.Builder + deleteSkillOperationSettings() { + return deleteSkillOperationSettings; + } + + /** Returns the builder for the settings used for calls to listSkills. */ + public PagedCallSettings.Builder + listSkillsSettings() { + return listSkillsSettings; + } + + /** Returns the builder for the settings used for calls to searchSkills. */ + public PagedCallSettings.Builder< + SearchSkillsRequest, SearchSkillsResponse, SearchSkillsPagedResponse> + searchSkillsSettings() { + return searchSkillsSettings; + } + + /** Returns the builder for the settings used for calls to createSkillRevision. */ + public UnaryCallSettings.Builder + createSkillRevisionSettings() { + return createSkillRevisionSettings; + } + + /** Returns the builder for the settings used for calls to createSkillRevision. */ + public OperationCallSettings.Builder< + CreateSkillRevisionRequest, SkillRevision, OperationMetadata> + createSkillRevisionOperationSettings() { + return createSkillRevisionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getSkillRevision. */ + public UnaryCallSettings.Builder + getSkillRevisionSettings() { + return getSkillRevisionSettings; + } + + /** Returns the builder for the settings used for calls to deleteSkillRevision. */ + public UnaryCallSettings.Builder + deleteSkillRevisionSettings() { + return deleteSkillRevisionSettings; + } + + /** Returns the builder for the settings used for calls to deleteSkillRevision. */ + public OperationCallSettings.Builder + deleteSkillRevisionOperationSettings() { + return deleteSkillRevisionOperationSettings; + } + + /** Returns the builder for the settings used for calls to listSkillRevisions. */ + public PagedCallSettings.Builder< + ListSkillRevisionsRequest, ListSkillRevisionsResponse, ListSkillRevisionsPagedResponse> + listSkillRevisionsSettings() { + return listSkillRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to getPublisher. */ + public UnaryCallSettings.Builder getPublisherSettings() { + return getPublisherSettings; + } + + /** Returns the builder for the settings used for calls to listPublishers. */ + public PagedCallSettings.Builder< + ListPublishersRequest, ListPublishersResponse, ListPublishersPagedResponse> + listPublishersSettings() { + return listPublishersSettings; + } + + /** Returns the builder for the settings used for calls to getAiApplication. */ + public UnaryCallSettings.Builder + getAiApplicationSettings() { + return getAiApplicationSettings; + } + + /** Returns the builder for the settings used for calls to listAiApplications. */ + public PagedCallSettings.Builder< + ListAiApplicationsRequest, ListAiApplicationsResponse, ListAiApplicationsPagedResponse> + listAiApplicationsSettings() { + return listAiApplicationsSettings; + } + + /** Returns the builder for the settings used for calls to getAiApplicationAgent. */ + public UnaryCallSettings.Builder + getAiApplicationAgentSettings() { + return getAiApplicationAgentSettings; + } + + /** Returns the builder for the settings used for calls to listAiApplicationAgents. */ + public PagedCallSettings.Builder< + ListAiApplicationAgentsRequest, + ListAiApplicationAgentsResponse, + ListAiApplicationAgentsPagedResponse> + listAiApplicationAgentsSettings() { + return listAiApplicationAgentsSettings; + } + + /** Returns the builder for the settings used for calls to getAiApplicationMcpServer. */ + public UnaryCallSettings.Builder + getAiApplicationMcpServerSettings() { + return getAiApplicationMcpServerSettings; + } + + /** Returns the builder for the settings used for calls to listAiApplicationMcpServers. */ + public PagedCallSettings.Builder< + ListAiApplicationMcpServersRequest, + ListAiApplicationMcpServersResponse, + ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersSettings() { + return listAiApplicationMcpServersSettings; + } + + /** Returns the builder for the settings used for calls to getFinding. */ + public UnaryCallSettings.Builder getFindingSettings() { + return getFindingSettings; + } + + /** Returns the builder for the settings used for calls to listFindings. */ + public PagedCallSettings.Builder< + ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse> + listFindingsSettings() { + return listFindingsSettings; + } + + /** Returns the builder for the settings used for calls to getAiApplicationEndpoint. */ + public UnaryCallSettings.Builder + getAiApplicationEndpointSettings() { + return getAiApplicationEndpointSettings; + } + + /** Returns the builder for the settings used for calls to listAiApplicationEndpoints. */ + public PagedCallSettings.Builder< + ListAiApplicationEndpointsRequest, + ListAiApplicationEndpointsResponse, + ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsSettings() { + return listAiApplicationEndpointsSettings; + } + + /** Returns the builder for the settings used for calls to getSkillEncryptionSpec. */ + public UnaryCallSettings.Builder + getSkillEncryptionSpecSettings() { + return getSkillEncryptionSpecSettings; + } + + /** Returns the builder for the settings used for calls to updateSkillEncryptionSpec. */ + public UnaryCallSettings.Builder + updateSkillEncryptionSpecSettings() { + return updateSkillEncryptionSpecSettings; + } + + /** Returns the builder for the settings used for calls to updateSkillEncryptionSpec. */ + public OperationCallSettings.Builder< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationSettings() { + return updateSkillEncryptionSpecOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryStub.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryStub.java index 3de96dc1b9b5..3098760c43e4 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryStub.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryStub.java @@ -18,13 +18,22 @@ import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListFindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListPublishersPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillRevisionsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchSkillsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -35,38 +44,77 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AiApplication; import com.google.cloud.agentregistry.v1.Binding; import com.google.cloud.agentregistry.v1.CreateBindingRequest; import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.CreateSkillRequest; +import com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest; import com.google.cloud.agentregistry.v1.DeleteBindingRequest; import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.DeleteSkillRequest; +import com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest; import com.google.cloud.agentregistry.v1.Endpoint; import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.Finding; import com.google.cloud.agentregistry.v1.GetAgentRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationRequest; import com.google.cloud.agentregistry.v1.GetBindingRequest; import com.google.cloud.agentregistry.v1.GetEndpointRequest; +import com.google.cloud.agentregistry.v1.GetFindingRequest; import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetPublisherRequest; import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.GetSkillRequest; +import com.google.cloud.agentregistry.v1.GetSkillRevisionRequest; import com.google.cloud.agentregistry.v1.ListAgentsRequest; import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationsResponse; import com.google.cloud.agentregistry.v1.ListBindingsRequest; import com.google.cloud.agentregistry.v1.ListBindingsResponse; import com.google.cloud.agentregistry.v1.ListEndpointsRequest; import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListFindingsRequest; +import com.google.cloud.agentregistry.v1.ListFindingsResponse; import com.google.cloud.agentregistry.v1.ListMcpServersRequest; import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListPublishersRequest; +import com.google.cloud.agentregistry.v1.ListPublishersResponse; import com.google.cloud.agentregistry.v1.ListServicesRequest; import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse; +import com.google.cloud.agentregistry.v1.ListSkillsRequest; +import com.google.cloud.agentregistry.v1.ListSkillsResponse; import com.google.cloud.agentregistry.v1.McpServer; import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.Publisher; import com.google.cloud.agentregistry.v1.SearchAgentsRequest; import com.google.cloud.agentregistry.v1.SearchAgentsResponse; import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.cloud.agentregistry.v1.SearchSkillsRequest; +import com.google.cloud.agentregistry.v1.SearchSkillsResponse; import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.SkillRevision; import com.google.cloud.agentregistry.v1.UpdateBindingRequest; import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.UpdateSkillRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -296,6 +344,279 @@ public class GrpcAgentRegistryStub extends AgentRegistryStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor createSkillMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/CreateSkill") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSkillRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getSkillMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetSkill") + .setRequestMarshaller(ProtoUtils.marshaller(GetSkillRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Skill.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateSkillMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/UpdateSkill") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateSkillRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteSkillMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/DeleteSkill") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteSkillRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listSkillsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListSkills") + .setRequestMarshaller(ProtoUtils.marshaller(ListSkillsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListSkillsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + searchSkillsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/SearchSkills") + .setRequestMarshaller(ProtoUtils.marshaller(SearchSkillsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchSkillsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createSkillRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/CreateSkillRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSkillRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getSkillRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetSkillRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSkillRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SkillRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteSkillRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/DeleteSkillRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSkillRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listSkillRevisionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListSkillRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSkillRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSkillRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getPublisherMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetPublisher") + .setRequestMarshaller(ProtoUtils.marshaller(GetPublisherRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Publisher.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listPublishersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListPublishers") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPublishersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPublishersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAiApplicationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetAiApplication") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAiApplicationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AiApplication.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAiApplicationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListAiApplications") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAiApplicationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAiApplicationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAiApplicationAgentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/GetAiApplicationAgent") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAiApplicationAgentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Agent.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAiApplicationAgentsRequest, ListAiApplicationAgentsResponse> + listAiApplicationAgentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/ListAiApplicationAgents") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAiApplicationAgentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAiApplicationAgentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAiApplicationMcpServerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/GetAiApplicationMcpServer") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAiApplicationMcpServerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(McpServer.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse> + listAiApplicationMcpServersMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/ListAiApplicationMcpServers") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAiApplicationMcpServersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAiApplicationMcpServersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getFindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetFinding") + .setRequestMarshaller(ProtoUtils.marshaller(GetFindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Finding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listFindingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListFindings") + .setRequestMarshaller(ProtoUtils.marshaller(ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAiApplicationEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/GetAiApplicationEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAiApplicationEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Endpoint.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsResponse> + listAiApplicationEndpointsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/ListAiApplicationEndpoints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAiApplicationEndpointsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAiApplicationEndpointsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getSkillEncryptionSpecMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/GetSkillEncryptionSpec") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSkillEncryptionSpecRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SkillEncryptionSpec.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateSkillEncryptionSpecMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/UpdateSkillEncryptionSpec") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSkillEncryptionSpecRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -365,6 +686,72 @@ public class GrpcAgentRegistryStub extends AgentRegistryStub { fetchAvailableBindingsCallable; private final UnaryCallable fetchAvailableBindingsPagedCallable; + private final UnaryCallable createSkillCallable; + private final OperationCallable + createSkillOperationCallable; + private final UnaryCallable getSkillCallable; + private final UnaryCallable updateSkillCallable; + private final OperationCallable + updateSkillOperationCallable; + private final UnaryCallable deleteSkillCallable; + private final OperationCallable + deleteSkillOperationCallable; + private final UnaryCallable listSkillsCallable; + private final UnaryCallable listSkillsPagedCallable; + private final UnaryCallable searchSkillsCallable; + private final UnaryCallable + searchSkillsPagedCallable; + private final UnaryCallable createSkillRevisionCallable; + private final OperationCallable + createSkillRevisionOperationCallable; + private final UnaryCallable getSkillRevisionCallable; + private final UnaryCallable deleteSkillRevisionCallable; + private final OperationCallable + deleteSkillRevisionOperationCallable; + private final UnaryCallable + listSkillRevisionsCallable; + private final UnaryCallable + listSkillRevisionsPagedCallable; + private final UnaryCallable getPublisherCallable; + private final UnaryCallable listPublishersCallable; + private final UnaryCallable + listPublishersPagedCallable; + private final UnaryCallable getAiApplicationCallable; + private final UnaryCallable + listAiApplicationsCallable; + private final UnaryCallable + listAiApplicationsPagedCallable; + private final UnaryCallable getAiApplicationAgentCallable; + private final UnaryCallable + listAiApplicationAgentsCallable; + private final UnaryCallable + listAiApplicationAgentsPagedCallable; + private final UnaryCallable + getAiApplicationMcpServerCallable; + private final UnaryCallable< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse> + listAiApplicationMcpServersCallable; + private final UnaryCallable< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersPagedCallable; + private final UnaryCallable getFindingCallable; + private final UnaryCallable listFindingsCallable; + private final UnaryCallable + listFindingsPagedCallable; + private final UnaryCallable + getAiApplicationEndpointCallable; + private final UnaryCallable + listAiApplicationEndpointsCallable; + private final UnaryCallable< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsPagedCallable; + private final UnaryCallable + getSkillEncryptionSpecCallable; + private final UnaryCallable + updateSkillEncryptionSpecCallable; + private final OperationCallable< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -623,6 +1010,284 @@ protected GrpcAgentRegistryStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings createSkillTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSkillMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getSkillTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSkillMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateSkillTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSkillMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("skill.name", String.valueOf(request.getSkill().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSkillTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSkillMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listSkillsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSkillsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings searchSkillsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchSkillsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings createSkillRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSkillRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getSkillRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSkillRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteSkillRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSkillRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listSkillRevisionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSkillRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getPublisherTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPublisherMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listPublishersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPublishersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAiApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAiApplicationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAiApplicationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAiApplicationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAiApplicationAgentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAiApplicationAgentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAiApplicationAgentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAiApplicationAgentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getAiApplicationMcpServerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAiApplicationMcpServerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAiApplicationMcpServersTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listAiApplicationMcpServersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getFindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listFindingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getAiApplicationEndpointTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAiApplicationEndpointMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAiApplicationEndpointsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAiApplicationEndpointsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getSkillEncryptionSpecTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSkillEncryptionSpecMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateSkillEncryptionSpecTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSkillEncryptionSpecMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "skill_encryption_spec.name", + String.valueOf(request.getSkillEncryptionSpec().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -765,6 +1430,175 @@ protected GrpcAgentRegistryStub( fetchAvailableBindingsTransportSettings, settings.fetchAvailableBindingsSettings(), clientContext); + this.createSkillCallable = + callableFactory.createUnaryCallable( + createSkillTransportSettings, settings.createSkillSettings(), clientContext); + this.createSkillOperationCallable = + callableFactory.createOperationCallable( + createSkillTransportSettings, + settings.createSkillOperationSettings(), + clientContext, + operationsStub); + this.getSkillCallable = + callableFactory.createUnaryCallable( + getSkillTransportSettings, settings.getSkillSettings(), clientContext); + this.updateSkillCallable = + callableFactory.createUnaryCallable( + updateSkillTransportSettings, settings.updateSkillSettings(), clientContext); + this.updateSkillOperationCallable = + callableFactory.createOperationCallable( + updateSkillTransportSettings, + settings.updateSkillOperationSettings(), + clientContext, + operationsStub); + this.deleteSkillCallable = + callableFactory.createUnaryCallable( + deleteSkillTransportSettings, settings.deleteSkillSettings(), clientContext); + this.deleteSkillOperationCallable = + callableFactory.createOperationCallable( + deleteSkillTransportSettings, + settings.deleteSkillOperationSettings(), + clientContext, + operationsStub); + this.listSkillsCallable = + callableFactory.createUnaryCallable( + listSkillsTransportSettings, settings.listSkillsSettings(), clientContext); + this.listSkillsPagedCallable = + callableFactory.createPagedCallable( + listSkillsTransportSettings, settings.listSkillsSettings(), clientContext); + this.searchSkillsCallable = + callableFactory.createUnaryCallable( + searchSkillsTransportSettings, settings.searchSkillsSettings(), clientContext); + this.searchSkillsPagedCallable = + callableFactory.createPagedCallable( + searchSkillsTransportSettings, settings.searchSkillsSettings(), clientContext); + this.createSkillRevisionCallable = + callableFactory.createUnaryCallable( + createSkillRevisionTransportSettings, + settings.createSkillRevisionSettings(), + clientContext); + this.createSkillRevisionOperationCallable = + callableFactory.createOperationCallable( + createSkillRevisionTransportSettings, + settings.createSkillRevisionOperationSettings(), + clientContext, + operationsStub); + this.getSkillRevisionCallable = + callableFactory.createUnaryCallable( + getSkillRevisionTransportSettings, settings.getSkillRevisionSettings(), clientContext); + this.deleteSkillRevisionCallable = + callableFactory.createUnaryCallable( + deleteSkillRevisionTransportSettings, + settings.deleteSkillRevisionSettings(), + clientContext); + this.deleteSkillRevisionOperationCallable = + callableFactory.createOperationCallable( + deleteSkillRevisionTransportSettings, + settings.deleteSkillRevisionOperationSettings(), + clientContext, + operationsStub); + this.listSkillRevisionsCallable = + callableFactory.createUnaryCallable( + listSkillRevisionsTransportSettings, + settings.listSkillRevisionsSettings(), + clientContext); + this.listSkillRevisionsPagedCallable = + callableFactory.createPagedCallable( + listSkillRevisionsTransportSettings, + settings.listSkillRevisionsSettings(), + clientContext); + this.getPublisherCallable = + callableFactory.createUnaryCallable( + getPublisherTransportSettings, settings.getPublisherSettings(), clientContext); + this.listPublishersCallable = + callableFactory.createUnaryCallable( + listPublishersTransportSettings, settings.listPublishersSettings(), clientContext); + this.listPublishersPagedCallable = + callableFactory.createPagedCallable( + listPublishersTransportSettings, settings.listPublishersSettings(), clientContext); + this.getAiApplicationCallable = + callableFactory.createUnaryCallable( + getAiApplicationTransportSettings, settings.getAiApplicationSettings(), clientContext); + this.listAiApplicationsCallable = + callableFactory.createUnaryCallable( + listAiApplicationsTransportSettings, + settings.listAiApplicationsSettings(), + clientContext); + this.listAiApplicationsPagedCallable = + callableFactory.createPagedCallable( + listAiApplicationsTransportSettings, + settings.listAiApplicationsSettings(), + clientContext); + this.getAiApplicationAgentCallable = + callableFactory.createUnaryCallable( + getAiApplicationAgentTransportSettings, + settings.getAiApplicationAgentSettings(), + clientContext); + this.listAiApplicationAgentsCallable = + callableFactory.createUnaryCallable( + listAiApplicationAgentsTransportSettings, + settings.listAiApplicationAgentsSettings(), + clientContext); + this.listAiApplicationAgentsPagedCallable = + callableFactory.createPagedCallable( + listAiApplicationAgentsTransportSettings, + settings.listAiApplicationAgentsSettings(), + clientContext); + this.getAiApplicationMcpServerCallable = + callableFactory.createUnaryCallable( + getAiApplicationMcpServerTransportSettings, + settings.getAiApplicationMcpServerSettings(), + clientContext); + this.listAiApplicationMcpServersCallable = + callableFactory.createUnaryCallable( + listAiApplicationMcpServersTransportSettings, + settings.listAiApplicationMcpServersSettings(), + clientContext); + this.listAiApplicationMcpServersPagedCallable = + callableFactory.createPagedCallable( + listAiApplicationMcpServersTransportSettings, + settings.listAiApplicationMcpServersSettings(), + clientContext); + this.getFindingCallable = + callableFactory.createUnaryCallable( + getFindingTransportSettings, settings.getFindingSettings(), clientContext); + this.listFindingsCallable = + callableFactory.createUnaryCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listFindingsPagedCallable = + callableFactory.createPagedCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.getAiApplicationEndpointCallable = + callableFactory.createUnaryCallable( + getAiApplicationEndpointTransportSettings, + settings.getAiApplicationEndpointSettings(), + clientContext); + this.listAiApplicationEndpointsCallable = + callableFactory.createUnaryCallable( + listAiApplicationEndpointsTransportSettings, + settings.listAiApplicationEndpointsSettings(), + clientContext); + this.listAiApplicationEndpointsPagedCallable = + callableFactory.createPagedCallable( + listAiApplicationEndpointsTransportSettings, + settings.listAiApplicationEndpointsSettings(), + clientContext); + this.getSkillEncryptionSpecCallable = + callableFactory.createUnaryCallable( + getSkillEncryptionSpecTransportSettings, + settings.getSkillEncryptionSpecSettings(), + clientContext); + this.updateSkillEncryptionSpecCallable = + callableFactory.createUnaryCallable( + updateSkillEncryptionSpecTransportSettings, + settings.updateSkillEncryptionSpecSettings(), + clientContext); + this.updateSkillEncryptionSpecOperationCallable = + callableFactory.createOperationCallable( + updateSkillEncryptionSpecTransportSettings, + settings.updateSkillEncryptionSpecOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -960,6 +1794,222 @@ public UnaryCallable deleteBindingCallable() { return fetchAvailableBindingsPagedCallable; } + @Override + public UnaryCallable createSkillCallable() { + return createSkillCallable; + } + + @Override + public OperationCallable + createSkillOperationCallable() { + return createSkillOperationCallable; + } + + @Override + public UnaryCallable getSkillCallable() { + return getSkillCallable; + } + + @Override + public UnaryCallable updateSkillCallable() { + return updateSkillCallable; + } + + @Override + public OperationCallable + updateSkillOperationCallable() { + return updateSkillOperationCallable; + } + + @Override + public UnaryCallable deleteSkillCallable() { + return deleteSkillCallable; + } + + @Override + public OperationCallable + deleteSkillOperationCallable() { + return deleteSkillOperationCallable; + } + + @Override + public UnaryCallable listSkillsCallable() { + return listSkillsCallable; + } + + @Override + public UnaryCallable listSkillsPagedCallable() { + return listSkillsPagedCallable; + } + + @Override + public UnaryCallable searchSkillsCallable() { + return searchSkillsCallable; + } + + @Override + public UnaryCallable searchSkillsPagedCallable() { + return searchSkillsPagedCallable; + } + + @Override + public UnaryCallable createSkillRevisionCallable() { + return createSkillRevisionCallable; + } + + @Override + public OperationCallable + createSkillRevisionOperationCallable() { + return createSkillRevisionOperationCallable; + } + + @Override + public UnaryCallable getSkillRevisionCallable() { + return getSkillRevisionCallable; + } + + @Override + public UnaryCallable deleteSkillRevisionCallable() { + return deleteSkillRevisionCallable; + } + + @Override + public OperationCallable + deleteSkillRevisionOperationCallable() { + return deleteSkillRevisionOperationCallable; + } + + @Override + public UnaryCallable + listSkillRevisionsCallable() { + return listSkillRevisionsCallable; + } + + @Override + public UnaryCallable + listSkillRevisionsPagedCallable() { + return listSkillRevisionsPagedCallable; + } + + @Override + public UnaryCallable getPublisherCallable() { + return getPublisherCallable; + } + + @Override + public UnaryCallable listPublishersCallable() { + return listPublishersCallable; + } + + @Override + public UnaryCallable + listPublishersPagedCallable() { + return listPublishersPagedCallable; + } + + @Override + public UnaryCallable getAiApplicationCallable() { + return getAiApplicationCallable; + } + + @Override + public UnaryCallable + listAiApplicationsCallable() { + return listAiApplicationsCallable; + } + + @Override + public UnaryCallable + listAiApplicationsPagedCallable() { + return listAiApplicationsPagedCallable; + } + + @Override + public UnaryCallable getAiApplicationAgentCallable() { + return getAiApplicationAgentCallable; + } + + @Override + public UnaryCallable + listAiApplicationAgentsCallable() { + return listAiApplicationAgentsCallable; + } + + @Override + public UnaryCallable + listAiApplicationAgentsPagedCallable() { + return listAiApplicationAgentsPagedCallable; + } + + @Override + public UnaryCallable + getAiApplicationMcpServerCallable() { + return getAiApplicationMcpServerCallable; + } + + @Override + public UnaryCallable + listAiApplicationMcpServersCallable() { + return listAiApplicationMcpServersCallable; + } + + @Override + public UnaryCallable + listAiApplicationMcpServersPagedCallable() { + return listAiApplicationMcpServersPagedCallable; + } + + @Override + public UnaryCallable getFindingCallable() { + return getFindingCallable; + } + + @Override + public UnaryCallable listFindingsCallable() { + return listFindingsCallable; + } + + @Override + public UnaryCallable listFindingsPagedCallable() { + return listFindingsPagedCallable; + } + + @Override + public UnaryCallable + getAiApplicationEndpointCallable() { + return getAiApplicationEndpointCallable; + } + + @Override + public UnaryCallable + listAiApplicationEndpointsCallable() { + return listAiApplicationEndpointsCallable; + } + + @Override + public UnaryCallable + listAiApplicationEndpointsPagedCallable() { + return listAiApplicationEndpointsPagedCallable; + } + + @Override + public UnaryCallable + getSkillEncryptionSpecCallable() { + return getSkillEncryptionSpecCallable; + } + + @Override + public UnaryCallable + updateSkillEncryptionSpecCallable() { + return updateSkillEncryptionSpecCallable; + } + + @Override + public OperationCallable + updateSkillEncryptionSpecOperationCallable() { + return updateSkillEncryptionSpecOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryStub.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryStub.java index 7cbf79bff575..cad6d0e36ae4 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryStub.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryStub.java @@ -18,13 +18,22 @@ import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListFindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListPublishersPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillRevisionsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchSkillsPagedResponse; import com.google.api.HttpRule; import com.google.api.core.InternalApi; @@ -43,38 +52,77 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AiApplication; import com.google.cloud.agentregistry.v1.Binding; import com.google.cloud.agentregistry.v1.CreateBindingRequest; import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.CreateSkillRequest; +import com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest; import com.google.cloud.agentregistry.v1.DeleteBindingRequest; import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.DeleteSkillRequest; +import com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest; import com.google.cloud.agentregistry.v1.Endpoint; import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.Finding; import com.google.cloud.agentregistry.v1.GetAgentRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetAiApplicationRequest; import com.google.cloud.agentregistry.v1.GetBindingRequest; import com.google.cloud.agentregistry.v1.GetEndpointRequest; +import com.google.cloud.agentregistry.v1.GetFindingRequest; import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetPublisherRequest; import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.GetSkillRequest; +import com.google.cloud.agentregistry.v1.GetSkillRevisionRequest; import com.google.cloud.agentregistry.v1.ListAgentsRequest; import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListAiApplicationsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationsResponse; import com.google.cloud.agentregistry.v1.ListBindingsRequest; import com.google.cloud.agentregistry.v1.ListBindingsResponse; import com.google.cloud.agentregistry.v1.ListEndpointsRequest; import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListFindingsRequest; +import com.google.cloud.agentregistry.v1.ListFindingsResponse; import com.google.cloud.agentregistry.v1.ListMcpServersRequest; import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListPublishersRequest; +import com.google.cloud.agentregistry.v1.ListPublishersResponse; import com.google.cloud.agentregistry.v1.ListServicesRequest; import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse; +import com.google.cloud.agentregistry.v1.ListSkillsRequest; +import com.google.cloud.agentregistry.v1.ListSkillsResponse; import com.google.cloud.agentregistry.v1.McpServer; import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.Publisher; import com.google.cloud.agentregistry.v1.SearchAgentsRequest; import com.google.cloud.agentregistry.v1.SearchAgentsResponse; import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.cloud.agentregistry.v1.SearchSkillsRequest; +import com.google.cloud.agentregistry.v1.SearchSkillsResponse; import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.SkillRevision; import com.google.cloud.agentregistry.v1.UpdateBindingRequest; import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.UpdateSkillRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -104,8 +152,11 @@ public class HttpJsonAgentRegistryStub extends AgentRegistryStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(Empty.getDescriptor()) + .add(SkillEncryptionSpec.getDescriptor()) .add(OperationMetadata.getDescriptor()) .add(Binding.getDescriptor()) + .add(SkillRevision.getDescriptor()) + .add(Skill.getDescriptor()) .add(Service.getDescriptor()) .build(); @@ -827,6 +878,908 @@ public class HttpJsonAgentRegistryStub extends AgentRegistryStub { .build()) .build(); + private static final ApiMethodDescriptor + createSkillMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/CreateSkill") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/skills", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "skillId", request.getSkillId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("skill", request.getSkill(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateSkillRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getSkillMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetSkill") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/skills/*}", + 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(Skill.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSkillMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/UpdateSkill") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{skill.name=projects/*/locations/*/skills/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "skill.name", request.getSkill().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("skill", request.getSkill(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateSkillRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteSkillMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/DeleteSkill") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/skills/*}", + 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, "force", request.getForce()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteSkillRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listSkillsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListSkills") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/skills", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListSkillsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchSkillsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/SearchSkills") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/skills:search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1/{parent=projects/*/locations/*}/skills:search") + .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(SearchSkillsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSkillRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/CreateSkillRevision") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/skills/*}/revisions", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "skillRevisionId", request.getSkillRevisionId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("skillRevision", request.getSkillRevision(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateSkillRevisionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getSkillRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetSkillRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/skills/*/revisions/*}", + 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(SkillRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSkillRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/DeleteSkillRevision") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/skills/*/revisions/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteSkillRevisionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listSkillRevisionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListSkillRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/skills/*}/revisions", + 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, "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(ListSkillRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getPublisherMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetPublisher") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/publishers/*}", + 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(Publisher.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listPublishersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListPublishers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/publishers", + 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, "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(ListPublishersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAiApplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetAiApplication") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aiApplications/*}", + 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(AiApplication.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAiApplicationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListAiApplications") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/aiApplications", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListAiApplicationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAiApplicationAgentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/GetAiApplicationAgent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aiApplications/*/agents/*}", + 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(Agent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAiApplicationAgentsRequest, ListAiApplicationAgentsResponse> + listAiApplicationAgentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/ListAiApplicationAgents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/aiApplications/*}/agents", + 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, "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(ListAiApplicationAgentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAiApplicationMcpServerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/GetAiApplicationMcpServer") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aiApplications/*/mcpServers/*}", + 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(McpServer.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse> + listAiApplicationMcpServersMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/ListAiApplicationMcpServers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/aiApplications/*}/mcpServers", + 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, "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(ListAiApplicationMcpServersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getFindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetFinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/findings/*}", + 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(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listFindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListFindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/findings", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListFindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAiApplicationEndpointMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/GetAiApplicationEndpoint") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aiApplications/*/endpoints/*}", + 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(Endpoint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsResponse> + listAiApplicationEndpointsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/ListAiApplicationEndpoints") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/aiApplications/*}/endpoints", + 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, "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(ListAiApplicationEndpointsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSkillEncryptionSpecMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/GetSkillEncryptionSpec") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/skillEncryptionSpec}", + 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(SkillEncryptionSpec.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSkillEncryptionSpecMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/UpdateSkillEncryptionSpec") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{skillEncryptionSpec.name=projects/*/locations/*/skillEncryptionSpec}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "skillEncryptionSpec.name", + request.getSkillEncryptionSpec().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "skillEncryptionSpec", + request.getSkillEncryptionSpec(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateSkillEncryptionSpecRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -943,6 +1896,72 @@ public class HttpJsonAgentRegistryStub extends AgentRegistryStub { fetchAvailableBindingsCallable; private final UnaryCallable fetchAvailableBindingsPagedCallable; + private final UnaryCallable createSkillCallable; + private final OperationCallable + createSkillOperationCallable; + private final UnaryCallable getSkillCallable; + private final UnaryCallable updateSkillCallable; + private final OperationCallable + updateSkillOperationCallable; + private final UnaryCallable deleteSkillCallable; + private final OperationCallable + deleteSkillOperationCallable; + private final UnaryCallable listSkillsCallable; + private final UnaryCallable listSkillsPagedCallable; + private final UnaryCallable searchSkillsCallable; + private final UnaryCallable + searchSkillsPagedCallable; + private final UnaryCallable createSkillRevisionCallable; + private final OperationCallable + createSkillRevisionOperationCallable; + private final UnaryCallable getSkillRevisionCallable; + private final UnaryCallable deleteSkillRevisionCallable; + private final OperationCallable + deleteSkillRevisionOperationCallable; + private final UnaryCallable + listSkillRevisionsCallable; + private final UnaryCallable + listSkillRevisionsPagedCallable; + private final UnaryCallable getPublisherCallable; + private final UnaryCallable listPublishersCallable; + private final UnaryCallable + listPublishersPagedCallable; + private final UnaryCallable getAiApplicationCallable; + private final UnaryCallable + listAiApplicationsCallable; + private final UnaryCallable + listAiApplicationsPagedCallable; + private final UnaryCallable getAiApplicationAgentCallable; + private final UnaryCallable + listAiApplicationAgentsCallable; + private final UnaryCallable + listAiApplicationAgentsPagedCallable; + private final UnaryCallable + getAiApplicationMcpServerCallable; + private final UnaryCallable< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersResponse> + listAiApplicationMcpServersCallable; + private final UnaryCallable< + ListAiApplicationMcpServersRequest, ListAiApplicationMcpServersPagedResponse> + listAiApplicationMcpServersPagedCallable; + private final UnaryCallable getFindingCallable; + private final UnaryCallable listFindingsCallable; + private final UnaryCallable + listFindingsPagedCallable; + private final UnaryCallable + getAiApplicationEndpointCallable; + private final UnaryCallable + listAiApplicationEndpointsCallable; + private final UnaryCallable< + ListAiApplicationEndpointsRequest, ListAiApplicationEndpointsPagedResponse> + listAiApplicationEndpointsPagedCallable; + private final UnaryCallable + getSkillEncryptionSpecCallable; + private final UnaryCallable + updateSkillEncryptionSpecCallable; + private final OperationCallable< + UpdateSkillEncryptionSpecRequest, SkillEncryptionSpec, OperationMetadata> + updateSkillEncryptionSpecOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1200,9 +2219,297 @@ protected HttpJsonAgentRegistryStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); - HttpJsonCallSettings createBindingTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createBindingMethodDescriptor) + HttpJsonCallSettings createBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("binding.name", String.valueOf(request.getBinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + fetchAvailableBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(fetchAvailableBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings createSkillTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSkillMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getSkillTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSkillMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings updateSkillTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSkillMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("skill.name", String.valueOf(request.getSkill().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteSkillTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSkillMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings listSkillsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSkillsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings searchSkillsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchSkillsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + createSkillRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSkillRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getSkillRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSkillRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + deleteSkillRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSkillRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listSkillRevisionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSkillRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getPublisherTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPublisherMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listPublishersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listPublishersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAiApplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAiApplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAiApplicationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAiApplicationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getAiApplicationAgentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAiApplicationAgentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAiApplicationAgentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAiApplicationAgentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getAiApplicationMcpServerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAiApplicationMcpServerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAiApplicationMcpServersTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listAiApplicationMcpServersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getFindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings listFindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listFindingsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1212,34 +2519,24 @@ protected HttpJsonAgentRegistryStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); - HttpJsonCallSettings updateBindingTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateBindingMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("binding.name", String.valueOf(request.getBinding().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteBindingTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteBindingMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - fetchAvailableBindingsTransportSettings = + HttpJsonCallSettings + getAiApplicationEndpointTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAiApplicationEndpointMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAiApplicationEndpointsTransportSettings = HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(fetchAvailableBindingsMethodDescriptor) + .newBuilder() + .setMethodDescriptor(listAiApplicationEndpointsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -1249,6 +2546,33 @@ protected HttpJsonAgentRegistryStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + getSkillEncryptionSpecTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSkillEncryptionSpecMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + updateSkillEncryptionSpecTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSkillEncryptionSpecMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "skill_encryption_spec.name", + String.valueOf(request.getSkillEncryptionSpec().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1394,6 +2718,175 @@ protected HttpJsonAgentRegistryStub( fetchAvailableBindingsTransportSettings, settings.fetchAvailableBindingsSettings(), clientContext); + this.createSkillCallable = + callableFactory.createUnaryCallable( + createSkillTransportSettings, settings.createSkillSettings(), clientContext); + this.createSkillOperationCallable = + callableFactory.createOperationCallable( + createSkillTransportSettings, + settings.createSkillOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getSkillCallable = + callableFactory.createUnaryCallable( + getSkillTransportSettings, settings.getSkillSettings(), clientContext); + this.updateSkillCallable = + callableFactory.createUnaryCallable( + updateSkillTransportSettings, settings.updateSkillSettings(), clientContext); + this.updateSkillOperationCallable = + callableFactory.createOperationCallable( + updateSkillTransportSettings, + settings.updateSkillOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteSkillCallable = + callableFactory.createUnaryCallable( + deleteSkillTransportSettings, settings.deleteSkillSettings(), clientContext); + this.deleteSkillOperationCallable = + callableFactory.createOperationCallable( + deleteSkillTransportSettings, + settings.deleteSkillOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listSkillsCallable = + callableFactory.createUnaryCallable( + listSkillsTransportSettings, settings.listSkillsSettings(), clientContext); + this.listSkillsPagedCallable = + callableFactory.createPagedCallable( + listSkillsTransportSettings, settings.listSkillsSettings(), clientContext); + this.searchSkillsCallable = + callableFactory.createUnaryCallable( + searchSkillsTransportSettings, settings.searchSkillsSettings(), clientContext); + this.searchSkillsPagedCallable = + callableFactory.createPagedCallable( + searchSkillsTransportSettings, settings.searchSkillsSettings(), clientContext); + this.createSkillRevisionCallable = + callableFactory.createUnaryCallable( + createSkillRevisionTransportSettings, + settings.createSkillRevisionSettings(), + clientContext); + this.createSkillRevisionOperationCallable = + callableFactory.createOperationCallable( + createSkillRevisionTransportSettings, + settings.createSkillRevisionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getSkillRevisionCallable = + callableFactory.createUnaryCallable( + getSkillRevisionTransportSettings, settings.getSkillRevisionSettings(), clientContext); + this.deleteSkillRevisionCallable = + callableFactory.createUnaryCallable( + deleteSkillRevisionTransportSettings, + settings.deleteSkillRevisionSettings(), + clientContext); + this.deleteSkillRevisionOperationCallable = + callableFactory.createOperationCallable( + deleteSkillRevisionTransportSettings, + settings.deleteSkillRevisionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listSkillRevisionsCallable = + callableFactory.createUnaryCallable( + listSkillRevisionsTransportSettings, + settings.listSkillRevisionsSettings(), + clientContext); + this.listSkillRevisionsPagedCallable = + callableFactory.createPagedCallable( + listSkillRevisionsTransportSettings, + settings.listSkillRevisionsSettings(), + clientContext); + this.getPublisherCallable = + callableFactory.createUnaryCallable( + getPublisherTransportSettings, settings.getPublisherSettings(), clientContext); + this.listPublishersCallable = + callableFactory.createUnaryCallable( + listPublishersTransportSettings, settings.listPublishersSettings(), clientContext); + this.listPublishersPagedCallable = + callableFactory.createPagedCallable( + listPublishersTransportSettings, settings.listPublishersSettings(), clientContext); + this.getAiApplicationCallable = + callableFactory.createUnaryCallable( + getAiApplicationTransportSettings, settings.getAiApplicationSettings(), clientContext); + this.listAiApplicationsCallable = + callableFactory.createUnaryCallable( + listAiApplicationsTransportSettings, + settings.listAiApplicationsSettings(), + clientContext); + this.listAiApplicationsPagedCallable = + callableFactory.createPagedCallable( + listAiApplicationsTransportSettings, + settings.listAiApplicationsSettings(), + clientContext); + this.getAiApplicationAgentCallable = + callableFactory.createUnaryCallable( + getAiApplicationAgentTransportSettings, + settings.getAiApplicationAgentSettings(), + clientContext); + this.listAiApplicationAgentsCallable = + callableFactory.createUnaryCallable( + listAiApplicationAgentsTransportSettings, + settings.listAiApplicationAgentsSettings(), + clientContext); + this.listAiApplicationAgentsPagedCallable = + callableFactory.createPagedCallable( + listAiApplicationAgentsTransportSettings, + settings.listAiApplicationAgentsSettings(), + clientContext); + this.getAiApplicationMcpServerCallable = + callableFactory.createUnaryCallable( + getAiApplicationMcpServerTransportSettings, + settings.getAiApplicationMcpServerSettings(), + clientContext); + this.listAiApplicationMcpServersCallable = + callableFactory.createUnaryCallable( + listAiApplicationMcpServersTransportSettings, + settings.listAiApplicationMcpServersSettings(), + clientContext); + this.listAiApplicationMcpServersPagedCallable = + callableFactory.createPagedCallable( + listAiApplicationMcpServersTransportSettings, + settings.listAiApplicationMcpServersSettings(), + clientContext); + this.getFindingCallable = + callableFactory.createUnaryCallable( + getFindingTransportSettings, settings.getFindingSettings(), clientContext); + this.listFindingsCallable = + callableFactory.createUnaryCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listFindingsPagedCallable = + callableFactory.createPagedCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.getAiApplicationEndpointCallable = + callableFactory.createUnaryCallable( + getAiApplicationEndpointTransportSettings, + settings.getAiApplicationEndpointSettings(), + clientContext); + this.listAiApplicationEndpointsCallable = + callableFactory.createUnaryCallable( + listAiApplicationEndpointsTransportSettings, + settings.listAiApplicationEndpointsSettings(), + clientContext); + this.listAiApplicationEndpointsPagedCallable = + callableFactory.createPagedCallable( + listAiApplicationEndpointsTransportSettings, + settings.listAiApplicationEndpointsSettings(), + clientContext); + this.getSkillEncryptionSpecCallable = + callableFactory.createUnaryCallable( + getSkillEncryptionSpecTransportSettings, + settings.getSkillEncryptionSpecSettings(), + clientContext); + this.updateSkillEncryptionSpecCallable = + callableFactory.createUnaryCallable( + updateSkillEncryptionSpecTransportSettings, + settings.updateSkillEncryptionSpecSettings(), + clientContext); + this.updateSkillEncryptionSpecOperationCallable = + callableFactory.createOperationCallable( + updateSkillEncryptionSpecTransportSettings, + settings.updateSkillEncryptionSpecOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1430,6 +2923,30 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateBindingMethodDescriptor); methodDescriptors.add(deleteBindingMethodDescriptor); methodDescriptors.add(fetchAvailableBindingsMethodDescriptor); + methodDescriptors.add(createSkillMethodDescriptor); + methodDescriptors.add(getSkillMethodDescriptor); + methodDescriptors.add(updateSkillMethodDescriptor); + methodDescriptors.add(deleteSkillMethodDescriptor); + methodDescriptors.add(listSkillsMethodDescriptor); + methodDescriptors.add(searchSkillsMethodDescriptor); + methodDescriptors.add(createSkillRevisionMethodDescriptor); + methodDescriptors.add(getSkillRevisionMethodDescriptor); + methodDescriptors.add(deleteSkillRevisionMethodDescriptor); + methodDescriptors.add(listSkillRevisionsMethodDescriptor); + methodDescriptors.add(getPublisherMethodDescriptor); + methodDescriptors.add(listPublishersMethodDescriptor); + methodDescriptors.add(getAiApplicationMethodDescriptor); + methodDescriptors.add(listAiApplicationsMethodDescriptor); + methodDescriptors.add(getAiApplicationAgentMethodDescriptor); + methodDescriptors.add(listAiApplicationAgentsMethodDescriptor); + methodDescriptors.add(getAiApplicationMcpServerMethodDescriptor); + methodDescriptors.add(listAiApplicationMcpServersMethodDescriptor); + methodDescriptors.add(getFindingMethodDescriptor); + methodDescriptors.add(listFindingsMethodDescriptor); + methodDescriptors.add(getAiApplicationEndpointMethodDescriptor); + methodDescriptors.add(listAiApplicationEndpointsMethodDescriptor); + methodDescriptors.add(getSkillEncryptionSpecMethodDescriptor); + methodDescriptors.add(updateSkillEncryptionSpecMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -1616,6 +3133,222 @@ public UnaryCallable deleteBindingCallable() { return fetchAvailableBindingsPagedCallable; } + @Override + public UnaryCallable createSkillCallable() { + return createSkillCallable; + } + + @Override + public OperationCallable + createSkillOperationCallable() { + return createSkillOperationCallable; + } + + @Override + public UnaryCallable getSkillCallable() { + return getSkillCallable; + } + + @Override + public UnaryCallable updateSkillCallable() { + return updateSkillCallable; + } + + @Override + public OperationCallable + updateSkillOperationCallable() { + return updateSkillOperationCallable; + } + + @Override + public UnaryCallable deleteSkillCallable() { + return deleteSkillCallable; + } + + @Override + public OperationCallable + deleteSkillOperationCallable() { + return deleteSkillOperationCallable; + } + + @Override + public UnaryCallable listSkillsCallable() { + return listSkillsCallable; + } + + @Override + public UnaryCallable listSkillsPagedCallable() { + return listSkillsPagedCallable; + } + + @Override + public UnaryCallable searchSkillsCallable() { + return searchSkillsCallable; + } + + @Override + public UnaryCallable searchSkillsPagedCallable() { + return searchSkillsPagedCallable; + } + + @Override + public UnaryCallable createSkillRevisionCallable() { + return createSkillRevisionCallable; + } + + @Override + public OperationCallable + createSkillRevisionOperationCallable() { + return createSkillRevisionOperationCallable; + } + + @Override + public UnaryCallable getSkillRevisionCallable() { + return getSkillRevisionCallable; + } + + @Override + public UnaryCallable deleteSkillRevisionCallable() { + return deleteSkillRevisionCallable; + } + + @Override + public OperationCallable + deleteSkillRevisionOperationCallable() { + return deleteSkillRevisionOperationCallable; + } + + @Override + public UnaryCallable + listSkillRevisionsCallable() { + return listSkillRevisionsCallable; + } + + @Override + public UnaryCallable + listSkillRevisionsPagedCallable() { + return listSkillRevisionsPagedCallable; + } + + @Override + public UnaryCallable getPublisherCallable() { + return getPublisherCallable; + } + + @Override + public UnaryCallable listPublishersCallable() { + return listPublishersCallable; + } + + @Override + public UnaryCallable + listPublishersPagedCallable() { + return listPublishersPagedCallable; + } + + @Override + public UnaryCallable getAiApplicationCallable() { + return getAiApplicationCallable; + } + + @Override + public UnaryCallable + listAiApplicationsCallable() { + return listAiApplicationsCallable; + } + + @Override + public UnaryCallable + listAiApplicationsPagedCallable() { + return listAiApplicationsPagedCallable; + } + + @Override + public UnaryCallable getAiApplicationAgentCallable() { + return getAiApplicationAgentCallable; + } + + @Override + public UnaryCallable + listAiApplicationAgentsCallable() { + return listAiApplicationAgentsCallable; + } + + @Override + public UnaryCallable + listAiApplicationAgentsPagedCallable() { + return listAiApplicationAgentsPagedCallable; + } + + @Override + public UnaryCallable + getAiApplicationMcpServerCallable() { + return getAiApplicationMcpServerCallable; + } + + @Override + public UnaryCallable + listAiApplicationMcpServersCallable() { + return listAiApplicationMcpServersCallable; + } + + @Override + public UnaryCallable + listAiApplicationMcpServersPagedCallable() { + return listAiApplicationMcpServersPagedCallable; + } + + @Override + public UnaryCallable getFindingCallable() { + return getFindingCallable; + } + + @Override + public UnaryCallable listFindingsCallable() { + return listFindingsCallable; + } + + @Override + public UnaryCallable listFindingsPagedCallable() { + return listFindingsPagedCallable; + } + + @Override + public UnaryCallable + getAiApplicationEndpointCallable() { + return getAiApplicationEndpointCallable; + } + + @Override + public UnaryCallable + listAiApplicationEndpointsCallable() { + return listAiApplicationEndpointsCallable; + } + + @Override + public UnaryCallable + listAiApplicationEndpointsPagedCallable() { + return listAiApplicationEndpointsPagedCallable; + } + + @Override + public UnaryCallable + getSkillEncryptionSpecCallable() { + return getSkillEncryptionSpecCallable; + } + + @Override + public UnaryCallable + updateSkillEncryptionSpecCallable() { + return updateSkillEncryptionSpecCallable; + } + + @Override + public OperationCallable + updateSkillEncryptionSpecOperationCallable() { + return updateSkillEncryptionSpecOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/resources/META-INF/native-image/com.google.cloud.agentregistry.v1/reflect-config.json b/java-agentregistry/google-cloud-agentregistry/src/main/resources/META-INF/native-image/com.google.cloud.agentregistry.v1/reflect-config.json index 56a42f75c994..49f67b397dc7 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/resources/META-INF/native-image/com.google.cloud.agentregistry.v1/reflect-config.json +++ b/java-agentregistry/google-cloud-agentregistry/src/main/resources/META-INF/native-image/com.google.cloud.agentregistry.v1/reflect-config.json @@ -611,6 +611,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.agentregistry.v1.AiApplication", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.AiApplication$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.AiApplication$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ArchiveUploadSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ArchiveUploadSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.agentregistry.v1.Binding", "queryAllDeclaredConstructors": true, @@ -719,6 +764,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.agentregistry.v1.CreateSkillRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.CreateSkillRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.agentregistry.v1.DeleteBindingRequest", "queryAllDeclaredConstructors": true, @@ -755,6 +836,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.agentregistry.v1.DeleteSkillRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.DeleteSkillRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.agentregistry.v1.Endpoint", "queryAllDeclaredConstructors": true, @@ -810,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetAgentRequest", + "name": "com.google.cloud.agentregistry.v1.Finding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetAgentRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.Finding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetBindingRequest", + "name": "com.google.cloud.agentregistry.v1.Finding$File", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetBindingRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.Finding$File$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetEndpointRequest", + "name": "com.google.cloud.agentregistry.v1.Finding$FindingClass", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetEndpointRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.Frontmatter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetMcpServerRequest", + "name": "com.google.cloud.agentregistry.v1.Frontmatter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetMcpServerRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.GcsSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetServiceRequest", + "name": "com.google.cloud.agentregistry.v1.GcsSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.GetServiceRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.GetAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Interface", + "name": "com.google.cloud.agentregistry.v1.GetAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Interface$Builder", + "name": "com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Interface$ProtocolBinding", + "name": "com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListAgentsRequest", + "name": "com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListAgentsRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListAgentsResponse", + "name": "com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListAgentsResponse$Builder", + "name": "com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListBindingsRequest", + "name": "com.google.cloud.agentregistry.v1.GetAiApplicationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListBindingsRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.GetAiApplicationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListBindingsResponse", + "name": "com.google.cloud.agentregistry.v1.GetBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListBindingsResponse$Builder", + "name": "com.google.cloud.agentregistry.v1.GetBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListEndpointsRequest", + "name": "com.google.cloud.agentregistry.v1.GetEndpointRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListEndpointsRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.GetEndpointRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListEndpointsResponse", + "name": "com.google.cloud.agentregistry.v1.GetFindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListEndpointsResponse$Builder", + "name": "com.google.cloud.agentregistry.v1.GetFindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListMcpServersRequest", + "name": "com.google.cloud.agentregistry.v1.GetMcpServerRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListMcpServersRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.GetMcpServerRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListMcpServersResponse", + "name": "com.google.cloud.agentregistry.v1.GetPublisherRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListMcpServersResponse$Builder", + "name": "com.google.cloud.agentregistry.v1.GetPublisherRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListServicesRequest", + "name": "com.google.cloud.agentregistry.v1.GetServiceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListServicesRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.GetServiceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListServicesResponse", + "name": "com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.ListServicesResponse$Builder", + "name": "com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.McpServer", + "name": "com.google.cloud.agentregistry.v1.GetSkillRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.McpServer$Builder", + "name": "com.google.cloud.agentregistry.v1.GetSkillRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.McpServer$Tool", + "name": "com.google.cloud.agentregistry.v1.GetSkillRevisionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Annotations", + "name": "com.google.cloud.agentregistry.v1.GetSkillRevisionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Annotations$Builder", + "name": "com.google.cloud.agentregistry.v1.Interface", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Builder", + "name": "com.google.cloud.agentregistry.v1.Interface$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.OperationMetadata", + "name": "com.google.cloud.agentregistry.v1.Interface$ProtocolBinding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.OperationMetadata$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAgentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.SearchAgentsRequest", + "name": "com.google.cloud.agentregistry.v1.ListAgentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.SearchAgentsRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAgentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.SearchAgentsResponse", + "name": "com.google.cloud.agentregistry.v1.ListAgentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.SearchAgentsResponse$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.SearchMcpServersRequest", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.SearchMcpServersRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.SearchMcpServersResponse", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.SearchMcpServersResponse$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec$Type", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec$Type", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec$Builder", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec$Type", + "name": "com.google.cloud.agentregistry.v1.ListAiApplicationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.UpdateBindingRequest", + "name": "com.google.cloud.agentregistry.v1.ListBindingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.UpdateBindingRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.ListBindingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.UpdateServiceRequest", + "name": "com.google.cloud.agentregistry.v1.ListBindingsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1494,1078 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.agentregistry.v1.UpdateServiceRequest$Builder", + "name": "com.google.cloud.agentregistry.v1.ListBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListEndpointsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListEndpointsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListEndpointsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListEndpointsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListFindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListFindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListFindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListFindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListMcpServersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListMcpServersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListMcpServersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListMcpServersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListPublishersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListPublishersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListPublishersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListPublishersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListServicesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListServicesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListServicesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListServicesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListSkillsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListSkillsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListSkillsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListSkillsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Tool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Annotations", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Annotations$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Publisher", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Publisher$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Publisher$PublisherTier", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ScanningConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ScanningConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ScanningConfig$Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchAgentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchAgentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchAgentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchAgentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchMcpServersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchMcpServersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchMcpServersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchMcpServersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchSkillsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchSkillsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchSkillsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchSkillsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Severity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Skill", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Skill$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Skill$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Skill$TargetState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Skill$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SkillEncryptionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SkillEncryptionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SkillRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SkillRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SkillRevision$ScanResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SkillRevision$ScanResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SkillRevision$ScanResult$ScanState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SkillRevision$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateSkillRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateSkillRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Application", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Application$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Application$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationType$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Attributes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Attributes$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ContactInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ContactInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Criticality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Criticality$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Criticality$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Environment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Environment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Environment$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ExtendedMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ExtendedMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.FunctionalType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.FunctionalType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.FunctionalType$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Identity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Identity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.RegistrationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.RegistrationType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.RegistrationType$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Scope$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Scope$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientHttpJsonTest.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientHttpJsonTest.java index af744bb879bc..b517b029431f 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientHttpJsonTest.java +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientHttpJsonTest.java @@ -18,13 +18,22 @@ import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListFindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListPublishersPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillRevisionsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchSkillsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -36,6 +45,8 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.agentregistry.v1.stub.HttpJsonAgentRegistryStub; +import com.google.cloud.apphub.v1.ApplicationProperties; +import com.google.cloud.apphub.v1.Attributes; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -300,7 +311,9 @@ public void searchAgentsExceptionTest2() throws Exception { public void getAgentTest() throws Exception { Agent expectedResponse = Agent.newBuilder() - .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setName( + AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]") + .toString()) .setAgentId("agentId-1060987136") .setLocation("location1901043637") .setDisplayName("displayName1714148973") @@ -316,7 +329,7 @@ public void getAgentTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]"); Agent actualResponse = client.getAgent(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -344,7 +357,7 @@ public void getAgentExceptionTest() throws Exception { mockService.addException(exception); try { - AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]"); client.getAgent(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -356,7 +369,9 @@ public void getAgentExceptionTest() throws Exception { public void getAgentTest2() throws Exception { Agent expectedResponse = Agent.newBuilder() - .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setName( + AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]") + .toString()) .setAgentId("agentId-1060987136") .setLocation("location1901043637") .setDisplayName("displayName1714148973") @@ -512,7 +527,9 @@ public void listEndpointsExceptionTest2() throws Exception { public void getEndpointTest() throws Exception { Endpoint expectedResponse = Endpoint.newBuilder() - .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setName( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) .setEndpointId("endpointId-1837754992") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -523,7 +540,8 @@ public void getEndpointTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + EndpointName name = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); Endpoint actualResponse = client.getEndpoint(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -551,7 +569,8 @@ public void getEndpointExceptionTest() throws Exception { mockService.addException(exception); try { - EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + EndpointName name = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); client.getEndpoint(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -563,7 +582,9 @@ public void getEndpointExceptionTest() throws Exception { public void getEndpointTest2() throws Exception { Endpoint expectedResponse = Endpoint.newBuilder() - .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setName( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) .setEndpointId("endpointId-1837754992") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -814,7 +835,10 @@ public void searchMcpServersExceptionTest2() throws Exception { public void getMcpServerTest() throws Exception { McpServer expectedResponse = McpServer.newBuilder() - .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setName( + McpServerName.ofProjectLocationMcpServerName( + "[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + .toString()) .setMcpServerId("mcpServerId298140536") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -826,7 +850,8 @@ public void getMcpServerTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + McpServerName name = + McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); McpServer actualResponse = client.getMcpServer(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -854,7 +879,8 @@ public void getMcpServerExceptionTest() throws Exception { mockService.addException(exception); try { - McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + McpServerName name = + McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); client.getMcpServer(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -866,7 +892,10 @@ public void getMcpServerExceptionTest() throws Exception { public void getMcpServerTest2() throws Exception { McpServer expectedResponse = McpServer.newBuilder() - .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setName( + McpServerName.ofProjectLocationMcpServerName( + "[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + .toString()) .setMcpServerId("mcpServerId298140536") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -1980,6 +2009,2449 @@ public void fetchAvailableBindingsExceptionTest2() throws Exception { } } + @Test + public void createSkillTest() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + + Skill actualResponse = client.createSkillAsync(parent, skill, skillId).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 createSkillExceptionTest() 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]"); + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + client.createSkillAsync(parent, skill, skillId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createSkillTest2() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + + Skill actualResponse = client.createSkillAsync(parent, skill, skillId).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 createSkillExceptionTest2() 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"; + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + client.createSkillAsync(parent, skill, skillId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getSkillTest() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + + Skill actualResponse = client.getSkill(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 getSkillExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + client.getSkill(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkillTest2() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9310/locations/location-9310/skills/skill-9310"; + + Skill actualResponse = client.getSkill(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 getSkillExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9310/locations/location-9310/skills/skill-9310"; + client.getSkill(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSkillTest() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Skill skill = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Skill actualResponse = client.updateSkillAsync(skill, updateMask).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 updateSkillExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Skill skill = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]") + .toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSkillAsync(skill, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteSkillTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + + client.deleteSkillAsync(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 deleteSkillExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + client.deleteSkillAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteSkillTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9310/locations/location-9310/skills/skill-9310"; + + client.deleteSkillAsync(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 deleteSkillExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9310/locations/location-9310/skills/skill-9310"; + client.deleteSkillAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listSkillsTest() throws Exception { + Skill responsesElement = Skill.newBuilder().build(); + ListSkillsResponse expectedResponse = + ListSkillsResponse.newBuilder() + .setNextPageToken("") + .addAllSkills(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSkillsPagedResponse pagedListResponse = client.listSkills(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillsList().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 listSkillsExceptionTest() 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.listSkills(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkillsTest2() throws Exception { + Skill responsesElement = Skill.newBuilder().build(); + ListSkillsResponse expectedResponse = + ListSkillsResponse.newBuilder() + .setNextPageToken("") + .addAllSkills(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListSkillsPagedResponse pagedListResponse = client.listSkills(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillsList().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 listSkillsExceptionTest2() 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.listSkills(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchSkillsTest() throws Exception { + Skill responsesElement = Skill.newBuilder().build(); + SearchSkillsResponse expectedResponse = + SearchSkillsResponse.newBuilder() + .setNextPageToken("") + .addAllSkills(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SearchSkillsRequest request = + SearchSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchType(SearchType.forNumber(0)) + .setSearchString("searchString120312793") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + SearchSkillsPagedResponse pagedListResponse = client.searchSkills(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillsList().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 searchSkillsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchSkillsRequest request = + SearchSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchType(SearchType.forNumber(0)) + .setSearchString("searchString120312793") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.searchSkills(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSkillRevisionTest() throws Exception { + SkillRevision expectedResponse = + SkillRevision.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setSha256Hash("sha256Hash127958997") + .setFrontmatter(Frontmatter.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setUid("uid115792") + .setScanResult(SkillRevision.ScanResult.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSkillRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + + SkillRevision actualResponse = + client.createSkillRevisionAsync(parent, skillRevision, skillRevisionId).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 createSkillRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + client.createSkillRevisionAsync(parent, skillRevision, skillRevisionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createSkillRevisionTest2() throws Exception { + SkillRevision expectedResponse = + SkillRevision.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setSha256Hash("sha256Hash127958997") + .setFrontmatter(Frontmatter.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setUid("uid115792") + .setScanResult(SkillRevision.ScanResult.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSkillRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-4787/locations/location-4787/skills/skill-4787"; + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + + SkillRevision actualResponse = + client.createSkillRevisionAsync(parent, skillRevision, skillRevisionId).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 createSkillRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-4787/locations/location-4787/skills/skill-4787"; + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + client.createSkillRevisionAsync(parent, skillRevision, skillRevisionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getSkillRevisionTest() throws Exception { + SkillRevision expectedResponse = + SkillRevision.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setSha256Hash("sha256Hash127958997") + .setFrontmatter(Frontmatter.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setUid("uid115792") + .setScanResult(SkillRevision.ScanResult.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + + SkillRevision actualResponse = client.getSkillRevision(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 getSkillRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + client.getSkillRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkillRevisionTest2() throws Exception { + SkillRevision expectedResponse = + SkillRevision.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setSha256Hash("sha256Hash127958997") + .setFrontmatter(Frontmatter.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setUid("uid115792") + .setScanResult(SkillRevision.ScanResult.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9446/locations/location-9446/skills/skill-9446/revisions/revision-9446"; + + SkillRevision actualResponse = client.getSkillRevision(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 getSkillRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9446/locations/location-9446/skills/skill-9446/revisions/revision-9446"; + client.getSkillRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSkillRevisionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSkillRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + + client.deleteSkillRevisionAsync(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 deleteSkillRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + client.deleteSkillRevisionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteSkillRevisionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSkillRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9446/locations/location-9446/skills/skill-9446/revisions/revision-9446"; + + client.deleteSkillRevisionAsync(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 deleteSkillRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9446/locations/location-9446/skills/skill-9446/revisions/revision-9446"; + client.deleteSkillRevisionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listSkillRevisionsTest() throws Exception { + SkillRevision responsesElement = SkillRevision.newBuilder().build(); + ListSkillRevisionsResponse expectedResponse = + ListSkillRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSkillRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + + ListSkillRevisionsPagedResponse pagedListResponse = client.listSkillRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillRevisionsList().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 listSkillRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + client.listSkillRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkillRevisionsTest2() throws Exception { + SkillRevision responsesElement = SkillRevision.newBuilder().build(); + ListSkillRevisionsResponse expectedResponse = + ListSkillRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSkillRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4787/locations/location-4787/skills/skill-4787"; + + ListSkillRevisionsPagedResponse pagedListResponse = client.listSkillRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillRevisionsList().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 listSkillRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-4787/locations/location-4787/skills/skill-4787"; + client.listSkillRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublisherTest() throws Exception { + Publisher expectedResponse = + Publisher.newBuilder() + .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setVerifiedPrefix("verifiedPrefix250185594") + .setDisplayName("displayName1714148973") + .setDocumentationUri("documentationUri-1487620014") + .setSupportUri("supportUri-613906659") + .build(); + mockService.addResponse(expectedResponse); + + PublisherName name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]"); + + Publisher actualResponse = client.getPublisher(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 getPublisherExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PublisherName name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]"); + client.getPublisher(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublisherTest2() throws Exception { + Publisher expectedResponse = + Publisher.newBuilder() + .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setVerifiedPrefix("verifiedPrefix250185594") + .setDisplayName("displayName1714148973") + .setDocumentationUri("documentationUri-1487620014") + .setSupportUri("supportUri-613906659") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6489/locations/location-6489/publishers/publisher-6489"; + + Publisher actualResponse = client.getPublisher(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 getPublisherExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6489/locations/location-6489/publishers/publisher-6489"; + client.getPublisher(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublishersTest() throws Exception { + Publisher responsesElement = Publisher.newBuilder().build(); + ListPublishersResponse expectedResponse = + ListPublishersResponse.newBuilder() + .setNextPageToken("") + .addAllPublishers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPublishersPagedResponse pagedListResponse = client.listPublishers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublishersList().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 listPublishersExceptionTest() 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.listPublishers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublishersTest2() throws Exception { + Publisher responsesElement = Publisher.newBuilder().build(); + ListPublishersResponse expectedResponse = + ListPublishersResponse.newBuilder() + .setNextPageToken("") + .addAllPublishers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPublishersPagedResponse pagedListResponse = client.listPublishers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublishersList().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 listPublishersExceptionTest2() 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.listPublishers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationTest() throws Exception { + AiApplication expectedResponse = + AiApplication.newBuilder() + .setName(AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setAttributes(Attributes.newBuilder().build()) + .setApplicationProperties(ApplicationProperties.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AiApplicationName name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + + AiApplication actualResponse = client.getAiApplication(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 getAiApplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AiApplicationName name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + client.getAiApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationTest2() throws Exception { + AiApplication expectedResponse = + AiApplication.newBuilder() + .setName(AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setAttributes(Attributes.newBuilder().build()) + .setApplicationProperties(ApplicationProperties.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-8741/locations/location-8741/aiApplications/aiApplication-8741"; + + AiApplication actualResponse = client.getAiApplication(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 getAiApplicationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8741/locations/location-8741/aiApplications/aiApplication-8741"; + client.getAiApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationsTest() throws Exception { + AiApplication responsesElement = AiApplication.newBuilder().build(); + ListAiApplicationsResponse expectedResponse = + ListAiApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllAiApplications(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAiApplicationsPagedResponse pagedListResponse = client.listAiApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAiApplicationsList().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 listAiApplicationsExceptionTest() 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.listAiApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationsTest2() throws Exception { + AiApplication responsesElement = AiApplication.newBuilder().build(); + ListAiApplicationsResponse expectedResponse = + ListAiApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllAiApplications(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAiApplicationsPagedResponse pagedListResponse = client.listAiApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAiApplicationsList().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 listAiApplicationsExceptionTest2() 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.listAiApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName( + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]") + .toString()) + .setAgentId("agentId-1060987136") + .setLocation("location1901043637") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersion("version351608024") + .addAllProtocols(new ArrayList()) + .addAllSkills(new ArrayList()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .setCard(Agent.Card.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AgentName name = + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]"); + + Agent actualResponse = client.getAiApplicationAgent(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 getAiApplicationAgentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentName name = + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]"); + client.getAiApplicationAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationAgentTest2() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName( + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]") + .toString()) + .setAgentId("agentId-1060987136") + .setLocation("location1901043637") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersion("version351608024") + .addAllProtocols(new ArrayList()) + .addAllSkills(new ArrayList()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .setCard(Agent.Card.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9267/locations/location-9267/aiApplications/aiApplication-9267/agents/agent-9267"; + + Agent actualResponse = client.getAiApplicationAgent(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 getAiApplicationAgentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9267/locations/location-9267/aiApplications/aiApplication-9267/agents/agent-9267"; + client.getAiApplicationAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationAgentsTest() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAiApplicationAgentsResponse expectedResponse = + ListAiApplicationAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AiApplicationName parent = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + + ListAiApplicationAgentsPagedResponse pagedListResponse = client.listAiApplicationAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().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 listAiApplicationAgentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + client.listAiApplicationAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationAgentsTest2() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAiApplicationAgentsResponse expectedResponse = + ListAiApplicationAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6948/locations/location-6948/aiApplications/aiApplication-6948"; + + ListAiApplicationAgentsPagedResponse pagedListResponse = client.listAiApplicationAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().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 listAiApplicationAgentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6948/locations/location-6948/aiApplications/aiApplication-6948"; + client.listAiApplicationAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationMcpServerTest() throws Exception { + McpServer expectedResponse = + McpServer.newBuilder() + .setName( + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]") + .toString()) + .setMcpServerId("mcpServerId298140536") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .addAllTools(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + McpServerName name = + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]"); + + McpServer actualResponse = client.getAiApplicationMcpServer(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 getAiApplicationMcpServerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + McpServerName name = + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]"); + client.getAiApplicationMcpServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationMcpServerTest2() throws Exception { + McpServer expectedResponse = + McpServer.newBuilder() + .setName( + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]") + .toString()) + .setMcpServerId("mcpServerId298140536") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .addAllTools(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6507/locations/location-6507/aiApplications/aiApplication-6507/mcpServers/mcpServer-6507"; + + McpServer actualResponse = client.getAiApplicationMcpServer(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 getAiApplicationMcpServerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6507/locations/location-6507/aiApplications/aiApplication-6507/mcpServers/mcpServer-6507"; + client.getAiApplicationMcpServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationMcpServersTest() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + ListAiApplicationMcpServersResponse expectedResponse = + ListAiApplicationMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AiApplicationName parent = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + + ListAiApplicationMcpServersPagedResponse pagedListResponse = + client.listAiApplicationMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().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 listAiApplicationMcpServersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + client.listAiApplicationMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationMcpServersTest2() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + ListAiApplicationMcpServersResponse expectedResponse = + ListAiApplicationMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6948/locations/location-6948/aiApplications/aiApplication-6948"; + + ListAiApplicationMcpServersPagedResponse pagedListResponse = + client.listAiApplicationMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().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 listAiApplicationMcpServersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6948/locations/location-6948/aiApplications/aiApplication-6948"; + client.listAiApplicationMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSeverity(Severity.forNumber(0)) + .addAllFiles(new ArrayList()) + .setDetail("detail-1335224239") + .setResource("resource-341064690") + .build(); + mockService.addResponse(expectedResponse); + + FindingName name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]"); + + Finding actualResponse = client.getFinding(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 getFindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingName name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]"); + client.getFinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSeverity(Severity.forNumber(0)) + .addAllFiles(new ArrayList()) + .setDetail("detail-1335224239") + .setResource("resource-341064690") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1658/locations/location-1658/findings/finding-1658"; + + Finding actualResponse = client.getFinding(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 getFindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1658/locations/location-1658/findings/finding-1658"; + client.getFinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsTest() throws Exception { + Finding responsesElement = Finding.newBuilder().build(); + ListFindingsResponse expectedResponse = + ListFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllFindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFindingsPagedResponse pagedListResponse = client.listFindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsList().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 listFindingsExceptionTest() 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.listFindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsTest2() throws Exception { + Finding responsesElement = Finding.newBuilder().build(); + ListFindingsResponse expectedResponse = + ListFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllFindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListFindingsPagedResponse pagedListResponse = client.listFindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsList().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 listFindingsExceptionTest2() 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.listFindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationEndpointTest() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName( + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]") + .toString()) + .setEndpointId("endpointId-1837754992") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + EndpointName name = + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]"); + + Endpoint actualResponse = client.getAiApplicationEndpoint(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 getAiApplicationEndpointExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EndpointName name = + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]"); + client.getAiApplicationEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationEndpointTest2() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName( + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]") + .toString()) + .setEndpointId("endpointId-1837754992") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5947/locations/location-5947/aiApplications/aiApplication-5947/endpoints/endpoint-5947"; + + Endpoint actualResponse = client.getAiApplicationEndpoint(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 getAiApplicationEndpointExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5947/locations/location-5947/aiApplications/aiApplication-5947/endpoints/endpoint-5947"; + client.getAiApplicationEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationEndpointsTest() throws Exception { + Endpoint responsesElement = Endpoint.newBuilder().build(); + ListAiApplicationEndpointsResponse expectedResponse = + ListAiApplicationEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllEndpoints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AiApplicationName parent = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + + ListAiApplicationEndpointsPagedResponse pagedListResponse = + client.listAiApplicationEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEndpointsList().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 listAiApplicationEndpointsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + client.listAiApplicationEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationEndpointsTest2() throws Exception { + Endpoint responsesElement = Endpoint.newBuilder().build(); + ListAiApplicationEndpointsResponse expectedResponse = + ListAiApplicationEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllEndpoints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6948/locations/location-6948/aiApplications/aiApplication-6948"; + + ListAiApplicationEndpointsPagedResponse pagedListResponse = + client.listAiApplicationEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEndpointsList().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 listAiApplicationEndpointsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6948/locations/location-6948/aiApplications/aiApplication-6948"; + client.listAiApplicationEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkillEncryptionSpecTest() throws Exception { + SkillEncryptionSpec expectedResponse = + SkillEncryptionSpec.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .setCryptoKeyName("cryptoKeyName1447084425") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SkillEncryptionSpecName name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]"); + + SkillEncryptionSpec actualResponse = client.getSkillEncryptionSpec(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 getSkillEncryptionSpecExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkillEncryptionSpecName name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]"); + client.getSkillEncryptionSpec(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkillEncryptionSpecTest2() throws Exception { + SkillEncryptionSpec expectedResponse = + SkillEncryptionSpec.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .setCryptoKeyName("cryptoKeyName1447084425") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2502/locations/location-2502/skillEncryptionSpec"; + + SkillEncryptionSpec actualResponse = client.getSkillEncryptionSpec(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 getSkillEncryptionSpecExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2502/locations/location-2502/skillEncryptionSpec"; + client.getSkillEncryptionSpec(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSkillEncryptionSpecTest() throws Exception { + SkillEncryptionSpec expectedResponse = + SkillEncryptionSpec.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .setCryptoKeyName("cryptoKeyName1447084425") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSkillEncryptionSpecTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SkillEncryptionSpec skillEncryptionSpec = + SkillEncryptionSpec.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .setCryptoKeyName("cryptoKeyName1447084425") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SkillEncryptionSpec actualResponse = + client.updateSkillEncryptionSpecAsync(skillEncryptionSpec, updateMask).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 updateSkillEncryptionSpecExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkillEncryptionSpec skillEncryptionSpec = + SkillEncryptionSpec.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .setCryptoKeyName("cryptoKeyName1447084425") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSkillEncryptionSpecAsync(skillEncryptionSpec, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientTest.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientTest.java index 80f6d7eb86f1..a1a9ee191471 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientTest.java +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientTest.java @@ -18,13 +18,22 @@ import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAiApplicationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListFindingsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListPublishersPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillRevisionsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListSkillsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchSkillsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -34,6 +43,8 @@ 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.apphub.v1.ApplicationProperties; +import com.google.cloud.apphub.v1.Attributes; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -283,7 +294,9 @@ public void searchAgentsExceptionTest2() throws Exception { public void getAgentTest() throws Exception { Agent expectedResponse = Agent.newBuilder() - .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setName( + AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]") + .toString()) .setAgentId("agentId-1060987136") .setLocation("location1901043637") .setDisplayName("displayName1714148973") @@ -299,7 +312,7 @@ public void getAgentTest() throws Exception { .build(); mockAgentRegistry.addResponse(expectedResponse); - AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]"); Agent actualResponse = client.getAgent(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -321,7 +334,7 @@ public void getAgentExceptionTest() throws Exception { mockAgentRegistry.addException(exception); try { - AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]"); client.getAgent(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -333,7 +346,9 @@ public void getAgentExceptionTest() throws Exception { public void getAgentTest2() throws Exception { Agent expectedResponse = Agent.newBuilder() - .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setName( + AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]") + .toString()) .setAgentId("agentId-1060987136") .setLocation("location1901043637") .setDisplayName("displayName1714148973") @@ -471,7 +486,9 @@ public void listEndpointsExceptionTest2() throws Exception { public void getEndpointTest() throws Exception { Endpoint expectedResponse = Endpoint.newBuilder() - .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setName( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) .setEndpointId("endpointId-1837754992") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -482,7 +499,8 @@ public void getEndpointTest() throws Exception { .build(); mockAgentRegistry.addResponse(expectedResponse); - EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + EndpointName name = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); Endpoint actualResponse = client.getEndpoint(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -504,7 +522,8 @@ public void getEndpointExceptionTest() throws Exception { mockAgentRegistry.addException(exception); try { - EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + EndpointName name = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); client.getEndpoint(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -516,7 +535,9 @@ public void getEndpointExceptionTest() throws Exception { public void getEndpointTest2() throws Exception { Endpoint expectedResponse = Endpoint.newBuilder() - .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setName( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) .setEndpointId("endpointId-1837754992") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -737,7 +758,10 @@ public void searchMcpServersExceptionTest2() throws Exception { public void getMcpServerTest() throws Exception { McpServer expectedResponse = McpServer.newBuilder() - .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setName( + McpServerName.ofProjectLocationMcpServerName( + "[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + .toString()) .setMcpServerId("mcpServerId298140536") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -749,7 +773,8 @@ public void getMcpServerTest() throws Exception { .build(); mockAgentRegistry.addResponse(expectedResponse); - McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + McpServerName name = + McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); McpServer actualResponse = client.getMcpServer(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -771,7 +796,8 @@ public void getMcpServerExceptionTest() throws Exception { mockAgentRegistry.addException(exception); try { - McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + McpServerName name = + McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); client.getMcpServer(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -783,7 +809,10 @@ public void getMcpServerExceptionTest() throws Exception { public void getMcpServerTest2() throws Exception { McpServer expectedResponse = McpServer.newBuilder() - .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setName( + McpServerName.ofProjectLocationMcpServerName( + "[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + .toString()) .setMcpServerId("mcpServerId298140536") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -1777,6 +1806,2179 @@ public void fetchAvailableBindingsExceptionTest2() throws Exception { } } + @Test + public void createSkillTest() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + + Skill actualResponse = client.createSkillAsync(parent, skill, skillId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSkillRequest actualRequest = ((CreateSkillRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(skill, actualRequest.getSkill()); + Assert.assertEquals(skillId, actualRequest.getSkillId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSkillExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + client.createSkillAsync(parent, skill, skillId).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 createSkillTest2() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + String parent = "parent-995424086"; + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + + Skill actualResponse = client.createSkillAsync(parent, skill, skillId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSkillRequest actualRequest = ((CreateSkillRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(skill, actualRequest.getSkill()); + Assert.assertEquals(skillId, actualRequest.getSkillId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSkillExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + client.createSkillAsync(parent, skill, skillId).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 getSkillTest() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + + Skill actualResponse = client.getSkill(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSkillRequest actualRequest = ((GetSkillRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSkillExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + client.getSkill(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkillTest2() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Skill actualResponse = client.getSkill(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSkillRequest actualRequest = ((GetSkillRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSkillExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getSkill(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSkillTest() throws Exception { + Skill expectedResponse = + Skill.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setUid("uid115792") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDefaultRevision( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setFrontmatter(Frontmatter.newBuilder().build()) + .setSkillId("skillId2147320652") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPublisher(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setInitialRevision(SkillRevision.newBuilder().build()) + .setScanningConfig(ScanningConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + Skill skill = Skill.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Skill actualResponse = client.updateSkillAsync(skill, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSkillRequest actualRequest = ((UpdateSkillRequest) actualRequests.get(0)); + + Assert.assertEquals(skill, actualRequest.getSkill()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSkillExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + Skill skill = Skill.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSkillAsync(skill, 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 deleteSkillTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + + client.deleteSkillAsync(name).get(); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSkillRequest actualRequest = ((DeleteSkillRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSkillExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + client.deleteSkillAsync(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 deleteSkillTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSkillTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteSkillAsync(name).get(); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSkillRequest actualRequest = ((DeleteSkillRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSkillExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.deleteSkillAsync(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 listSkillsTest() throws Exception { + Skill responsesElement = Skill.newBuilder().build(); + ListSkillsResponse expectedResponse = + ListSkillsResponse.newBuilder() + .setNextPageToken("") + .addAllSkills(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSkillsPagedResponse pagedListResponse = client.listSkills(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSkillsRequest actualRequest = ((ListSkillsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSkillsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSkills(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkillsTest2() throws Exception { + Skill responsesElement = Skill.newBuilder().build(); + ListSkillsResponse expectedResponse = + ListSkillsResponse.newBuilder() + .setNextPageToken("") + .addAllSkills(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSkillsPagedResponse pagedListResponse = client.listSkills(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSkillsRequest actualRequest = ((ListSkillsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSkillsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSkills(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchSkillsTest() throws Exception { + Skill responsesElement = Skill.newBuilder().build(); + SearchSkillsResponse expectedResponse = + SearchSkillsResponse.newBuilder() + .setNextPageToken("") + .addAllSkills(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + SearchSkillsRequest request = + SearchSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchType(SearchType.forNumber(0)) + .setSearchString("searchString120312793") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + SearchSkillsPagedResponse pagedListResponse = client.searchSkills(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchSkillsRequest actualRequest = ((SearchSkillsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSearchType(), actualRequest.getSearchType()); + Assert.assertEquals(request.getSearchString(), actualRequest.getSearchString()); + 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 searchSkillsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SearchSkillsRequest request = + SearchSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchType(SearchType.forNumber(0)) + .setSearchString("searchString120312793") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.searchSkills(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSkillRevisionTest() throws Exception { + SkillRevision expectedResponse = + SkillRevision.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setSha256Hash("sha256Hash127958997") + .setFrontmatter(Frontmatter.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setUid("uid115792") + .setScanResult(SkillRevision.ScanResult.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSkillRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + + SkillRevision actualResponse = + client.createSkillRevisionAsync(parent, skillRevision, skillRevisionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSkillRevisionRequest actualRequest = ((CreateSkillRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(skillRevision, actualRequest.getSkillRevision()); + Assert.assertEquals(skillRevisionId, actualRequest.getSkillRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSkillRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + client.createSkillRevisionAsync(parent, skillRevision, skillRevisionId).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 createSkillRevisionTest2() throws Exception { + SkillRevision expectedResponse = + SkillRevision.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setSha256Hash("sha256Hash127958997") + .setFrontmatter(Frontmatter.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setUid("uid115792") + .setScanResult(SkillRevision.ScanResult.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSkillRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + String parent = "parent-995424086"; + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + + SkillRevision actualResponse = + client.createSkillRevisionAsync(parent, skillRevision, skillRevisionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSkillRevisionRequest actualRequest = ((CreateSkillRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(skillRevision, actualRequest.getSkillRevision()); + Assert.assertEquals(skillRevisionId, actualRequest.getSkillRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSkillRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + client.createSkillRevisionAsync(parent, skillRevision, skillRevisionId).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 getSkillRevisionTest() throws Exception { + SkillRevision expectedResponse = + SkillRevision.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setSha256Hash("sha256Hash127958997") + .setFrontmatter(Frontmatter.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setUid("uid115792") + .setScanResult(SkillRevision.ScanResult.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + + SkillRevision actualResponse = client.getSkillRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSkillRevisionRequest actualRequest = ((GetSkillRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSkillRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + client.getSkillRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkillRevisionTest2() throws Exception { + SkillRevision expectedResponse = + SkillRevision.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString()) + .setSha256Hash("sha256Hash127958997") + .setFrontmatter(Frontmatter.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setUid("uid115792") + .setScanResult(SkillRevision.ScanResult.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + SkillRevision actualResponse = client.getSkillRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSkillRevisionRequest actualRequest = ((GetSkillRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSkillRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getSkillRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSkillRevisionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSkillRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + + client.deleteSkillRevisionAsync(name).get(); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSkillRevisionRequest actualRequest = ((DeleteSkillRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSkillRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + client.deleteSkillRevisionAsync(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 deleteSkillRevisionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSkillRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteSkillRevisionAsync(name).get(); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSkillRevisionRequest actualRequest = ((DeleteSkillRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSkillRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.deleteSkillRevisionAsync(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 listSkillRevisionsTest() throws Exception { + SkillRevision responsesElement = SkillRevision.newBuilder().build(); + ListSkillRevisionsResponse expectedResponse = + ListSkillRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSkillRevisions(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + + ListSkillRevisionsPagedResponse pagedListResponse = client.listSkillRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSkillRevisionsRequest actualRequest = ((ListSkillRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSkillRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + client.listSkillRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkillRevisionsTest2() throws Exception { + SkillRevision responsesElement = SkillRevision.newBuilder().build(); + ListSkillRevisionsResponse expectedResponse = + ListSkillRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSkillRevisions(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSkillRevisionsPagedResponse pagedListResponse = client.listSkillRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkillRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSkillRevisionsRequest actualRequest = ((ListSkillRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSkillRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSkillRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublisherTest() throws Exception { + Publisher expectedResponse = + Publisher.newBuilder() + .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setVerifiedPrefix("verifiedPrefix250185594") + .setDisplayName("displayName1714148973") + .setDocumentationUri("documentationUri-1487620014") + .setSupportUri("supportUri-613906659") + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + PublisherName name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]"); + + Publisher actualResponse = client.getPublisher(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPublisherRequest actualRequest = ((GetPublisherRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPublisherExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + PublisherName name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]"); + client.getPublisher(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublisherTest2() throws Exception { + Publisher expectedResponse = + Publisher.newBuilder() + .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .setVerifiedPrefix("verifiedPrefix250185594") + .setDisplayName("displayName1714148973") + .setDocumentationUri("documentationUri-1487620014") + .setSupportUri("supportUri-613906659") + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Publisher actualResponse = client.getPublisher(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPublisherRequest actualRequest = ((GetPublisherRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPublisherExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getPublisher(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublishersTest() throws Exception { + Publisher responsesElement = Publisher.newBuilder().build(); + ListPublishersResponse expectedResponse = + ListPublishersResponse.newBuilder() + .setNextPageToken("") + .addAllPublishers(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPublishersPagedResponse pagedListResponse = client.listPublishers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublishersList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPublishersRequest actualRequest = ((ListPublishersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPublishersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPublishers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublishersTest2() throws Exception { + Publisher responsesElement = Publisher.newBuilder().build(); + ListPublishersResponse expectedResponse = + ListPublishersResponse.newBuilder() + .setNextPageToken("") + .addAllPublishers(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPublishersPagedResponse pagedListResponse = client.listPublishers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublishersList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPublishersRequest actualRequest = ((ListPublishersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPublishersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPublishers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationTest() throws Exception { + AiApplication expectedResponse = + AiApplication.newBuilder() + .setName(AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setAttributes(Attributes.newBuilder().build()) + .setApplicationProperties(ApplicationProperties.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + AiApplicationName name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + + AiApplication actualResponse = client.getAiApplication(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAiApplicationRequest actualRequest = ((GetAiApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAiApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + AiApplicationName name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + client.getAiApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationTest2() throws Exception { + AiApplication expectedResponse = + AiApplication.newBuilder() + .setName(AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setAttributes(Attributes.newBuilder().build()) + .setApplicationProperties(ApplicationProperties.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + AiApplication actualResponse = client.getAiApplication(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAiApplicationRequest actualRequest = ((GetAiApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAiApplicationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getAiApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationsTest() throws Exception { + AiApplication responsesElement = AiApplication.newBuilder().build(); + ListAiApplicationsResponse expectedResponse = + ListAiApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllAiApplications(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAiApplicationsPagedResponse pagedListResponse = client.listAiApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAiApplicationsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAiApplicationsRequest actualRequest = ((ListAiApplicationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAiApplicationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAiApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationsTest2() throws Exception { + AiApplication responsesElement = AiApplication.newBuilder().build(); + ListAiApplicationsResponse expectedResponse = + ListAiApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllAiApplications(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAiApplicationsPagedResponse pagedListResponse = client.listAiApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAiApplicationsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAiApplicationsRequest actualRequest = ((ListAiApplicationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAiApplicationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAiApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName( + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]") + .toString()) + .setAgentId("agentId-1060987136") + .setLocation("location1901043637") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersion("version351608024") + .addAllProtocols(new ArrayList()) + .addAllSkills(new ArrayList()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .setCard(Agent.Card.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + AgentName name = + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]"); + + Agent actualResponse = client.getAiApplicationAgent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAiApplicationAgentRequest actualRequest = + ((GetAiApplicationAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAiApplicationAgentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + AgentName name = + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]"); + client.getAiApplicationAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationAgentTest2() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName( + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]") + .toString()) + .setAgentId("agentId-1060987136") + .setLocation("location1901043637") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersion("version351608024") + .addAllProtocols(new ArrayList()) + .addAllSkills(new ArrayList()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .setCard(Agent.Card.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Agent actualResponse = client.getAiApplicationAgent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAiApplicationAgentRequest actualRequest = + ((GetAiApplicationAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAiApplicationAgentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getAiApplicationAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationAgentsTest() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAiApplicationAgentsResponse expectedResponse = + ListAiApplicationAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + AiApplicationName parent = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + + ListAiApplicationAgentsPagedResponse pagedListResponse = client.listAiApplicationAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAiApplicationAgentsRequest actualRequest = + ((ListAiApplicationAgentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAiApplicationAgentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + client.listAiApplicationAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationAgentsTest2() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAiApplicationAgentsResponse expectedResponse = + ListAiApplicationAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAiApplicationAgentsPagedResponse pagedListResponse = client.listAiApplicationAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAiApplicationAgentsRequest actualRequest = + ((ListAiApplicationAgentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAiApplicationAgentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAiApplicationAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationMcpServerTest() throws Exception { + McpServer expectedResponse = + McpServer.newBuilder() + .setName( + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]") + .toString()) + .setMcpServerId("mcpServerId298140536") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .addAllTools(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + McpServerName name = + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]"); + + McpServer actualResponse = client.getAiApplicationMcpServer(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAiApplicationMcpServerRequest actualRequest = + ((GetAiApplicationMcpServerRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAiApplicationMcpServerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + McpServerName name = + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]"); + client.getAiApplicationMcpServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationMcpServerTest2() throws Exception { + McpServer expectedResponse = + McpServer.newBuilder() + .setName( + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]") + .toString()) + .setMcpServerId("mcpServerId298140536") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .addAllTools(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + McpServer actualResponse = client.getAiApplicationMcpServer(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAiApplicationMcpServerRequest actualRequest = + ((GetAiApplicationMcpServerRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAiApplicationMcpServerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getAiApplicationMcpServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationMcpServersTest() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + ListAiApplicationMcpServersResponse expectedResponse = + ListAiApplicationMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + AiApplicationName parent = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + + ListAiApplicationMcpServersPagedResponse pagedListResponse = + client.listAiApplicationMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAiApplicationMcpServersRequest actualRequest = + ((ListAiApplicationMcpServersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAiApplicationMcpServersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + client.listAiApplicationMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationMcpServersTest2() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + ListAiApplicationMcpServersResponse expectedResponse = + ListAiApplicationMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAiApplicationMcpServersPagedResponse pagedListResponse = + client.listAiApplicationMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAiApplicationMcpServersRequest actualRequest = + ((ListAiApplicationMcpServersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAiApplicationMcpServersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAiApplicationMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSeverity(Severity.forNumber(0)) + .addAllFiles(new ArrayList()) + .setDetail("detail-1335224239") + .setResource("resource-341064690") + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + FindingName name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]"); + + Finding actualResponse = client.getFinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFindingRequest actualRequest = ((GetFindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + FindingName name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]"); + client.getFinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFindingTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSeverity(Severity.forNumber(0)) + .addAllFiles(new ArrayList()) + .setDetail("detail-1335224239") + .setResource("resource-341064690") + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Finding actualResponse = client.getFinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFindingRequest actualRequest = ((GetFindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getFinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsTest() throws Exception { + Finding responsesElement = Finding.newBuilder().build(); + ListFindingsResponse expectedResponse = + ListFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllFindings(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFindingsPagedResponse pagedListResponse = client.listFindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFindingsRequest actualRequest = ((ListFindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsTest2() throws Exception { + Finding responsesElement = Finding.newBuilder().build(); + ListFindingsResponse expectedResponse = + ListFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllFindings(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFindingsPagedResponse pagedListResponse = client.listFindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFindingsRequest actualRequest = ((ListFindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationEndpointTest() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName( + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]") + .toString()) + .setEndpointId("endpointId-1837754992") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + EndpointName name = + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]"); + + Endpoint actualResponse = client.getAiApplicationEndpoint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAiApplicationEndpointRequest actualRequest = + ((GetAiApplicationEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAiApplicationEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + EndpointName name = + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]"); + client.getAiApplicationEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAiApplicationEndpointTest2() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName( + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]") + .toString()) + .setEndpointId("endpointId-1837754992") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Endpoint actualResponse = client.getAiApplicationEndpoint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAiApplicationEndpointRequest actualRequest = + ((GetAiApplicationEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAiApplicationEndpointExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getAiApplicationEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationEndpointsTest() throws Exception { + Endpoint responsesElement = Endpoint.newBuilder().build(); + ListAiApplicationEndpointsResponse expectedResponse = + ListAiApplicationEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllEndpoints(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + AiApplicationName parent = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + + ListAiApplicationEndpointsPagedResponse pagedListResponse = + client.listAiApplicationEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAiApplicationEndpointsRequest actualRequest = + ((ListAiApplicationEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAiApplicationEndpointsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + client.listAiApplicationEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAiApplicationEndpointsTest2() throws Exception { + Endpoint responsesElement = Endpoint.newBuilder().build(); + ListAiApplicationEndpointsResponse expectedResponse = + ListAiApplicationEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllEndpoints(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAiApplicationEndpointsPagedResponse pagedListResponse = + client.listAiApplicationEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAiApplicationEndpointsRequest actualRequest = + ((ListAiApplicationEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAiApplicationEndpointsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAiApplicationEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkillEncryptionSpecTest() throws Exception { + SkillEncryptionSpec expectedResponse = + SkillEncryptionSpec.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .setCryptoKeyName("cryptoKeyName1447084425") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + SkillEncryptionSpecName name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]"); + + SkillEncryptionSpec actualResponse = client.getSkillEncryptionSpec(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSkillEncryptionSpecRequest actualRequest = + ((GetSkillEncryptionSpecRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSkillEncryptionSpecExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SkillEncryptionSpecName name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]"); + client.getSkillEncryptionSpec(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkillEncryptionSpecTest2() throws Exception { + SkillEncryptionSpec expectedResponse = + SkillEncryptionSpec.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .setCryptoKeyName("cryptoKeyName1447084425") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + SkillEncryptionSpec actualResponse = client.getSkillEncryptionSpec(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSkillEncryptionSpecRequest actualRequest = + ((GetSkillEncryptionSpecRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSkillEncryptionSpecExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getSkillEncryptionSpec(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSkillEncryptionSpecTest() throws Exception { + SkillEncryptionSpec expectedResponse = + SkillEncryptionSpec.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .setCryptoKeyName("cryptoKeyName1447084425") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSkillEncryptionSpecTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + SkillEncryptionSpec skillEncryptionSpec = SkillEncryptionSpec.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SkillEncryptionSpec actualResponse = + client.updateSkillEncryptionSpecAsync(skillEncryptionSpec, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSkillEncryptionSpecRequest actualRequest = + ((UpdateSkillEncryptionSpecRequest) actualRequests.get(0)); + + Assert.assertEquals(skillEncryptionSpec, actualRequest.getSkillEncryptionSpec()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSkillEncryptionSpecExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + SkillEncryptionSpec skillEncryptionSpec = SkillEncryptionSpec.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSkillEncryptionSpecAsync(skillEncryptionSpec, 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 listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistryImpl.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistryImpl.java index cd5da34ee8a4..04b40abda5db 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistryImpl.java +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistryImpl.java @@ -455,4 +455,516 @@ public void fetchAvailableBindings( Exception.class.getName()))); } } + + @Override + public void createSkill(CreateSkillRequest 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 CreateSkill, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSkill(GetSkillRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Skill) { + requests.add(request); + responseObserver.onNext(((Skill) 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 GetSkill, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Skill.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSkill(UpdateSkillRequest 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 UpdateSkill, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSkill(DeleteSkillRequest 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 DeleteSkill, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSkills( + ListSkillsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSkillsResponse) { + requests.add(request); + responseObserver.onNext(((ListSkillsResponse) 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 ListSkills, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSkillsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchSkills( + SearchSkillsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchSkillsResponse) { + requests.add(request); + responseObserver.onNext(((SearchSkillsResponse) 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 SearchSkills, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchSkillsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSkillRevision( + CreateSkillRevisionRequest 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 CreateSkillRevision, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSkillRevision( + GetSkillRevisionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SkillRevision) { + requests.add(request); + responseObserver.onNext(((SkillRevision) 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 GetSkillRevision, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SkillRevision.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSkillRevision( + DeleteSkillRevisionRequest 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 DeleteSkillRevision, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSkillRevisions( + ListSkillRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSkillRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListSkillRevisionsResponse) 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 ListSkillRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSkillRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPublisher( + GetPublisherRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Publisher) { + requests.add(request); + responseObserver.onNext(((Publisher) 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 GetPublisher, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Publisher.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPublishers( + ListPublishersRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPublishersResponse) { + requests.add(request); + responseObserver.onNext(((ListPublishersResponse) 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 ListPublishers, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPublishersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAiApplication( + GetAiApplicationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AiApplication) { + requests.add(request); + responseObserver.onNext(((AiApplication) 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 GetAiApplication, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AiApplication.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAiApplications( + ListAiApplicationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAiApplicationsResponse) { + requests.add(request); + responseObserver.onNext(((ListAiApplicationsResponse) 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 ListAiApplications, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAiApplicationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAiApplicationAgent( + GetAiApplicationAgentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Agent) { + requests.add(request); + responseObserver.onNext(((Agent) 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 GetAiApplicationAgent, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Agent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAiApplicationAgents( + ListAiApplicationAgentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAiApplicationAgentsResponse) { + requests.add(request); + responseObserver.onNext(((ListAiApplicationAgentsResponse) 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 ListAiApplicationAgents, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListAiApplicationAgentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAiApplicationMcpServer( + GetAiApplicationMcpServerRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof McpServer) { + requests.add(request); + responseObserver.onNext(((McpServer) 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 GetAiApplicationMcpServer, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + McpServer.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAiApplicationMcpServers( + ListAiApplicationMcpServersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAiApplicationMcpServersResponse) { + requests.add(request); + responseObserver.onNext(((ListAiApplicationMcpServersResponse) 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 ListAiApplicationMcpServers, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAiApplicationMcpServersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFinding(GetFindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Finding) { + requests.add(request); + responseObserver.onNext(((Finding) 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 GetFinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Finding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFindings( + ListFindingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListFindingsResponse) 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 ListFindings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAiApplicationEndpoint( + GetAiApplicationEndpointRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Endpoint) { + requests.add(request); + responseObserver.onNext(((Endpoint) 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 GetAiApplicationEndpoint, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Endpoint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAiApplicationEndpoints( + ListAiApplicationEndpointsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAiApplicationEndpointsResponse) { + requests.add(request); + responseObserver.onNext(((ListAiApplicationEndpointsResponse) 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 ListAiApplicationEndpoints, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListAiApplicationEndpointsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSkillEncryptionSpec( + GetSkillEncryptionSpecRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SkillEncryptionSpec) { + requests.add(request); + responseObserver.onNext(((SkillEncryptionSpec) 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 GetSkillEncryptionSpec, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + SkillEncryptionSpec.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSkillEncryptionSpec( + UpdateSkillEncryptionSpecRequest 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 UpdateSkillEncryptionSpec, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-agentregistry/grpc-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryGrpc.java b/java-agentregistry/grpc-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryGrpc.java index 45abe3ea6a14..c54a91ff4e78 100644 --- a/java-agentregistry/grpc-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryGrpc.java +++ b/java-agentregistry/grpc-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryGrpc.java @@ -21,7 +21,7 @@ * * *

- * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
+ * Service for managing Agent Registry resources.
  * 
*/ @io.grpc.stub.annotations.GrpcGenerated @@ -900,6 +900,1140 @@ private AgentRegistryGrpc() {} return getFetchAvailableBindingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateSkillRequest, com.google.longrunning.Operation> + getCreateSkillMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSkill", + requestType = com.google.cloud.agentregistry.v1.CreateSkillRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateSkillRequest, com.google.longrunning.Operation> + getCreateSkillMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateSkillRequest, com.google.longrunning.Operation> + getCreateSkillMethod; + if ((getCreateSkillMethod = AgentRegistryGrpc.getCreateSkillMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getCreateSkillMethod = AgentRegistryGrpc.getCreateSkillMethod) == null) { + AgentRegistryGrpc.getCreateSkillMethod = + getCreateSkillMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSkill")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.CreateSkillRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("CreateSkill")) + .build(); + } + } + } + return getCreateSkillMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillRequest, + com.google.cloud.agentregistry.v1.Skill> + getGetSkillMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSkill", + requestType = com.google.cloud.agentregistry.v1.GetSkillRequest.class, + responseType = com.google.cloud.agentregistry.v1.Skill.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillRequest, + com.google.cloud.agentregistry.v1.Skill> + getGetSkillMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillRequest, + com.google.cloud.agentregistry.v1.Skill> + getGetSkillMethod; + if ((getGetSkillMethod = AgentRegistryGrpc.getGetSkillMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetSkillMethod = AgentRegistryGrpc.getGetSkillMethod) == null) { + AgentRegistryGrpc.getGetSkillMethod = + getGetSkillMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSkill")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetSkillRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Skill.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("GetSkill")) + .build(); + } + } + } + return getGetSkillMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateSkillRequest, com.google.longrunning.Operation> + getUpdateSkillMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSkill", + requestType = com.google.cloud.agentregistry.v1.UpdateSkillRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateSkillRequest, com.google.longrunning.Operation> + getUpdateSkillMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateSkillRequest, com.google.longrunning.Operation> + getUpdateSkillMethod; + if ((getUpdateSkillMethod = AgentRegistryGrpc.getUpdateSkillMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getUpdateSkillMethod = AgentRegistryGrpc.getUpdateSkillMethod) == null) { + AgentRegistryGrpc.getUpdateSkillMethod = + getUpdateSkillMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSkill")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.UpdateSkillRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("UpdateSkill")) + .build(); + } + } + } + return getUpdateSkillMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteSkillRequest, com.google.longrunning.Operation> + getDeleteSkillMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSkill", + requestType = com.google.cloud.agentregistry.v1.DeleteSkillRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteSkillRequest, com.google.longrunning.Operation> + getDeleteSkillMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteSkillRequest, com.google.longrunning.Operation> + getDeleteSkillMethod; + if ((getDeleteSkillMethod = AgentRegistryGrpc.getDeleteSkillMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getDeleteSkillMethod = AgentRegistryGrpc.getDeleteSkillMethod) == null) { + AgentRegistryGrpc.getDeleteSkillMethod = + getDeleteSkillMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSkill")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.DeleteSkillRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("DeleteSkill")) + .build(); + } + } + } + return getDeleteSkillMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListSkillsRequest, + com.google.cloud.agentregistry.v1.ListSkillsResponse> + getListSkillsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSkills", + requestType = com.google.cloud.agentregistry.v1.ListSkillsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListSkillsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListSkillsRequest, + com.google.cloud.agentregistry.v1.ListSkillsResponse> + getListSkillsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListSkillsRequest, + com.google.cloud.agentregistry.v1.ListSkillsResponse> + getListSkillsMethod; + if ((getListSkillsMethod = AgentRegistryGrpc.getListSkillsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListSkillsMethod = AgentRegistryGrpc.getListSkillsMethod) == null) { + AgentRegistryGrpc.getListSkillsMethod = + getListSkillsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSkills")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListSkillsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListSkillsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("ListSkills")) + .build(); + } + } + } + return getListSkillsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchSkillsRequest, + com.google.cloud.agentregistry.v1.SearchSkillsResponse> + getSearchSkillsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchSkills", + requestType = com.google.cloud.agentregistry.v1.SearchSkillsRequest.class, + responseType = com.google.cloud.agentregistry.v1.SearchSkillsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchSkillsRequest, + com.google.cloud.agentregistry.v1.SearchSkillsResponse> + getSearchSkillsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchSkillsRequest, + com.google.cloud.agentregistry.v1.SearchSkillsResponse> + getSearchSkillsMethod; + if ((getSearchSkillsMethod = AgentRegistryGrpc.getSearchSkillsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getSearchSkillsMethod = AgentRegistryGrpc.getSearchSkillsMethod) == null) { + AgentRegistryGrpc.getSearchSkillsMethod = + getSearchSkillsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchSkills")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.SearchSkillsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.SearchSkillsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("SearchSkills")) + .build(); + } + } + } + return getSearchSkillsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest, + com.google.longrunning.Operation> + getCreateSkillRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSkillRevision", + requestType = com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest, + com.google.longrunning.Operation> + getCreateSkillRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest, + com.google.longrunning.Operation> + getCreateSkillRevisionMethod; + if ((getCreateSkillRevisionMethod = AgentRegistryGrpc.getCreateSkillRevisionMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getCreateSkillRevisionMethod = AgentRegistryGrpc.getCreateSkillRevisionMethod) + == null) { + AgentRegistryGrpc.getCreateSkillRevisionMethod = + getCreateSkillRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateSkillRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("CreateSkillRevision")) + .build(); + } + } + } + return getCreateSkillRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest, + com.google.cloud.agentregistry.v1.SkillRevision> + getGetSkillRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSkillRevision", + requestType = com.google.cloud.agentregistry.v1.GetSkillRevisionRequest.class, + responseType = com.google.cloud.agentregistry.v1.SkillRevision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest, + com.google.cloud.agentregistry.v1.SkillRevision> + getGetSkillRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest, + com.google.cloud.agentregistry.v1.SkillRevision> + getGetSkillRevisionMethod; + if ((getGetSkillRevisionMethod = AgentRegistryGrpc.getGetSkillRevisionMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetSkillRevisionMethod = AgentRegistryGrpc.getGetSkillRevisionMethod) == null) { + AgentRegistryGrpc.getGetSkillRevisionMethod = + getGetSkillRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSkillRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("GetSkillRevision")) + .build(); + } + } + } + return getGetSkillRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest, + com.google.longrunning.Operation> + getDeleteSkillRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSkillRevision", + requestType = com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest, + com.google.longrunning.Operation> + getDeleteSkillRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest, + com.google.longrunning.Operation> + getDeleteSkillRevisionMethod; + if ((getDeleteSkillRevisionMethod = AgentRegistryGrpc.getDeleteSkillRevisionMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getDeleteSkillRevisionMethod = AgentRegistryGrpc.getDeleteSkillRevisionMethod) + == null) { + AgentRegistryGrpc.getDeleteSkillRevisionMethod = + getDeleteSkillRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSkillRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("DeleteSkillRevision")) + .build(); + } + } + } + return getDeleteSkillRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest, + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse> + getListSkillRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSkillRevisions", + requestType = com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest, + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse> + getListSkillRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest, + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse> + getListSkillRevisionsMethod; + if ((getListSkillRevisionsMethod = AgentRegistryGrpc.getListSkillRevisionsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListSkillRevisionsMethod = AgentRegistryGrpc.getListSkillRevisionsMethod) == null) { + AgentRegistryGrpc.getListSkillRevisionsMethod = + getListSkillRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSkillRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListSkillRevisions")) + .build(); + } + } + } + return getListSkillRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetPublisherRequest, + com.google.cloud.agentregistry.v1.Publisher> + getGetPublisherMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPublisher", + requestType = com.google.cloud.agentregistry.v1.GetPublisherRequest.class, + responseType = com.google.cloud.agentregistry.v1.Publisher.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetPublisherRequest, + com.google.cloud.agentregistry.v1.Publisher> + getGetPublisherMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetPublisherRequest, + com.google.cloud.agentregistry.v1.Publisher> + getGetPublisherMethod; + if ((getGetPublisherMethod = AgentRegistryGrpc.getGetPublisherMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetPublisherMethod = AgentRegistryGrpc.getGetPublisherMethod) == null) { + AgentRegistryGrpc.getGetPublisherMethod = + getGetPublisherMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPublisher")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetPublisherRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Publisher.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("GetPublisher")) + .build(); + } + } + } + return getGetPublisherMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListPublishersRequest, + com.google.cloud.agentregistry.v1.ListPublishersResponse> + getListPublishersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPublishers", + requestType = com.google.cloud.agentregistry.v1.ListPublishersRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListPublishersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListPublishersRequest, + com.google.cloud.agentregistry.v1.ListPublishersResponse> + getListPublishersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListPublishersRequest, + com.google.cloud.agentregistry.v1.ListPublishersResponse> + getListPublishersMethod; + if ((getListPublishersMethod = AgentRegistryGrpc.getListPublishersMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListPublishersMethod = AgentRegistryGrpc.getListPublishersMethod) == null) { + AgentRegistryGrpc.getListPublishersMethod = + getListPublishersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPublishers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListPublishersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListPublishersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListPublishers")) + .build(); + } + } + } + return getListPublishersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationRequest, + com.google.cloud.agentregistry.v1.AiApplication> + getGetAiApplicationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAiApplication", + requestType = com.google.cloud.agentregistry.v1.GetAiApplicationRequest.class, + responseType = com.google.cloud.agentregistry.v1.AiApplication.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationRequest, + com.google.cloud.agentregistry.v1.AiApplication> + getGetAiApplicationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationRequest, + com.google.cloud.agentregistry.v1.AiApplication> + getGetAiApplicationMethod; + if ((getGetAiApplicationMethod = AgentRegistryGrpc.getGetAiApplicationMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetAiApplicationMethod = AgentRegistryGrpc.getGetAiApplicationMethod) == null) { + AgentRegistryGrpc.getGetAiApplicationMethod = + getGetAiApplicationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAiApplication")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetAiApplicationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.AiApplication.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("GetAiApplication")) + .build(); + } + } + } + return getGetAiApplicationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse> + getListAiApplicationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAiApplications", + requestType = com.google.cloud.agentregistry.v1.ListAiApplicationsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListAiApplicationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse> + getListAiApplicationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse> + getListAiApplicationsMethod; + if ((getListAiApplicationsMethod = AgentRegistryGrpc.getListAiApplicationsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListAiApplicationsMethod = AgentRegistryGrpc.getListAiApplicationsMethod) == null) { + AgentRegistryGrpc.getListAiApplicationsMethod = + getListAiApplicationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAiApplications")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListAiApplications")) + .build(); + } + } + } + return getListAiApplicationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest, + com.google.cloud.agentregistry.v1.Agent> + getGetAiApplicationAgentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAiApplicationAgent", + requestType = com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest.class, + responseType = com.google.cloud.agentregistry.v1.Agent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest, + com.google.cloud.agentregistry.v1.Agent> + getGetAiApplicationAgentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest, + com.google.cloud.agentregistry.v1.Agent> + getGetAiApplicationAgentMethod; + if ((getGetAiApplicationAgentMethod = AgentRegistryGrpc.getGetAiApplicationAgentMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetAiApplicationAgentMethod = AgentRegistryGrpc.getGetAiApplicationAgentMethod) + == null) { + AgentRegistryGrpc.getGetAiApplicationAgentMethod = + getGetAiApplicationAgentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAiApplicationAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Agent.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("GetAiApplicationAgent")) + .build(); + } + } + } + return getGetAiApplicationAgentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse> + getListAiApplicationAgentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAiApplicationAgents", + requestType = com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse> + getListAiApplicationAgentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse> + getListAiApplicationAgentsMethod; + if ((getListAiApplicationAgentsMethod = AgentRegistryGrpc.getListAiApplicationAgentsMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListAiApplicationAgentsMethod = AgentRegistryGrpc.getListAiApplicationAgentsMethod) + == null) { + AgentRegistryGrpc.getListAiApplicationAgentsMethod = + getListAiApplicationAgentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAiApplicationAgents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListAiApplicationAgents")) + .build(); + } + } + } + return getListAiApplicationAgentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest, + com.google.cloud.agentregistry.v1.McpServer> + getGetAiApplicationMcpServerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAiApplicationMcpServer", + requestType = com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest.class, + responseType = com.google.cloud.agentregistry.v1.McpServer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest, + com.google.cloud.agentregistry.v1.McpServer> + getGetAiApplicationMcpServerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest, + com.google.cloud.agentregistry.v1.McpServer> + getGetAiApplicationMcpServerMethod; + if ((getGetAiApplicationMcpServerMethod = AgentRegistryGrpc.getGetAiApplicationMcpServerMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetAiApplicationMcpServerMethod = + AgentRegistryGrpc.getGetAiApplicationMcpServerMethod) + == null) { + AgentRegistryGrpc.getGetAiApplicationMcpServerMethod = + getGetAiApplicationMcpServerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAiApplicationMcpServer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("GetAiApplicationMcpServer")) + .build(); + } + } + } + return getGetAiApplicationMcpServerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse> + getListAiApplicationMcpServersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAiApplicationMcpServers", + requestType = com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse> + getListAiApplicationMcpServersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse> + getListAiApplicationMcpServersMethod; + if ((getListAiApplicationMcpServersMethod = + AgentRegistryGrpc.getListAiApplicationMcpServersMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListAiApplicationMcpServersMethod = + AgentRegistryGrpc.getListAiApplicationMcpServersMethod) + == null) { + AgentRegistryGrpc.getListAiApplicationMcpServersMethod = + getListAiApplicationMcpServersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAiApplicationMcpServers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListAiApplicationMcpServers")) + .build(); + } + } + } + return getListAiApplicationMcpServersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetFindingRequest, + com.google.cloud.agentregistry.v1.Finding> + getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.agentregistry.v1.GetFindingRequest.class, + responseType = com.google.cloud.agentregistry.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetFindingRequest, + com.google.cloud.agentregistry.v1.Finding> + getGetFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetFindingRequest, + com.google.cloud.agentregistry.v1.Finding> + getGetFindingMethod; + if ((getGetFindingMethod = AgentRegistryGrpc.getGetFindingMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetFindingMethod = AgentRegistryGrpc.getGetFindingMethod) == null) { + AgentRegistryGrpc.getGetFindingMethod = + getGetFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListFindingsRequest, + com.google.cloud.agentregistry.v1.ListFindingsResponse> + getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.agentregistry.v1.ListFindingsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListFindingsRequest, + com.google.cloud.agentregistry.v1.ListFindingsResponse> + getListFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListFindingsRequest, + com.google.cloud.agentregistry.v1.ListFindingsResponse> + getListFindingsMethod; + if ((getListFindingsMethod = AgentRegistryGrpc.getListFindingsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListFindingsMethod = AgentRegistryGrpc.getListFindingsMethod) == null) { + AgentRegistryGrpc.getListFindingsMethod = + getListFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest, + com.google.cloud.agentregistry.v1.Endpoint> + getGetAiApplicationEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAiApplicationEndpoint", + requestType = com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest.class, + responseType = com.google.cloud.agentregistry.v1.Endpoint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest, + com.google.cloud.agentregistry.v1.Endpoint> + getGetAiApplicationEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest, + com.google.cloud.agentregistry.v1.Endpoint> + getGetAiApplicationEndpointMethod; + if ((getGetAiApplicationEndpointMethod = AgentRegistryGrpc.getGetAiApplicationEndpointMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetAiApplicationEndpointMethod = + AgentRegistryGrpc.getGetAiApplicationEndpointMethod) + == null) { + AgentRegistryGrpc.getGetAiApplicationEndpointMethod = + getGetAiApplicationEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAiApplicationEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Endpoint.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("GetAiApplicationEndpoint")) + .build(); + } + } + } + return getGetAiApplicationEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse> + getListAiApplicationEndpointsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAiApplicationEndpoints", + requestType = com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse> + getListAiApplicationEndpointsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse> + getListAiApplicationEndpointsMethod; + if ((getListAiApplicationEndpointsMethod = + AgentRegistryGrpc.getListAiApplicationEndpointsMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListAiApplicationEndpointsMethod = + AgentRegistryGrpc.getListAiApplicationEndpointsMethod) + == null) { + AgentRegistryGrpc.getListAiApplicationEndpointsMethod = + getListAiApplicationEndpointsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAiApplicationEndpoints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListAiApplicationEndpoints")) + .build(); + } + } + } + return getListAiApplicationEndpointsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec> + getGetSkillEncryptionSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSkillEncryptionSpec", + requestType = com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest.class, + responseType = com.google.cloud.agentregistry.v1.SkillEncryptionSpec.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec> + getGetSkillEncryptionSpecMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec> + getGetSkillEncryptionSpecMethod; + if ((getGetSkillEncryptionSpecMethod = AgentRegistryGrpc.getGetSkillEncryptionSpecMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetSkillEncryptionSpecMethod = AgentRegistryGrpc.getGetSkillEncryptionSpecMethod) + == null) { + AgentRegistryGrpc.getGetSkillEncryptionSpecMethod = + getGetSkillEncryptionSpecMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSkillEncryptionSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.SkillEncryptionSpec + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("GetSkillEncryptionSpec")) + .build(); + } + } + } + return getGetSkillEncryptionSpecMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest, + com.google.longrunning.Operation> + getUpdateSkillEncryptionSpecMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSkillEncryptionSpec", + requestType = com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest, + com.google.longrunning.Operation> + getUpdateSkillEncryptionSpecMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest, + com.google.longrunning.Operation> + getUpdateSkillEncryptionSpecMethod; + if ((getUpdateSkillEncryptionSpecMethod = AgentRegistryGrpc.getUpdateSkillEncryptionSpecMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getUpdateSkillEncryptionSpecMethod = + AgentRegistryGrpc.getUpdateSkillEncryptionSpecMethod) + == null) { + AgentRegistryGrpc.getUpdateSkillEncryptionSpecMethod = + getUpdateSkillEncryptionSpecMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSkillEncryptionSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("UpdateSkillEncryptionSpec")) + .build(); + } + } + } + return getUpdateSkillEncryptionSpecMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AgentRegistryStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -913,360 +2047,2088 @@ public AgentRegistryStub newStub( return AgentRegistryStub.newStub(factory, channel); } - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static AgentRegistryBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentRegistryBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentRegistryBlockingV2Stub(channel, callOptions); - } - }; - return AgentRegistryBlockingV2Stub.newStub(factory, channel); - } + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AgentRegistryBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentRegistryBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryBlockingV2Stub(channel, callOptions); + } + }; + return AgentRegistryBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AgentRegistryBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentRegistryBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryBlockingStub(channel, callOptions); + } + }; + return AgentRegistryBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AgentRegistryFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentRegistryFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryFutureStub(channel, callOptions); + } + }; + return AgentRegistryFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing Agent Registry resources.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists Agents in a given project and location.
+     * 
+ */ + default void listAgents( + com.google.cloud.agentregistry.v1.ListAgentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAgentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches Agents in a given project and location.
+     * 
+ */ + default void searchAgents( + com.google.cloud.agentregistry.v1.SearchAgentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAgentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Agent.
+     * 
+ */ + default void getAgent( + com.google.cloud.agentregistry.v1.GetAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Endpoints in a given project and location.
+     * 
+ */ + default void listEndpoints( + com.google.cloud.agentregistry.v1.ListEndpointsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEndpointsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Endpoint.
+     * 
+ */ + default void getEndpoint( + com.google.cloud.agentregistry.v1.GetEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEndpointMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists McpServers in a given project and location.
+     * 
+ */ + default void listMcpServers( + com.google.cloud.agentregistry.v1.ListMcpServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMcpServersMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches McpServers in a given project and location.
+     * 
+ */ + default void searchMcpServers( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchMcpServersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single McpServer.
+     * 
+ */ + default void getMcpServer( + com.google.cloud.agentregistry.v1.GetMcpServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMcpServerMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Services in a given project and location.
+     * 
+ */ + default void listServices( + com.google.cloud.agentregistry.v1.ListServicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServicesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Service.
+     * 
+ */ + default void getService( + com.google.cloud.agentregistry.v1.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + default void createService( + com.google.cloud.agentregistry.v1.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Service.
+     * 
+ */ + default void updateService( + com.google.cloud.agentregistry.v1.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Service.
+     * 
+ */ + default void deleteService( + com.google.cloud.agentregistry.v1.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Bindings in a given project and location.
+     * 
+ */ + default void listBindings( + com.google.cloud.agentregistry.v1.ListBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Binding.
+     * 
+ */ + default void getBinding( + com.google.cloud.agentregistry.v1.GetBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Binding in a given project and location.
+     * 
+ */ + default void createBinding( + com.google.cloud.agentregistry.v1.CreateBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Binding.
+     * 
+ */ + default void updateBinding( + com.google.cloud.agentregistry.v1.UpdateBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Binding.
+     * 
+ */ + default void deleteBinding( + com.google.cloud.agentregistry.v1.DeleteBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches available Bindings.
+     * 
+ */ + default void fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchAvailableBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * =========================================================================
+     * # Skills Collection APIs
+     * Creates a Skill resource container, optionally publishing the initial
+     * SkillRevision inline in a single, atomic CRUD roundtrip.
+     * 
+ */ + default void createSkill( + com.google.cloud.agentregistry.v1.CreateSkillRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSkillMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches the active configuration and metadata of a Skill.
+     * 
+ */ + default void getSkill( + com.google.cloud.agentregistry.v1.GetSkillRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSkillMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates Skill metadata or overrides active pointers/state using REST
+     * standard PATCH.
+     * 
+ */ + default void updateSkill( + com.google.cloud.agentregistry.v1.UpdateSkillRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSkillMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Skill container along with all its revisions.
+     * 
+ */ + default void deleteSkill( + com.google.cloud.agentregistry.v1.DeleteSkillRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSkillMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists logical Skills available in a project.
+     * 
+ */ + default void listSkills( + com.google.cloud.agentregistry.v1.ListSkillsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSkillsMethod(), responseObserver); + } + + /** + * + * + *
+     * Custom deep-search method to filter by frontmatter or query SKILL.md text
+     * blobs.
+     * 
+ */ + default void searchSkills( + com.google.cloud.agentregistry.v1.SearchSkillsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchSkillsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new immutable revision and triggers validation pipelines.
+     * 
+ */ + default void createSkillRevision( + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSkillRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single immutable Revision.
+     * 
+ */ + default void getSkillRevision( + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSkillRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a specific revision (restricted to admins to purge accidentally
+     * committed secrets).
+     * 
+ */ + default void deleteSkillRevision( + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSkillRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all revisions belonging to a parent Skill.
+     * 
+ */ + default void listSkillRevisions( + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSkillRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches details of a specific Publisher.
+     * 
+ */ + default void getPublisher( + com.google.cloud.agentregistry.v1.GetPublisherRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPublisherMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all Publishers in a location.
+     * 
+ */ + default void listPublishers( + com.google.cloud.agentregistry.v1.ListPublishersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPublishersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AI Application.
+     * 
+ */ + default void getAiApplication( + com.google.cloud.agentregistry.v1.GetAiApplicationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAiApplicationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists AI Applications in a given project and location.
+     * 
+ */ + default void listAiApplications( + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAiApplicationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Agent under an AI Application.
+     * 
+ */ + default void getAiApplicationAgent( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAiApplicationAgentMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Agents under an AI Application.
+     * 
+ */ + default void listAiApplicationAgents( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAiApplicationAgentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single McpServer under an AI Application.
+     * 
+ */ + default void getAiApplicationMcpServer( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAiApplicationMcpServerMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists McpServers under an AI Application.
+     * 
+ */ + default void listAiApplicationMcpServers( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAiApplicationMcpServersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Finding.
+     * 
+ */ + default void getFinding( + com.google.cloud.agentregistry.v1.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Findings in a given project and location.
+     * 
+ */ + default void listFindings( + com.google.cloud.agentregistry.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Endpoint under an AI Application.
+     * 
+ */ + default void getAiApplicationEndpoint( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAiApplicationEndpointMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Endpoints under an AI Application.
+     * 
+ */ + default void listAiApplicationEndpoints( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAiApplicationEndpointsMethod(), responseObserver); + } + + /** + * + * + *
+     * =========================================================================
+     * # Skill Encryption Spec Service Methods
+     * Gets the customer-managed encryption key (CMEK) configuration for Skills in
+     * a specific project and location.
+     * 
+ */ + default void getSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSkillEncryptionSpecMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the customer-managed encryption key (CMEK) configuration for Skills
+     * in a specific project and location.
+     * This method is only allowed when no Skills exist in the target project and
+     * location. If any Skill already exists in the location, the request fails
+     * with `FAILED_PRECONDITION`.
+     * 
+ */ + default void updateSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSkillEncryptionSpecMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AgentRegistry. + * + *
+   * Service for managing Agent Registry resources.
+   * 
+ */ + public abstract static class AgentRegistryImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AgentRegistryGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AgentRegistry. + * + *
+   * Service for managing Agent Registry resources.
+   * 
+ */ + public static final class AgentRegistryStub + extends io.grpc.stub.AbstractAsyncStub { + private AgentRegistryStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentRegistryStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Agents in a given project and location.
+     * 
+ */ + public void listAgents( + com.google.cloud.agentregistry.v1.ListAgentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAgentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Searches Agents in a given project and location.
+     * 
+ */ + public void searchAgents( + com.google.cloud.agentregistry.v1.SearchAgentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Agent.
+     * 
+ */ + public void getAgent( + com.google.cloud.agentregistry.v1.GetAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAgentMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Endpoints in a given project and location.
+     * 
+ */ + public void listEndpoints( + com.google.cloud.agentregistry.v1.ListEndpointsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEndpointsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Endpoint.
+     * 
+ */ + public void getEndpoint( + com.google.cloud.agentregistry.v1.GetEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists McpServers in a given project and location.
+     * 
+ */ + public void listMcpServers( + com.google.cloud.agentregistry.v1.ListMcpServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMcpServersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches McpServers in a given project and location.
+     * 
+ */ + public void searchMcpServers( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchMcpServersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single McpServer.
+     * 
+ */ + public void getMcpServer( + com.google.cloud.agentregistry.v1.GetMcpServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMcpServerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Services in a given project and location.
+     * 
+ */ + public void listServices( + com.google.cloud.agentregistry.v1.ListServicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Service.
+     * 
+ */ + public void getService( + com.google.cloud.agentregistry.v1.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public void createService( + com.google.cloud.agentregistry.v1.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Service.
+     * 
+ */ + public void updateService( + com.google.cloud.agentregistry.v1.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Service.
+     * 
+ */ + public void deleteService( + com.google.cloud.agentregistry.v1.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Bindings in a given project and location.
+     * 
+ */ + public void listBindings( + com.google.cloud.agentregistry.v1.ListBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Binding.
+     * 
+ */ + public void getBinding( + com.google.cloud.agentregistry.v1.GetBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Binding in a given project and location.
+     * 
+ */ + public void createBinding( + com.google.cloud.agentregistry.v1.CreateBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Binding.
+     * 
+ */ + public void updateBinding( + com.google.cloud.agentregistry.v1.UpdateBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Binding.
+     * 
+ */ + public void deleteBinding( + com.google.cloud.agentregistry.v1.DeleteBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches available Bindings.
+     * 
+ */ + public void fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchAvailableBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * =========================================================================
+     * # Skills Collection APIs
+     * Creates a Skill resource container, optionally publishing the initial
+     * SkillRevision inline in a single, atomic CRUD roundtrip.
+     * 
+ */ + public void createSkill( + com.google.cloud.agentregistry.v1.CreateSkillRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSkillMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches the active configuration and metadata of a Skill.
+     * 
+ */ + public void getSkill( + com.google.cloud.agentregistry.v1.GetSkillRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSkillMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates Skill metadata or overrides active pointers/state using REST
+     * standard PATCH.
+     * 
+ */ + public void updateSkill( + com.google.cloud.agentregistry.v1.UpdateSkillRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSkillMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Skill container along with all its revisions.
+     * 
+ */ + public void deleteSkill( + com.google.cloud.agentregistry.v1.DeleteSkillRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSkillMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists logical Skills available in a project.
+     * 
+ */ + public void listSkills( + com.google.cloud.agentregistry.v1.ListSkillsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSkillsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Custom deep-search method to filter by frontmatter or query SKILL.md text
+     * blobs.
+     * 
+ */ + public void searchSkills( + com.google.cloud.agentregistry.v1.SearchSkillsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchSkillsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new immutable revision and triggers validation pipelines.
+     * 
+ */ + public void createSkillRevision( + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSkillRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single immutable Revision.
+     * 
+ */ + public void getSkillRevision( + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSkillRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a specific revision (restricted to admins to purge accidentally
+     * committed secrets).
+     * 
+ */ + public void deleteSkillRevision( + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSkillRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all revisions belonging to a parent Skill.
+     * 
+ */ + public void listSkillRevisions( + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSkillRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches details of a specific Publisher.
+     * 
+ */ + public void getPublisher( + com.google.cloud.agentregistry.v1.GetPublisherRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPublisherMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all Publishers in a location.
+     * 
+ */ + public void listPublishers( + com.google.cloud.agentregistry.v1.ListPublishersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPublishersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AI Application.
+     * 
+ */ + public void getAiApplication( + com.google.cloud.agentregistry.v1.GetAiApplicationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAiApplicationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists AI Applications in a given project and location.
+     * 
+ */ + public void listAiApplications( + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAiApplicationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Agent under an AI Application.
+     * 
+ */ + public void getAiApplicationAgent( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAiApplicationAgentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Agents under an AI Application.
+     * 
+ */ + public void listAiApplicationAgents( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAiApplicationAgentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single McpServer under an AI Application.
+     * 
+ */ + public void getAiApplicationMcpServer( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAiApplicationMcpServerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists McpServers under an AI Application.
+     * 
+ */ + public void listAiApplicationMcpServers( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAiApplicationMcpServersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Finding.
+     * 
+ */ + public void getFinding( + com.google.cloud.agentregistry.v1.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Findings in a given project and location.
+     * 
+ */ + public void listFindings( + com.google.cloud.agentregistry.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Endpoint under an AI Application.
+     * 
+ */ + public void getAiApplicationEndpoint( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAiApplicationEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Endpoints under an AI Application.
+     * 
+ */ + public void listAiApplicationEndpoints( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAiApplicationEndpointsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * =========================================================================
+     * # Skill Encryption Spec Service Methods
+     * Gets the customer-managed encryption key (CMEK) configuration for Skills in
+     * a specific project and location.
+     * 
+ */ + public void getSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSkillEncryptionSpecMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the customer-managed encryption key (CMEK) configuration for Skills
+     * in a specific project and location.
+     * This method is only allowed when no Skills exist in the target project and
+     * location. If any Skill already exists in the location, the request fails
+     * with `FAILED_PRECONDITION`.
+     * 
+ */ + public void updateSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSkillEncryptionSpecMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AgentRegistry. + * + *
+   * Service for managing Agent Registry resources.
+   * 
+ */ + public static final class AgentRegistryBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AgentRegistryBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentRegistryBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Agents in a given project and location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.ListAgentsResponse listAgents( + com.google.cloud.agentregistry.v1.ListAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAgentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches Agents in a given project and location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.SearchAgentsResponse searchAgents( + com.google.cloud.agentregistry.v1.SearchAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchAgentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Agent.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.Agent getAgent( + com.google.cloud.agentregistry.v1.GetAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Endpoints in a given project and location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.ListEndpointsResponse listEndpoints( + com.google.cloud.agentregistry.v1.ListEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Endpoint.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.Endpoint getEndpoint( + com.google.cloud.agentregistry.v1.GetEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists McpServers in a given project and location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.ListMcpServersResponse listMcpServers( + com.google.cloud.agentregistry.v1.ListMcpServersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMcpServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches McpServers in a given project and location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.SearchMcpServersResponse searchMcpServers( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchMcpServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single McpServer.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.McpServer getMcpServer( + com.google.cloud.agentregistry.v1.GetMcpServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMcpServerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Services in a given project and location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.ListServicesResponse listServices( + com.google.cloud.agentregistry.v1.ListServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Service.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.Service getService( + com.google.cloud.agentregistry.v1.GetServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createService( + com.google.cloud.agentregistry.v1.CreateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Service.
+     * 
+ */ + public com.google.longrunning.Operation updateService( + com.google.cloud.agentregistry.v1.UpdateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Service.
+     * 
+ */ + public com.google.longrunning.Operation deleteService( + com.google.cloud.agentregistry.v1.DeleteServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AgentRegistryBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentRegistryBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentRegistryBlockingStub(channel, callOptions); - } - }; - return AgentRegistryBlockingStub.newStub(factory, channel); - } + /** + * + * + *
+     * Lists Bindings in a given project and location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.ListBindingsResponse listBindings( + com.google.cloud.agentregistry.v1.ListBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBindingsMethod(), getCallOptions(), request); + } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AgentRegistryFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentRegistryFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentRegistryFutureStub(channel, callOptions); - } - }; - return AgentRegistryFutureStub.newStub(factory, channel); - } + /** + * + * + *
+     * Gets details of a single Binding.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.Binding getBinding( + com.google.cloud.agentregistry.v1.GetBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBindingMethod(), getCallOptions(), request); + } - /** - * - * - *
-   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
-   * 
- */ - public interface AsyncService { + /** + * + * + *
+     * Creates a new Binding in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createBinding( + com.google.cloud.agentregistry.v1.CreateBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateBindingMethod(), getCallOptions(), request); + } /** * * *
-     * Lists Agents in a given project and location.
+     * Updates the parameters of a single Binding.
      * 
*/ - default void listAgents( - com.google.cloud.agentregistry.v1.ListAgentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAgentsMethod(), responseObserver); + public com.google.longrunning.Operation updateBinding( + com.google.cloud.agentregistry.v1.UpdateBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateBindingMethod(), getCallOptions(), request); } /** * * *
-     * Searches Agents in a given project and location.
+     * Deletes a single Binding.
      * 
*/ - default void searchAgents( - com.google.cloud.agentregistry.v1.SearchAgentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchAgentsMethod(), responseObserver); + public com.google.longrunning.Operation deleteBinding( + com.google.cloud.agentregistry.v1.DeleteBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteBindingMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Agent.
+     * Fetches available Bindings.
      * 
*/ - default void getAgent( - com.google.cloud.agentregistry.v1.GetAgentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchAvailableBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Lists Endpoints in a given project and location.
+     * =========================================================================
+     * # Skills Collection APIs
+     * Creates a Skill resource container, optionally publishing the initial
+     * SkillRevision inline in a single, atomic CRUD roundtrip.
      * 
*/ - default void listEndpoints( - com.google.cloud.agentregistry.v1.ListEndpointsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEndpointsMethod(), responseObserver); + public com.google.longrunning.Operation createSkill( + com.google.cloud.agentregistry.v1.CreateSkillRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateSkillMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Endpoint.
+     * Fetches the active configuration and metadata of a Skill.
      * 
*/ - default void getEndpoint( - com.google.cloud.agentregistry.v1.GetEndpointRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEndpointMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.Skill getSkill( + com.google.cloud.agentregistry.v1.GetSkillRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSkillMethod(), getCallOptions(), request); } /** * * *
-     * Lists McpServers in a given project and location.
+     * Updates Skill metadata or overrides active pointers/state using REST
+     * standard PATCH.
      * 
*/ - default void listMcpServers( - com.google.cloud.agentregistry.v1.ListMcpServersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMcpServersMethod(), responseObserver); + public com.google.longrunning.Operation updateSkill( + com.google.cloud.agentregistry.v1.UpdateSkillRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateSkillMethod(), getCallOptions(), request); } /** * * *
-     * Searches McpServers in a given project and location.
+     * Deletes a Skill container along with all its revisions.
      * 
*/ - default void searchMcpServers( - com.google.cloud.agentregistry.v1.SearchMcpServersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchMcpServersMethod(), responseObserver); + public com.google.longrunning.Operation deleteSkill( + com.google.cloud.agentregistry.v1.DeleteSkillRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteSkillMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single McpServer.
+     * Lists logical Skills available in a project.
      * 
*/ - default void getMcpServer( - com.google.cloud.agentregistry.v1.GetMcpServerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMcpServerMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.ListSkillsResponse listSkills( + com.google.cloud.agentregistry.v1.ListSkillsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListSkillsMethod(), getCallOptions(), request); } /** * * *
-     * Lists Services in a given project and location.
+     * Custom deep-search method to filter by frontmatter or query SKILL.md text
+     * blobs.
      * 
*/ - default void listServices( - com.google.cloud.agentregistry.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListServicesMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.SearchSkillsResponse searchSkills( + com.google.cloud.agentregistry.v1.SearchSkillsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchSkillsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new immutable revision and triggers validation pipelines.
+     * 
+ */ + public com.google.longrunning.Operation createSkillRevision( + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateSkillRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single immutable Revision.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.SkillRevision getSkillRevision( + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSkillRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a specific revision (restricted to admins to purge accidentally
+     * committed secrets).
+     * 
+ */ + public com.google.longrunning.Operation deleteSkillRevision( + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteSkillRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all revisions belonging to a parent Skill.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse listSkillRevisions( + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListSkillRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches details of a specific Publisher.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.Publisher getPublisher( + com.google.cloud.agentregistry.v1.GetPublisherRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetPublisherMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all Publishers in a location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.ListPublishersResponse listPublishers( + com.google.cloud.agentregistry.v1.ListPublishersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListPublishersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AI Application.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.AiApplication getAiApplication( + com.google.cloud.agentregistry.v1.GetAiApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAiApplicationMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Service.
+     * Lists AI Applications in a given project and location.
      * 
*/ - default void getService( - com.google.cloud.agentregistry.v1.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.ListAiApplicationsResponse listAiApplications( + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAiApplicationsMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new Service in a given project and location.
+     * Gets details of a single Agent under an AI Application.
      * 
*/ - default void createService( - com.google.cloud.agentregistry.v1.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateServiceMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.Agent getAiApplicationAgent( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAiApplicationAgentMethod(), getCallOptions(), request); } /** * * *
-     * Updates the parameters of a single Service.
+     * Lists Agents under an AI Application.
      * 
*/ - default void updateService( - com.google.cloud.agentregistry.v1.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateServiceMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse + listAiApplicationAgents( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAiApplicationAgentsMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single Service.
+     * Gets details of a single McpServer under an AI Application.
      * 
*/ - default void deleteService( - com.google.cloud.agentregistry.v1.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteServiceMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.McpServer getAiApplicationMcpServer( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAiApplicationMcpServerMethod(), getCallOptions(), request); } /** * * *
-     * Lists Bindings in a given project and location.
+     * Lists McpServers under an AI Application.
      * 
*/ - default void listBindings( - com.google.cloud.agentregistry.v1.ListBindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBindingsMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + listAiApplicationMcpServers( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAiApplicationMcpServersMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Binding.
+     * Gets details of a single Finding.
      * 
*/ - default void getBinding( - com.google.cloud.agentregistry.v1.GetBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBindingMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.Finding getFinding( + com.google.cloud.agentregistry.v1.GetFindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new Binding in a given project and location.
+     * Lists Findings in a given project and location.
      * 
*/ - default void createBinding( - com.google.cloud.agentregistry.v1.CreateBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBindingMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.ListFindingsResponse listFindings( + com.google.cloud.agentregistry.v1.ListFindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); } /** * * *
-     * Updates the parameters of a single Binding.
+     * Gets details of a single Endpoint under an AI Application.
      * 
*/ - default void updateBinding( - com.google.cloud.agentregistry.v1.UpdateBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBindingMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.Endpoint getAiApplicationEndpoint( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAiApplicationEndpointMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single Binding.
+     * Lists Endpoints under an AI Application.
      * 
*/ - default void deleteBinding( - com.google.cloud.agentregistry.v1.DeleteBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBindingMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + listAiApplicationEndpoints( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAiApplicationEndpointsMethod(), getCallOptions(), request); } /** * * *
-     * Fetches available Bindings.
+     * =========================================================================
+     * # Skill Encryption Spec Service Methods
+     * Gets the customer-managed encryption key (CMEK) configuration for Skills in
+     * a specific project and location.
      * 
*/ - default void fetchAvailableBindings( - com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchAvailableBindingsMethod(), responseObserver); + public com.google.cloud.agentregistry.v1.SkillEncryptionSpec getSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSkillEncryptionSpecMethod(), getCallOptions(), request); } - } - - /** - * Base class for the server implementation of the service AgentRegistry. - * - *
-   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
-   * 
- */ - public abstract static class AgentRegistryImplBase - implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return AgentRegistryGrpc.bindService(this); + /** + * + * + *
+     * Updates the customer-managed encryption key (CMEK) configuration for Skills
+     * in a specific project and location.
+     * This method is only allowed when no Skills exist in the target project and
+     * location. If any Skill already exists in the location, the request fails
+     * with `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.longrunning.Operation updateSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateSkillEncryptionSpecMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do asynchronous rpc calls to service AgentRegistry. + * A stub to allow clients to do limited synchronous rpc calls to service AgentRegistry. * *
-   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
+   * Service for managing Agent Registry resources.
    * 
*/ - public static final class AgentRegistryStub - extends io.grpc.stub.AbstractAsyncStub { - private AgentRegistryStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AgentRegistryBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AgentRegistryBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AgentRegistryStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentRegistryStub(channel, callOptions); + protected AgentRegistryBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryBlockingStub(channel, callOptions); } /** @@ -1276,12 +4138,10 @@ protected AgentRegistryStub build(io.grpc.Channel channel, io.grpc.CallOptions c * Lists Agents in a given project and location. * */ - public void listAgents( - com.google.cloud.agentregistry.v1.ListAgentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAgentsMethod(), getCallOptions()), request, responseObserver); + public com.google.cloud.agentregistry.v1.ListAgentsResponse listAgents( + com.google.cloud.agentregistry.v1.ListAgentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAgentsMethod(), getCallOptions(), request); } /** @@ -1291,14 +4151,10 @@ public void listAgents( * Searches Agents in a given project and location. * */ - public void searchAgents( - com.google.cloud.agentregistry.v1.SearchAgentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.agentregistry.v1.SearchAgentsResponse searchAgents( + com.google.cloud.agentregistry.v1.SearchAgentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAgentsMethod(), getCallOptions(), request); } /** @@ -1308,11 +4164,10 @@ public void searchAgents( * Gets details of a single Agent. * */ - public void getAgent( - com.google.cloud.agentregistry.v1.GetAgentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAgentMethod(), getCallOptions()), request, responseObserver); + public com.google.cloud.agentregistry.v1.Agent getAgent( + com.google.cloud.agentregistry.v1.GetAgentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentMethod(), getCallOptions(), request); } /** @@ -1322,14 +4177,10 @@ public void getAgent( * Lists Endpoints in a given project and location. * */ - public void listEndpoints( - com.google.cloud.agentregistry.v1.ListEndpointsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEndpointsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.agentregistry.v1.ListEndpointsResponse listEndpoints( + com.google.cloud.agentregistry.v1.ListEndpointsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); } /** @@ -1339,13 +4190,10 @@ public void listEndpoints( * Gets details of a single Endpoint. * */ - public void getEndpoint( - com.google.cloud.agentregistry.v1.GetEndpointRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEndpointMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.agentregistry.v1.Endpoint getEndpoint( + com.google.cloud.agentregistry.v1.GetEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); } /** @@ -1355,14 +4203,10 @@ public void getEndpoint( * Lists McpServers in a given project and location. * */ - public void listMcpServers( - com.google.cloud.agentregistry.v1.ListMcpServersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMcpServersMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.agentregistry.v1.ListMcpServersResponse listMcpServers( + com.google.cloud.agentregistry.v1.ListMcpServersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMcpServersMethod(), getCallOptions(), request); } /** @@ -1372,511 +4216,514 @@ public void listMcpServers( * Searches McpServers in a given project and location. * */ - public void searchMcpServers( - com.google.cloud.agentregistry.v1.SearchMcpServersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchMcpServersMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.agentregistry.v1.SearchMcpServersResponse searchMcpServers( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMcpServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single McpServer.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.McpServer getMcpServer( + com.google.cloud.agentregistry.v1.GetMcpServerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMcpServerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Services in a given project and location.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.ListServicesResponse listServices( + com.google.cloud.agentregistry.v1.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Service.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.Service getService( + com.google.cloud.agentregistry.v1.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Service in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createService( + com.google.cloud.agentregistry.v1.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Service.
+     * 
+ */ + public com.google.longrunning.Operation updateService( + com.google.cloud.agentregistry.v1.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single McpServer.
+     * Deletes a single Service.
      * 
*/ - public void getMcpServer( - com.google.cloud.agentregistry.v1.GetMcpServerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMcpServerMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteService( + com.google.cloud.agentregistry.v1.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } /** * * *
-     * Lists Services in a given project and location.
+     * Lists Bindings in a given project and location.
      * 
*/ - public void listServices( - com.google.cloud.agentregistry.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.agentregistry.v1.ListBindingsResponse listBindings( + com.google.cloud.agentregistry.v1.ListBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Service.
+     * Gets details of a single Binding.
      * 
*/ - public void getService( - com.google.cloud.agentregistry.v1.GetServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); + public com.google.cloud.agentregistry.v1.Binding getBinding( + com.google.cloud.agentregistry.v1.GetBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBindingMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new Service in a given project and location.
+     * Creates a new Binding in a given project and location.
      * 
*/ - public void createService( - com.google.cloud.agentregistry.v1.CreateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createBinding( + com.google.cloud.agentregistry.v1.CreateBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBindingMethod(), getCallOptions(), request); } /** * * *
-     * Updates the parameters of a single Service.
+     * Updates the parameters of a single Binding.
      * 
*/ - public void updateService( - com.google.cloud.agentregistry.v1.UpdateServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateBinding( + com.google.cloud.agentregistry.v1.UpdateBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBindingMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single Service.
+     * Deletes a single Binding.
      * 
*/ - public void deleteService( - com.google.cloud.agentregistry.v1.DeleteServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteBinding( + com.google.cloud.agentregistry.v1.DeleteBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBindingMethod(), getCallOptions(), request); } /** * * *
-     * Lists Bindings in a given project and location.
+     * Fetches available Bindings.
      * 
*/ - public void listBindings( - com.google.cloud.agentregistry.v1.ListBindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBindingsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchAvailableBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Binding.
+     * =========================================================================
+     * # Skills Collection APIs
+     * Creates a Skill resource container, optionally publishing the initial
+     * SkillRevision inline in a single, atomic CRUD roundtrip.
      * 
*/ - public void getBinding( - com.google.cloud.agentregistry.v1.GetBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBindingMethod(), getCallOptions()), request, responseObserver); + public com.google.longrunning.Operation createSkill( + com.google.cloud.agentregistry.v1.CreateSkillRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSkillMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new Binding in a given project and location.
+     * Fetches the active configuration and metadata of a Skill.
      * 
*/ - public void createBinding( - com.google.cloud.agentregistry.v1.CreateBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBindingMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.agentregistry.v1.Skill getSkill( + com.google.cloud.agentregistry.v1.GetSkillRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSkillMethod(), getCallOptions(), request); } /** * * *
-     * Updates the parameters of a single Binding.
+     * Updates Skill metadata or overrides active pointers/state using REST
+     * standard PATCH.
      * 
*/ - public void updateBinding( - com.google.cloud.agentregistry.v1.UpdateBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBindingMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateSkill( + com.google.cloud.agentregistry.v1.UpdateSkillRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSkillMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single Binding.
+     * Deletes a Skill container along with all its revisions.
      * 
*/ - public void deleteBinding( - com.google.cloud.agentregistry.v1.DeleteBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBindingMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteSkill( + com.google.cloud.agentregistry.v1.DeleteSkillRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSkillMethod(), getCallOptions(), request); } /** * * *
-     * Fetches available Bindings.
+     * Lists logical Skills available in a project.
      * 
*/ - public void fetchAvailableBindings( - com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchAvailableBindingsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service AgentRegistry. - * - *
-   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
-   * 
- */ - public static final class AgentRegistryBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private AgentRegistryBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AgentRegistryBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentRegistryBlockingV2Stub(channel, callOptions); + public com.google.cloud.agentregistry.v1.ListSkillsResponse listSkills( + com.google.cloud.agentregistry.v1.ListSkillsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSkillsMethod(), getCallOptions(), request); } /** * * *
-     * Lists Agents in a given project and location.
+     * Custom deep-search method to filter by frontmatter or query SKILL.md text
+     * blobs.
      * 
*/ - public com.google.cloud.agentregistry.v1.ListAgentsResponse listAgents( - com.google.cloud.agentregistry.v1.ListAgentsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListAgentsMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.SearchSkillsResponse searchSkills( + com.google.cloud.agentregistry.v1.SearchSkillsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchSkillsMethod(), getCallOptions(), request); } /** * * *
-     * Searches Agents in a given project and location.
+     * Creates a new immutable revision and triggers validation pipelines.
      * 
*/ - public com.google.cloud.agentregistry.v1.SearchAgentsResponse searchAgents( - com.google.cloud.agentregistry.v1.SearchAgentsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSearchAgentsMethod(), getCallOptions(), request); + public com.google.longrunning.Operation createSkillRevision( + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSkillRevisionMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Agent.
+     * Gets details of a single immutable Revision.
      * 
*/ - public com.google.cloud.agentregistry.v1.Agent getAgent( - com.google.cloud.agentregistry.v1.GetAgentRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetAgentMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.SkillRevision getSkillRevision( + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSkillRevisionMethod(), getCallOptions(), request); } /** * * *
-     * Lists Endpoints in a given project and location.
+     * Deletes a specific revision (restricted to admins to purge accidentally
+     * committed secrets).
      * 
*/ - public com.google.cloud.agentregistry.v1.ListEndpointsResponse listEndpoints( - com.google.cloud.agentregistry.v1.ListEndpointsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListEndpointsMethod(), getCallOptions(), request); + public com.google.longrunning.Operation deleteSkillRevision( + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSkillRevisionMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Endpoint.
+     * Lists all revisions belonging to a parent Skill.
      * 
*/ - public com.google.cloud.agentregistry.v1.Endpoint getEndpoint( - com.google.cloud.agentregistry.v1.GetEndpointRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetEndpointMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse listSkillRevisions( + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSkillRevisionsMethod(), getCallOptions(), request); } /** * * *
-     * Lists McpServers in a given project and location.
+     * Fetches details of a specific Publisher.
      * 
*/ - public com.google.cloud.agentregistry.v1.ListMcpServersResponse listMcpServers( - com.google.cloud.agentregistry.v1.ListMcpServersRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListMcpServersMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.Publisher getPublisher( + com.google.cloud.agentregistry.v1.GetPublisherRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPublisherMethod(), getCallOptions(), request); } /** * * *
-     * Searches McpServers in a given project and location.
+     * Lists all Publishers in a location.
      * 
*/ - public com.google.cloud.agentregistry.v1.SearchMcpServersResponse searchMcpServers( - com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSearchMcpServersMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.ListPublishersResponse listPublishers( + com.google.cloud.agentregistry.v1.ListPublishersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPublishersMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single McpServer.
+     * Gets details of a single AI Application.
      * 
*/ - public com.google.cloud.agentregistry.v1.McpServer getMcpServer( - com.google.cloud.agentregistry.v1.GetMcpServerRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetMcpServerMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.AiApplication getAiApplication( + com.google.cloud.agentregistry.v1.GetAiApplicationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAiApplicationMethod(), getCallOptions(), request); } /** * * *
-     * Lists Services in a given project and location.
+     * Lists AI Applications in a given project and location.
      * 
*/ - public com.google.cloud.agentregistry.v1.ListServicesResponse listServices( - com.google.cloud.agentregistry.v1.ListServicesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.ListAiApplicationsResponse listAiApplications( + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAiApplicationsMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Service.
+     * Gets details of a single Agent under an AI Application.
      * 
*/ - public com.google.cloud.agentregistry.v1.Service getService( - com.google.cloud.agentregistry.v1.GetServiceRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.Agent getAiApplicationAgent( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAiApplicationAgentMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new Service in a given project and location.
+     * Lists Agents under an AI Application.
      * 
*/ - public com.google.longrunning.Operation createService( - com.google.cloud.agentregistry.v1.CreateServiceRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse + listAiApplicationAgents( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAiApplicationAgentsMethod(), getCallOptions(), request); } /** * * *
-     * Updates the parameters of a single Service.
+     * Gets details of a single McpServer under an AI Application.
      * 
*/ - public com.google.longrunning.Operation updateService( - com.google.cloud.agentregistry.v1.UpdateServiceRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.McpServer getAiApplicationMcpServer( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAiApplicationMcpServerMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single Service.
+     * Lists McpServers under an AI Application.
      * 
*/ - public com.google.longrunning.Operation deleteService( - com.google.cloud.agentregistry.v1.DeleteServiceRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + listAiApplicationMcpServers( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAiApplicationMcpServersMethod(), getCallOptions(), request); } /** * - * - *
-     * Lists Bindings in a given project and location.
-     * 
- */ - public com.google.cloud.agentregistry.v1.ListBindingsResponse listBindings( - com.google.cloud.agentregistry.v1.ListBindingsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListBindingsMethod(), getCallOptions(), request); + * + *
+     * Gets details of a single Finding.
+     * 
+ */ + public com.google.cloud.agentregistry.v1.Finding getFinding( + com.google.cloud.agentregistry.v1.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single Binding.
+     * Lists Findings in a given project and location.
      * 
*/ - public com.google.cloud.agentregistry.v1.Binding getBinding( - com.google.cloud.agentregistry.v1.GetBindingRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetBindingMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.ListFindingsResponse listFindings( + com.google.cloud.agentregistry.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new Binding in a given project and location.
+     * Gets details of a single Endpoint under an AI Application.
      * 
*/ - public com.google.longrunning.Operation createBinding( - com.google.cloud.agentregistry.v1.CreateBindingRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateBindingMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.Endpoint getAiApplicationEndpoint( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAiApplicationEndpointMethod(), getCallOptions(), request); } /** * * *
-     * Updates the parameters of a single Binding.
+     * Lists Endpoints under an AI Application.
      * 
*/ - public com.google.longrunning.Operation updateBinding( - com.google.cloud.agentregistry.v1.UpdateBindingRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateBindingMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + listAiApplicationEndpoints( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAiApplicationEndpointsMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single Binding.
+     * =========================================================================
+     * # Skill Encryption Spec Service Methods
+     * Gets the customer-managed encryption key (CMEK) configuration for Skills in
+     * a specific project and location.
      * 
*/ - public com.google.longrunning.Operation deleteBinding( - com.google.cloud.agentregistry.v1.DeleteBindingRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteBindingMethod(), getCallOptions(), request); + public com.google.cloud.agentregistry.v1.SkillEncryptionSpec getSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSkillEncryptionSpecMethod(), getCallOptions(), request); } /** * * *
-     * Fetches available Bindings.
+     * Updates the customer-managed encryption key (CMEK) configuration for Skills
+     * in a specific project and location.
+     * This method is only allowed when no Skills exist in the target project and
+     * location. If any Skill already exists in the location, the request fails
+     * with `FAILED_PRECONDITION`.
      * 
*/ - public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse fetchAvailableBindings( - com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getFetchAvailableBindingsMethod(), getCallOptions(), request); + public com.google.longrunning.Operation updateSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSkillEncryptionSpecMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do limited synchronous rpc calls to service AgentRegistry. + * A stub to allow clients to do ListenableFuture-style rpc calls to service AgentRegistry. * *
-   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
+   * Service for managing Agent Registry resources.
    * 
*/ - public static final class AgentRegistryBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AgentRegistryBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AgentRegistryFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AgentRegistryFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AgentRegistryBlockingStub build( + protected AgentRegistryFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentRegistryBlockingStub(channel, callOptions); + return new AgentRegistryFutureStub(channel, callOptions); } /** @@ -1886,10 +4733,11 @@ protected AgentRegistryBlockingStub build( * Lists Agents in a given project and location. * */ - public com.google.cloud.agentregistry.v1.ListAgentsResponse listAgents( - com.google.cloud.agentregistry.v1.ListAgentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAgentsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListAgentsResponse> + listAgents(com.google.cloud.agentregistry.v1.ListAgentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAgentsMethod(), getCallOptions()), request); } /** @@ -1899,10 +4747,11 @@ public com.google.cloud.agentregistry.v1.ListAgentsResponse listAgents( * Searches Agents in a given project and location. * */ - public com.google.cloud.agentregistry.v1.SearchAgentsResponse searchAgents( - com.google.cloud.agentregistry.v1.SearchAgentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchAgentsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.SearchAgentsResponse> + searchAgents(com.google.cloud.agentregistry.v1.SearchAgentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request); } /** @@ -1912,10 +4761,11 @@ public com.google.cloud.agentregistry.v1.SearchAgentsResponse searchAgents( * Gets details of a single Agent. * */ - public com.google.cloud.agentregistry.v1.Agent getAgent( - com.google.cloud.agentregistry.v1.GetAgentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAgentMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Agent> + getAgent(com.google.cloud.agentregistry.v1.GetAgentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); } /** @@ -1925,10 +4775,11 @@ public com.google.cloud.agentregistry.v1.Agent getAgent( * Lists Endpoints in a given project and location. * */ - public com.google.cloud.agentregistry.v1.ListEndpointsResponse listEndpoints( - com.google.cloud.agentregistry.v1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEndpointsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListEndpointsResponse> + listEndpoints(com.google.cloud.agentregistry.v1.ListEndpointsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); } /** @@ -1938,10 +4789,11 @@ public com.google.cloud.agentregistry.v1.ListEndpointsResponse listEndpoints( * Gets details of a single Endpoint. * */ - public com.google.cloud.agentregistry.v1.Endpoint getEndpoint( - com.google.cloud.agentregistry.v1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEndpointMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Endpoint> + getEndpoint(com.google.cloud.agentregistry.v1.GetEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); } /** @@ -1951,10 +4803,11 @@ public com.google.cloud.agentregistry.v1.Endpoint getEndpoint( * Lists McpServers in a given project and location. * */ - public com.google.cloud.agentregistry.v1.ListMcpServersResponse listMcpServers( - com.google.cloud.agentregistry.v1.ListMcpServersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMcpServersMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListMcpServersResponse> + listMcpServers(com.google.cloud.agentregistry.v1.ListMcpServersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMcpServersMethod(), getCallOptions()), request); } /** @@ -1964,10 +4817,11 @@ public com.google.cloud.agentregistry.v1.ListMcpServersResponse listMcpServers( * Searches McpServers in a given project and location. * */ - public com.google.cloud.agentregistry.v1.SearchMcpServersResponse searchMcpServers( - com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchMcpServersMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.SearchMcpServersResponse> + searchMcpServers(com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchMcpServersMethod(), getCallOptions()), request); } /** @@ -1977,10 +4831,11 @@ public com.google.cloud.agentregistry.v1.SearchMcpServersResponse searchMcpServe * Gets details of a single McpServer. * */ - public com.google.cloud.agentregistry.v1.McpServer getMcpServer( - com.google.cloud.agentregistry.v1.GetMcpServerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMcpServerMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.McpServer> + getMcpServer(com.google.cloud.agentregistry.v1.GetMcpServerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMcpServerMethod(), getCallOptions()), request); } /** @@ -1990,10 +4845,11 @@ public com.google.cloud.agentregistry.v1.McpServer getMcpServer( * Lists Services in a given project and location. * */ - public com.google.cloud.agentregistry.v1.ListServicesResponse listServices( - com.google.cloud.agentregistry.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListServicesResponse> + listServices(com.google.cloud.agentregistry.v1.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), request); } /** @@ -2003,10 +4859,11 @@ public com.google.cloud.agentregistry.v1.ListServicesResponse listServices( * Gets details of a single Service. * */ - public com.google.cloud.agentregistry.v1.Service getService( - com.google.cloud.agentregistry.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Service> + getService(com.google.cloud.agentregistry.v1.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); } /** @@ -2016,10 +4873,10 @@ public com.google.cloud.agentregistry.v1.Service getService( * Creates a new Service in a given project and location. * */ - public com.google.longrunning.Operation createService( - com.google.cloud.agentregistry.v1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createService(com.google.cloud.agentregistry.v1.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); } /** @@ -2029,10 +4886,10 @@ public com.google.longrunning.Operation createService( * Updates the parameters of a single Service. * */ - public com.google.longrunning.Operation updateService( - com.google.cloud.agentregistry.v1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateService(com.google.cloud.agentregistry.v1.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); } /** @@ -2042,10 +4899,10 @@ public com.google.longrunning.Operation updateService( * Deletes a single Service. * */ - public com.google.longrunning.Operation deleteService( - com.google.cloud.agentregistry.v1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteService(com.google.cloud.agentregistry.v1.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); } /** @@ -2055,10 +4912,11 @@ public com.google.longrunning.Operation deleteService( * Lists Bindings in a given project and location. * */ - public com.google.cloud.agentregistry.v1.ListBindingsResponse listBindings( - com.google.cloud.agentregistry.v1.ListBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBindingsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListBindingsResponse> + listBindings(com.google.cloud.agentregistry.v1.ListBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBindingsMethod(), getCallOptions()), request); } /** @@ -2068,10 +4926,11 @@ public com.google.cloud.agentregistry.v1.ListBindingsResponse listBindings( * Gets details of a single Binding. * */ - public com.google.cloud.agentregistry.v1.Binding getBinding( - com.google.cloud.agentregistry.v1.GetBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBindingMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Binding> + getBinding(com.google.cloud.agentregistry.v1.GetBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBindingMethod(), getCallOptions()), request); } /** @@ -2081,10 +4940,10 @@ public com.google.cloud.agentregistry.v1.Binding getBinding( * Creates a new Binding in a given project and location. * */ - public com.google.longrunning.Operation createBinding( - com.google.cloud.agentregistry.v1.CreateBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBindingMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createBinding(com.google.cloud.agentregistry.v1.CreateBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBindingMethod(), getCallOptions()), request); } /** @@ -2094,317 +4953,389 @@ public com.google.longrunning.Operation createBinding( * Updates the parameters of a single Binding. * */ - public com.google.longrunning.Operation updateBinding( - com.google.cloud.agentregistry.v1.UpdateBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBindingMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateBinding(com.google.cloud.agentregistry.v1.UpdateBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Binding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBinding(com.google.cloud.agentregistry.v1.DeleteBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetches available Bindings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchAvailableBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * =========================================================================
+     * # Skills Collection APIs
+     * Creates a Skill resource container, optionally publishing the initial
+     * SkillRevision inline in a single, atomic CRUD roundtrip.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSkill(com.google.cloud.agentregistry.v1.CreateSkillRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSkillMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetches the active configuration and metadata of a Skill.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Skill> + getSkill(com.google.cloud.agentregistry.v1.GetSkillRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSkillMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates Skill metadata or overrides active pointers/state using REST
+     * standard PATCH.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSkill(com.google.cloud.agentregistry.v1.UpdateSkillRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSkillMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a single Binding.
+     * Deletes a Skill container along with all its revisions.
      * 
*/ - public com.google.longrunning.Operation deleteBinding( - com.google.cloud.agentregistry.v1.DeleteBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBindingMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteSkill(com.google.cloud.agentregistry.v1.DeleteSkillRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSkillMethod(), getCallOptions()), request); } /** * * *
-     * Fetches available Bindings.
+     * Lists logical Skills available in a project.
      * 
*/ - public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse fetchAvailableBindings( - com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchAvailableBindingsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service AgentRegistry. - * - *
-   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
-   * 
- */ - public static final class AgentRegistryFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AgentRegistryFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AgentRegistryFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentRegistryFutureStub(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListSkillsResponse> + listSkills(com.google.cloud.agentregistry.v1.ListSkillsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSkillsMethod(), getCallOptions()), request); } /** * * *
-     * Lists Agents in a given project and location.
+     * Custom deep-search method to filter by frontmatter or query SKILL.md text
+     * blobs.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.ListAgentsResponse> - listAgents(com.google.cloud.agentregistry.v1.ListAgentsRequest request) { + com.google.cloud.agentregistry.v1.SearchSkillsResponse> + searchSkills(com.google.cloud.agentregistry.v1.SearchSkillsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAgentsMethod(), getCallOptions()), request); + getChannel().newCall(getSearchSkillsMethod(), getCallOptions()), request); } /** * * *
-     * Searches Agents in a given project and location.
+     * Creates a new immutable revision and triggers validation pipelines.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.SearchAgentsResponse> - searchAgents(com.google.cloud.agentregistry.v1.SearchAgentsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createSkillRevision(com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request); + getChannel().newCall(getCreateSkillRevisionMethod(), getCallOptions()), request); } /** * * *
-     * Gets details of a single Agent.
+     * Gets details of a single immutable Revision.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.Agent> - getAgent(com.google.cloud.agentregistry.v1.GetAgentRequest request) { + com.google.cloud.agentregistry.v1.SkillRevision> + getSkillRevision(com.google.cloud.agentregistry.v1.GetSkillRevisionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); + getChannel().newCall(getGetSkillRevisionMethod(), getCallOptions()), request); } /** * * *
-     * Lists Endpoints in a given project and location.
+     * Deletes a specific revision (restricted to admins to purge accidentally
+     * committed secrets).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.ListEndpointsResponse> - listEndpoints(com.google.cloud.agentregistry.v1.ListEndpointsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteSkillRevision(com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteSkillRevisionMethod(), getCallOptions()), request); } /** * * *
-     * Gets details of a single Endpoint.
+     * Lists all revisions belonging to a parent Skill.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.Endpoint> - getEndpoint(com.google.cloud.agentregistry.v1.GetEndpointRequest request) { + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse> + listSkillRevisions(com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); + getChannel().newCall(getListSkillRevisionsMethod(), getCallOptions()), request); } /** * * *
-     * Lists McpServers in a given project and location.
+     * Fetches details of a specific Publisher.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.ListMcpServersResponse> - listMcpServers(com.google.cloud.agentregistry.v1.ListMcpServersRequest request) { + com.google.cloud.agentregistry.v1.Publisher> + getPublisher(com.google.cloud.agentregistry.v1.GetPublisherRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMcpServersMethod(), getCallOptions()), request); + getChannel().newCall(getGetPublisherMethod(), getCallOptions()), request); } /** * * *
-     * Searches McpServers in a given project and location.
+     * Lists all Publishers in a location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.SearchMcpServersResponse> - searchMcpServers(com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) { + com.google.cloud.agentregistry.v1.ListPublishersResponse> + listPublishers(com.google.cloud.agentregistry.v1.ListPublishersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchMcpServersMethod(), getCallOptions()), request); + getChannel().newCall(getListPublishersMethod(), getCallOptions()), request); } /** * * *
-     * Gets details of a single McpServer.
+     * Gets details of a single AI Application.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.McpServer> - getMcpServer(com.google.cloud.agentregistry.v1.GetMcpServerRequest request) { + com.google.cloud.agentregistry.v1.AiApplication> + getAiApplication(com.google.cloud.agentregistry.v1.GetAiApplicationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMcpServerMethod(), getCallOptions()), request); + getChannel().newCall(getGetAiApplicationMethod(), getCallOptions()), request); } /** * * *
-     * Lists Services in a given project and location.
+     * Lists AI Applications in a given project and location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.ListServicesResponse> - listServices(com.google.cloud.agentregistry.v1.ListServicesRequest request) { + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse> + listAiApplications(com.google.cloud.agentregistry.v1.ListAiApplicationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); + getChannel().newCall(getListAiApplicationsMethod(), getCallOptions()), request); } /** * * *
-     * Gets details of a single Service.
+     * Gets details of a single Agent under an AI Application.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.Service> - getService(com.google.cloud.agentregistry.v1.GetServiceRequest request) { + com.google.cloud.agentregistry.v1.Agent> + getAiApplicationAgent( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); + getChannel().newCall(getGetAiApplicationAgentMethod(), getCallOptions()), request); } /** * * *
-     * Creates a new Service in a given project and location.
+     * Lists Agents under an AI Application.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createService(com.google.cloud.agentregistry.v1.CreateServiceRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse> + listAiApplicationAgents( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); + getChannel().newCall(getListAiApplicationAgentsMethod(), getCallOptions()), request); } /** * * *
-     * Updates the parameters of a single Service.
+     * Gets details of a single McpServer under an AI Application.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateService(com.google.cloud.agentregistry.v1.UpdateServiceRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.McpServer> + getAiApplicationMcpServer( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); + getChannel().newCall(getGetAiApplicationMcpServerMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a single Service.
+     * Lists McpServers under an AI Application.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteService(com.google.cloud.agentregistry.v1.DeleteServiceRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse> + listAiApplicationMcpServers( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); + getChannel().newCall(getListAiApplicationMcpServersMethod(), getCallOptions()), request); } /** * * *
-     * Lists Bindings in a given project and location.
+     * Gets details of a single Finding.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.ListBindingsResponse> - listBindings(com.google.cloud.agentregistry.v1.ListBindingsRequest request) { + com.google.cloud.agentregistry.v1.Finding> + getFinding(com.google.cloud.agentregistry.v1.GetFindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBindingsMethod(), getCallOptions()), request); + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); } /** * * *
-     * Gets details of a single Binding.
+     * Lists Findings in a given project and location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.Binding> - getBinding(com.google.cloud.agentregistry.v1.GetBindingRequest request) { + com.google.cloud.agentregistry.v1.ListFindingsResponse> + listFindings(com.google.cloud.agentregistry.v1.ListFindingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBindingMethod(), getCallOptions()), request); + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); } /** * * *
-     * Creates a new Binding in a given project and location.
+     * Gets details of a single Endpoint under an AI Application.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createBinding(com.google.cloud.agentregistry.v1.CreateBindingRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Endpoint> + getAiApplicationEndpoint( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBindingMethod(), getCallOptions()), request); + getChannel().newCall(getGetAiApplicationEndpointMethod(), getCallOptions()), request); } /** * * *
-     * Updates the parameters of a single Binding.
+     * Lists Endpoints under an AI Application.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateBinding(com.google.cloud.agentregistry.v1.UpdateBindingRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse> + listAiApplicationEndpoints( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBindingMethod(), getCallOptions()), request); + getChannel().newCall(getListAiApplicationEndpointsMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a single Binding.
+     * =========================================================================
+     * # Skill Encryption Spec Service Methods
+     * Gets the customer-managed encryption key (CMEK) configuration for Skills in
+     * a specific project and location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteBinding(com.google.cloud.agentregistry.v1.DeleteBindingRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.SkillEncryptionSpec> + getSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBindingMethod(), getCallOptions()), request); + getChannel().newCall(getGetSkillEncryptionSpecMethod(), getCallOptions()), request); } /** * * *
-     * Fetches available Bindings.
+     * Updates the customer-managed encryption key (CMEK) configuration for Skills
+     * in a specific project and location.
+     * This method is only allowed when no Skills exist in the target project and
+     * location. If any Skill already exists in the location, the request fails
+     * with `FAILED_PRECONDITION`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> - fetchAvailableBindings( - com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchAvailableBindingsMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateSkillEncryptionSpecMethod(), getCallOptions()), request); } } @@ -2427,6 +5358,30 @@ protected AgentRegistryFutureStub build( private static final int METHODID_UPDATE_BINDING = 16; private static final int METHODID_DELETE_BINDING = 17; private static final int METHODID_FETCH_AVAILABLE_BINDINGS = 18; + private static final int METHODID_CREATE_SKILL = 19; + private static final int METHODID_GET_SKILL = 20; + private static final int METHODID_UPDATE_SKILL = 21; + private static final int METHODID_DELETE_SKILL = 22; + private static final int METHODID_LIST_SKILLS = 23; + private static final int METHODID_SEARCH_SKILLS = 24; + private static final int METHODID_CREATE_SKILL_REVISION = 25; + private static final int METHODID_GET_SKILL_REVISION = 26; + private static final int METHODID_DELETE_SKILL_REVISION = 27; + private static final int METHODID_LIST_SKILL_REVISIONS = 28; + private static final int METHODID_GET_PUBLISHER = 29; + private static final int METHODID_LIST_PUBLISHERS = 30; + private static final int METHODID_GET_AI_APPLICATION = 31; + private static final int METHODID_LIST_AI_APPLICATIONS = 32; + private static final int METHODID_GET_AI_APPLICATION_AGENT = 33; + private static final int METHODID_LIST_AI_APPLICATION_AGENTS = 34; + private static final int METHODID_GET_AI_APPLICATION_MCP_SERVER = 35; + private static final int METHODID_LIST_AI_APPLICATION_MCP_SERVERS = 36; + private static final int METHODID_GET_FINDING = 37; + private static final int METHODID_LIST_FINDINGS = 38; + private static final int METHODID_GET_AI_APPLICATION_ENDPOINT = 39; + private static final int METHODID_LIST_AI_APPLICATION_ENDPOINTS = 40; + private static final int METHODID_GET_SKILL_ENCRYPTION_SPEC = 41; + private static final int METHODID_UPDATE_SKILL_ENCRYPTION_SPEC = 42; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2556,6 +5511,150 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse>) responseObserver); break; + case METHODID_CREATE_SKILL: + serviceImpl.createSkill( + (com.google.cloud.agentregistry.v1.CreateSkillRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SKILL: + serviceImpl.getSkill( + (com.google.cloud.agentregistry.v1.GetSkillRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SKILL: + serviceImpl.updateSkill( + (com.google.cloud.agentregistry.v1.UpdateSkillRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SKILL: + serviceImpl.deleteSkill( + (com.google.cloud.agentregistry.v1.DeleteSkillRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SKILLS: + serviceImpl.listSkills( + (com.google.cloud.agentregistry.v1.ListSkillsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_SKILLS: + serviceImpl.searchSkills( + (com.google.cloud.agentregistry.v1.SearchSkillsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SKILL_REVISION: + serviceImpl.createSkillRevision( + (com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SKILL_REVISION: + serviceImpl.getSkillRevision( + (com.google.cloud.agentregistry.v1.GetSkillRevisionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SKILL_REVISION: + serviceImpl.deleteSkillRevision( + (com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SKILL_REVISIONS: + serviceImpl.listSkillRevisions( + (com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse>) + responseObserver); + break; + case METHODID_GET_PUBLISHER: + serviceImpl.getPublisher( + (com.google.cloud.agentregistry.v1.GetPublisherRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PUBLISHERS: + serviceImpl.listPublishers( + (com.google.cloud.agentregistry.v1.ListPublishersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListPublishersResponse>) + responseObserver); + break; + case METHODID_GET_AI_APPLICATION: + serviceImpl.getAiApplication( + (com.google.cloud.agentregistry.v1.GetAiApplicationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_AI_APPLICATIONS: + serviceImpl.listAiApplications( + (com.google.cloud.agentregistry.v1.ListAiApplicationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse>) + responseObserver); + break; + case METHODID_GET_AI_APPLICATION_AGENT: + serviceImpl.getAiApplicationAgent( + (com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_AI_APPLICATION_AGENTS: + serviceImpl.listAiApplicationAgents( + (com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse>) + responseObserver); + break; + case METHODID_GET_AI_APPLICATION_MCP_SERVER: + serviceImpl.getAiApplicationMcpServer( + (com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_AI_APPLICATION_MCP_SERVERS: + serviceImpl.listAiApplicationMcpServers( + (com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse>) + responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding( + (com.google.cloud.agentregistry.v1.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings( + (com.google.cloud.agentregistry.v1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_AI_APPLICATION_ENDPOINT: + serviceImpl.getAiApplicationEndpoint( + (com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_AI_APPLICATION_ENDPOINTS: + serviceImpl.listAiApplicationEndpoints( + (com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse>) + responseObserver); + break; + case METHODID_GET_SKILL_ENCRYPTION_SPEC: + serviceImpl.getSkillEncryptionSpec( + (com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SKILL_ENCRYPTION_SPEC: + serviceImpl.updateSkillEncryptionSpec( + (com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2696,6 +5795,166 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest, com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse>( service, METHODID_FETCH_AVAILABLE_BINDINGS))) + .addMethod( + getCreateSkillMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.CreateSkillRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SKILL))) + .addMethod( + getGetSkillMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetSkillRequest, + com.google.cloud.agentregistry.v1.Skill>(service, METHODID_GET_SKILL))) + .addMethod( + getUpdateSkillMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.UpdateSkillRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SKILL))) + .addMethod( + getDeleteSkillMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.DeleteSkillRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SKILL))) + .addMethod( + getListSkillsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListSkillsRequest, + com.google.cloud.agentregistry.v1.ListSkillsResponse>( + service, METHODID_LIST_SKILLS))) + .addMethod( + getSearchSkillsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.SearchSkillsRequest, + com.google.cloud.agentregistry.v1.SearchSkillsResponse>( + service, METHODID_SEARCH_SKILLS))) + .addMethod( + getCreateSkillRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SKILL_REVISION))) + .addMethod( + getGetSkillRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest, + com.google.cloud.agentregistry.v1.SkillRevision>( + service, METHODID_GET_SKILL_REVISION))) + .addMethod( + getDeleteSkillRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SKILL_REVISION))) + .addMethod( + getListSkillRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest, + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse>( + service, METHODID_LIST_SKILL_REVISIONS))) + .addMethod( + getGetPublisherMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetPublisherRequest, + com.google.cloud.agentregistry.v1.Publisher>(service, METHODID_GET_PUBLISHER))) + .addMethod( + getListPublishersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListPublishersRequest, + com.google.cloud.agentregistry.v1.ListPublishersResponse>( + service, METHODID_LIST_PUBLISHERS))) + .addMethod( + getGetAiApplicationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetAiApplicationRequest, + com.google.cloud.agentregistry.v1.AiApplication>( + service, METHODID_GET_AI_APPLICATION))) + .addMethod( + getListAiApplicationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse>( + service, METHODID_LIST_AI_APPLICATIONS))) + .addMethod( + getGetAiApplicationAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest, + com.google.cloud.agentregistry.v1.Agent>( + service, METHODID_GET_AI_APPLICATION_AGENT))) + .addMethod( + getListAiApplicationAgentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse>( + service, METHODID_LIST_AI_APPLICATION_AGENTS))) + .addMethod( + getGetAiApplicationMcpServerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest, + com.google.cloud.agentregistry.v1.McpServer>( + service, METHODID_GET_AI_APPLICATION_MCP_SERVER))) + .addMethod( + getListAiApplicationMcpServersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse>( + service, METHODID_LIST_AI_APPLICATION_MCP_SERVERS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetFindingRequest, + com.google.cloud.agentregistry.v1.Finding>(service, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListFindingsRequest, + com.google.cloud.agentregistry.v1.ListFindingsResponse>( + service, METHODID_LIST_FINDINGS))) + .addMethod( + getGetAiApplicationEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest, + com.google.cloud.agentregistry.v1.Endpoint>( + service, METHODID_GET_AI_APPLICATION_ENDPOINT))) + .addMethod( + getListAiApplicationEndpointsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest, + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse>( + service, METHODID_LIST_AI_APPLICATION_ENDPOINTS))) + .addMethod( + getGetSkillEncryptionSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec>( + service, METHODID_GET_SKILL_ENCRYPTION_SPEC))) + .addMethod( + getUpdateSkillEncryptionSpecMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_SKILL_ENCRYPTION_SPEC))) .build(); } @@ -2766,6 +6025,30 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateBindingMethod()) .addMethod(getDeleteBindingMethod()) .addMethod(getFetchAvailableBindingsMethod()) + .addMethod(getCreateSkillMethod()) + .addMethod(getGetSkillMethod()) + .addMethod(getUpdateSkillMethod()) + .addMethod(getDeleteSkillMethod()) + .addMethod(getListSkillsMethod()) + .addMethod(getSearchSkillsMethod()) + .addMethod(getCreateSkillRevisionMethod()) + .addMethod(getGetSkillRevisionMethod()) + .addMethod(getDeleteSkillRevisionMethod()) + .addMethod(getListSkillRevisionsMethod()) + .addMethod(getGetPublisherMethod()) + .addMethod(getListPublishersMethod()) + .addMethod(getGetAiApplicationMethod()) + .addMethod(getListAiApplicationsMethod()) + .addMethod(getGetAiApplicationAgentMethod()) + .addMethod(getListAiApplicationAgentsMethod()) + .addMethod(getGetAiApplicationMcpServerMethod()) + .addMethod(getListAiApplicationMcpServersMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getGetAiApplicationEndpointMethod()) + .addMethod(getListAiApplicationEndpointsMethod()) + .addMethod(getGetSkillEncryptionSpecMethod()) + .addMethod(getUpdateSkillEncryptionSpecMethod()) .build(); } } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java index 72f927457e37..c17fe723d608 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java @@ -17,6 +17,7 @@ package com.google.cloud.agentregistry.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; @@ -35,22 +36,39 @@ public class AgentName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_AGENT = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/agents/{agent}"); + private static final PathTemplate PROJECT_LOCATION_AI_APPLICATION_AGENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String project; private final String location; private final String agent; + private final String aiApplication; @Deprecated protected AgentName() { project = null; location = null; agent = null; + aiApplication = null; } private AgentName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); agent = Preconditions.checkNotNull(builder.getAgent()); + aiApplication = null; + pathTemplate = PROJECT_LOCATION_AGENT; + } + + private AgentName(ProjectLocationAiApplicationAgentBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aiApplication = Preconditions.checkNotNull(builder.getAiApplication()); + agent = Preconditions.checkNotNull(builder.getAgent()); + pathTemplate = PROJECT_LOCATION_AI_APPLICATION_AGENT; } public String getProject() { @@ -65,10 +83,23 @@ public String getAgent() { return agent; } + public String getAiApplication() { + return aiApplication; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newProjectLocationAgentBuilder() { + return new Builder(); + } + + public static ProjectLocationAiApplicationAgentBuilder + newProjectLocationAiApplicationAgentBuilder() { + return new ProjectLocationAiApplicationAgentBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -77,6 +108,21 @@ public static AgentName of(String project, String location, String agent) { return newBuilder().setProject(project).setLocation(location).setAgent(agent).build(); } + public static AgentName ofProjectLocationAgentName( + String project, String location, String agent) { + return newBuilder().setProject(project).setLocation(location).setAgent(agent).build(); + } + + public static AgentName ofProjectLocationAiApplicationAgentName( + String project, String location, String aiApplication, String agent) { + return newProjectLocationAiApplicationAgentBuilder() + .setProject(project) + .setLocation(location) + .setAiApplication(aiApplication) + .setAgent(agent) + .build(); + } + public static String format(String project, String location, String agent) { return newBuilder() .setProject(project) @@ -86,14 +132,44 @@ public static String format(String project, String location, String agent) { .toString(); } + public static String formatProjectLocationAgentName( + String project, String location, String agent) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .build() + .toString(); + } + + public static String formatProjectLocationAiApplicationAgentName( + String project, String location, String aiApplication, String agent) { + return newProjectLocationAiApplicationAgentBuilder() + .setProject(project) + .setLocation(location) + .setAiApplication(aiApplication) + .setAgent(agent) + .build() + .toString(); + } + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - PROJECT_LOCATION_AGENT.validatedMatch( - formattedString, "AgentName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("agent")); + if (PROJECT_LOCATION_AGENT.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_AGENT.match(formattedString); + return ofProjectLocationAgentName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("agent")); + } else if (PROJECT_LOCATION_AI_APPLICATION_AGENT.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_AI_APPLICATION_AGENT.match(formattedString); + return ofProjectLocationAiApplicationAgentName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("ai_application"), + matchMap.get("agent")); + } + throw new ValidationException("AgentName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -117,7 +193,8 @@ public static List toStringList(List<@Nullable AgentName> values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_AGENT.matches(formattedString); + return PROJECT_LOCATION_AGENT.matches(formattedString) + || PROJECT_LOCATION_AI_APPLICATION_AGENT.matches(formattedString); } @Override @@ -135,6 +212,9 @@ public Map getFieldValuesMap() { if (agent != null) { fieldMapBuilder.put("agent", agent); } + if (aiApplication != null) { + fieldMapBuilder.put("ai_application", aiApplication); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -148,8 +228,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_AGENT.instantiate( - "project", project, "location", location, "agent", agent); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -161,7 +240,8 @@ public boolean equals(@Nullable Object o) { AgentName that = ((AgentName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) - && Objects.equals(this.agent, that.agent); + && Objects.equals(this.agent, that.agent) + && Objects.equals(this.aiApplication, that.aiApplication); } return false; } @@ -170,11 +250,15 @@ public boolean equals(@Nullable Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(project); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(agent); + h *= 1000003; + h ^= Objects.hashCode(aiApplication); return h; } @@ -214,6 +298,10 @@ public Builder setAgent(String agent) { } private Builder(AgentName agentName) { + Preconditions.checkArgument( + Objects.equals(agentName.pathTemplate, PROJECT_LOCATION_AGENT), + "toBuilder is only supported when AgentName has the pattern of" + + " projects/{project}/locations/{location}/agents/{agent}"); this.project = agentName.project; this.location = agentName.location; this.agent = agentName.agent; @@ -223,4 +311,57 @@ public AgentName build() { return new AgentName(this); } } + + /** + * Builder for + * projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}. + */ + public static class ProjectLocationAiApplicationAgentBuilder { + private String project; + private String location; + private String aiApplication; + private String agent; + + protected ProjectLocationAiApplicationAgentBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAiApplication() { + return aiApplication; + } + + public String getAgent() { + return agent; + } + + public ProjectLocationAiApplicationAgentBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationAiApplicationAgentBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationAiApplicationAgentBuilder setAiApplication(String aiApplication) { + this.aiApplication = aiApplication; + return this; + } + + public ProjectLocationAiApplicationAgentBuilder setAgent(String agent) { + this.agent = agent; + return this; + } + + public AgentName build() { + return new AgentName(this); + } + } } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentProto.java index 3707f6a3f3c1..75ccc4531cf5 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentProto.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentProto.java @@ -75,7 +75,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/api/field_behavior.proto\032\033google/api/" + "field_info.proto\032\031google/api/resource.pr" + "oto\032.google/cloud/agentregistry/v1/prope" - + "rties.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\216\n\n" + + "rties.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\350\n\n" + "\005Agent\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\026\n" + "\010agent_id\030\002 \001(\tB\004\342A\001\003\022\026\n" @@ -123,13 +123,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016A2A_AGENT_CARD\020\001\032J\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022&\n" - + "\005value\030\002 \001(\0132\027.google.protobuf.Struct:\0028\001:n\352Ak\n" - + "\"agentregistry.googleapis.com/Agent\0226projects/{project}" - + "/locations/{location}/agents/{agent}*\006agents2\005agentB\335\001\n" + + "\005value\030\002" + + " \001(\0132\027.google.protobuf.Struct:\0028\001:\307\001\352A\303\001\n" + + "\"agentregistry.googleapis.com/Agent\0226projects/{projec" + + "t}/locations/{location}/agents/{agent}\022Vprojects/{project}/locations/{location}/" + + "aiApplications/{ai_application}/agents/{agent}*\006agents2\005agentB\335\001\n" + "!com.google.cloud.agentregistry.v1B\n" - + "AgentProtoP\001ZGcloud.google.com/go/agentregistry/apiv1/agentregistrypb" - + ";agentregistrypb\252\002\035Google.Cloud.AgentReg" - + "istry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + "AgentProtoP\001ZGcloud.google.com/go/agentregistry/apiv1/agent" + + "registrypb;agentregistrypb\252\002\035Google.Clou" + + "d.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + " Google::Cloud::AgentRegistry::V1b\006proto3" }; descriptor = diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryServiceProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryServiceProto.java index f7a695c96bed..81f5bab7dc56 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryServiceProto.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryServiceProto.java @@ -60,6 +60,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_agentregistry_v1_GetAgentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_agentregistry_v1_GetAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -72,6 +84,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -92,6 +116,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -152,6 +188,102 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetSkillRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetSkillRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -167,24 +299,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\027google/api/client.proto\032\037google/api/fi" + "eld_behavior.proto\032\033google/api/field_inf" + "o.proto\032\031google/api/resource.proto\032)goog" - + "le/cloud/agentregistry/v1/agent.proto\032+google/cloud/agentregistry/v1/binding.pro" - + "to\032,google/cloud/agentregistry/v1/endpoint.proto\032.google/cloud/agentregistry/v1/" - + "mcp_server.proto\032+google/cloud/agentregistry/v1/service.proto\032#google/longrunnin" - + "g/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\261\001\n" - + "\021ListAgentsRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\342A\001\002\372A$\022\"agentregistry.googleapis.com/Agent\022\027\n" + + "le/cloud/agentregistry/v1/agent.proto\0322google/cloud/agentregistry/v1/ai_applicat" + + "ion.proto\032+google/cloud/agentregistry/v1/binding.proto\032,google/cloud/agentregist" + + "ry/v1/endpoint.proto\032+google/cloud/agentregistry/v1/finding.proto\032.google/cloud/" + + "agentregistry/v1/mcp_server.proto\032+google/cloud/agentregistry/v1/service.proto\032)" + + "google/cloud/agentregistry/v1/skill.proto\0329google/cloud/agentregistry/v1/skill_e" + + "ncryption_spec.proto\032#google/longrunning" + + "/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\260\001\n" + + "\021ListAgentsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\"c\n" + "\022ListAgentsResponse\0224\n" + "\006agents\030\001 \003(\0132$.google.cloud.agentregistry.v1.Agent\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\242\001\n" - + "\023SearchAgentsRequest\022;\n" - + "\006parent\030\001 \001(\tB+\342A\001" - + "\002\372A$\022\"agentregistry.googleapis.com/Agent\022\033\n\r" + + "\017next_page_token\030\002 \001(\t\"\241\001\n" + + "\023SearchAgentsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\033\n" + + "\r" + "search_string\030\003 \001(\tB\004\342A\001\001\022\027\n" + "\tpage_size\030\006 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\007 \001(\tB\004\342A\001\001\"e\n" @@ -193,10 +329,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\t\"L\n" + "\017GetAgentRequest\0229\n" + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" - + "\"agentregistry.googleapis.com/Agent\"\237\001\n" - + "\024ListEndpointsRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\342A\001\002\372A\'\022%agentregistry.googleapis.com/Endpoint\022\027\n" + + "\"agentregistry.googleapis.com/Agent\"Y\n" + + "\034GetAiApplicationAgentRequest\0229\n" + + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"agentregistry.googleapis.com/Agent\"\230\001\n" + + "\036ListAiApplicationAgentsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\342A\001\002\372A,\n" + + "*agentregistry.googleapis.com/AiApplication\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\"p\n" + + "\037ListAiApplicationAgentsResponse\0224\n" + + "\006agents\030\001 \003(\0132$.google.cloud.agentregistry.v1.Agent\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\233\001\n" + + "\024ListEndpointsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"l\n" @@ -205,20 +352,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\t\"R\n" + "\022GetEndpointRequest\022<\n" + "\004name\030\001 \001(\tB.\342A\001\002\372A\'\n" - + "%agentregistry.googleapis.com/Endpoint\"\271\001\n" - + "\025ListMcpServersRequest\022?\n" - + "\006parent\030\001 \001(" - + "\tB/\342A\001\002\372A(\022&agentregistry.googleapis.com/McpServer\022\027\n" + + "%agentregistry.googleapis.com/Endpoint\"_\n" + + "\037GetAiApplicationEndpointRequest\022<\n" + + "\004name\030\001 \001(\tB.\342A\001\002\372A\'\n" + + "%agentregistry.googleapis.com/Endpoint\"\233\001\n" + + "!ListAiApplicationEndpointsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\342A\001\002\372A,\n" + + "*agentregistry.googleapis.com/AiApplication\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\"y\n" + + "\"ListAiApplicationEndpointsResponse\022:\n" + + "\tendpoints\030\001 \003(\0132\'.google.cloud.agentregistry.v1.Endpoint\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\264\001\n" + + "\025ListMcpServersRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\"p\n" + "\026ListMcpServersResponse\022=\n" + "\013mcp_servers\030\001 \003(\0132(.google.cloud.agentregistry.v1.McpServer\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\252\001\n" - + "\027SearchMcpServersRequest\022?\n" - + "\006parent\030\001 \001(" - + "\tB/\342A\001\002\372A(\022&agentregistry.googleapis.com/McpServer\022\033\n\r" + + "\017next_page_token\030\002 \001(\t\"\245\001\n" + + "\027SearchMcpServersRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\033\n\r" + "search_string\030\003 \001(\tB\004\342A\001\001\022\027\n" + "\tpage_size\030\006 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\007 \001(\tB\004\342A\001\001\"r\n" @@ -227,10 +385,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\t\"T\n" + "\023GetMcpServerRequest\022=\n" + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" - + "&agentregistry.googleapis.com/McpServer\"\235\001\n" + + "&agentregistry.googleapis.com/McpServer\"a\n" + + " GetAiApplicationMcpServerRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&agentregistry.googleapis.com/McpServer\"\234\001\n" + + "\"ListAiApplicationMcpServersRequest\022C\n" + + "\006parent\030\001 \001(\tB3\342A\001\002\372A,\n" + + "*agentregistry.googleapis.com/AiApplication\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\"}\n" + + "#ListAiApplicationMcpServersResponse\022=\n" + + "\013mcp_servers\030\001 \003(\0132(.google.cloud.agentregistry.v1.McpServer\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\235\001\n" + "\023ListServicesRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\342A\001\002\372A&\022$agentregistry.googleapis.com/Service\022\027\n" + + "\006parent\030\001 \001(\t" + + "B-\342A\001\002\372A&\022$agentregistry.googleapis.com/Service\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"i\n" @@ -242,17 +411,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$agentregistry.googleapis.com/Service\"\320\001\n" + "\024CreateServiceRequest\022=\n" + "\006parent\030\001 \001(" - + "\tB-\342A\001\002\372A&\022$agentregistry.googleapis.com/Service\022\030\n\n" + + "\tB-\342A\001\002\372A&\022$agentregistry.googleapis.com/Service\022\030\n" + + "\n" + "service_id\030\002 \001(\tB\004\342A\001\002\022=\n" - + "\007service\030\003" - + " \001(\0132&.google.cloud.agentregistry.v1.ServiceB\004\342A\001\002\022 \n\n" + + "\007service\030\003 \001(\013" + + "2&.google.cloud.agentregistry.v1.ServiceB\004\342A\001\002\022 \n\n" + "request_id\030\004 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\345\001\n" + "\035FetchAvailableBindingsRequest\022\033\n" + "\021source_identifier\030\002 \001(\tH\000\022!\n" + "\021target_identifier\030\003 \001(\tB\004\342A\001\001H\001\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\342A\001\002\372A&\022$agentregistry.googleapis.com/Binding\022\027\n" + + "\006parent\030\001 \001(\tB-\342A\001\002" + + "\372A&\022$agentregistry.googleapis.com/Binding\022\027\n" + "\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\005 \001(\tB\004\342A\001\001B\010\n" + "\006sourceB\010\n" @@ -282,10 +452,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n" + "\013api_version\030\007 \001(\tB\004\342A\001\003\"\265\001\n" + "\023ListBindingsRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\342A\001\002\372A&\022$agentregistry.googleapis.com/Binding\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" - + "\n" + + "\006parent\030\001 \001(\tB-\342A\001\002\372A&" + + "\022$agentregistry.googleapis.com/Binding\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\"i\n" @@ -311,91 +480,328 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\003 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"u\n" + "\024DeleteBindingRequest\022;\n" + "\004name\030\001 \001(\tB-\342A\001\002\372A&\n" - + "$agentregistry.googleapis.com/Binding\022 \n\n" + + "$agentregistry.googleapis.com/Binding\022 \n" + + "\n" + "request_id\030\002 \001(" - + "\tB\014\342A\001\001\342\214\317\327\010\002\010\0012\214\037\n\r" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\306\001\n" + + "\022CreateSkillRequest\022;\n" + + "\006parent\030\001 \001(" + + "\tB+\342A\001\002\372A$\022\"agentregistry.googleapis.com/Skill\022\026\n" + + "\010skill_id\030\002 \001(\tB\004\342A\001\002\0229\n" + + "\005skill\030\003" + + " \001(\0132$.google.cloud.agentregistry.v1.SkillB\004\342A\001\002\022 \n\n" + + "request_id\030\004 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"L\n" + + "\017GetSkillRequest\0229\n" + + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"agentregistry.googleapis.com/Skill\"\250\001\n" + + "\022UpdateSkillRequest\0229\n" + + "\005skill\030\001" + + " \001(\0132$.google.cloud.agentregistry.v1.SkillB\004\342A\001\002\0225\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022" + + " \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\206\001\n" + + "\022DeleteSkillRequest\0229\n" + + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"agentregistry.googleapis.com/Skill\022 \n\n" + + "request_id\030\002 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\022\023\n" + + "\005force\030\003 \001(\010B\004\342A\001\001\"\261\001\n" + + "\021ListSkillsRequest\022;\n" + + "\006parent\030\001 \001(" + + "\tB+\342A\001\002\372A$\022\"agentregistry.googleapis.com/Skill\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"x\n" + + "\022ListSkillsResponse\0224\n" + + "\006skills\030\001 \003(\0132$.google.cloud.agentregistry.v1.Skill\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\376\001\n" + + "\023SearchSkillsRequest\022;\n" + + "\006parent\030\001 \001(\t" + + "B+\342A\001\002\372A$\022\"agentregistry.googleapis.com/Skill\022D\n" + + "\013search_type\030\006" + + " \001(\0162).google.cloud.agentregistry.v1.SearchTypeB\004\342A\001\001\022\033\n\r" + + "search_string\030\007 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\005 \001(\tB\004\342A\001\001\022\027\n" + + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\004 \001(\tB\004\342A\001\001\"e\n" + + "\024SearchSkillsResponse\0224\n" + + "\006skills\030\001 \003(\0132$.google.cloud.agentregistry.v1.Skill\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\350\001\n" + + "\032CreateSkillRevisionRequest\022;\n" + + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"agentregistry.googleapis.com/Skill\022J\n" + + "\016skill_revision\030\002 \001(\0132,.g" + + "oogle.cloud.agentregistry.v1.SkillRevisionB\004\342A\001\002\022\037\n" + + "\021skill_revision_id\030\003 \001(\tB\004\342A\001\001\022 \n\n" + + "request_id\030\004 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\\\n" + + "\027GetSkillRevisionRequest\022A\n" + + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n" + + "*agentregistry.googleapis.com/SkillRevision\"\201\001\n" + + "\032DeleteSkillRevisionRequest\022A\n" + + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n" + + "*agentregistry.googleapis.com/SkillRevision\022 \n\n" + + "request_id\030\002 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\213\001\n" + + "\031ListSkillRevisionsRequest\022;\n" + + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"agentregistry.googleapis.com/Skill\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\"|\n" + + "\032ListSkillRevisionsResponse\022E\n" + + "\017skill_revisions\030\001" + + " \003(\0132,.google.cloud.agentregistry.v1.SkillRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\"T\n" + + "\023GetPublisherRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&agentregistry.googleapis.com/Publisher\"\213\001\n" + + "\025ListPublishersRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\342A\001\002\372A(\022&agentregistry.googleapis.com/Publisher\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\"o\n" + + "\026ListPublishersResponse\022<\n\n" + + "publishers\030\001 \003(\0132(.google.cloud.agentregistry.v1.Publisher\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\\\n" + + "\027GetAiApplicationRequest\022A\n" + + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n" + + "*agentregistry.googleapis.com/AiApplication\"\301\001\n" + + "\031ListAiApplicationsRequest\022C\n" + + "\006parent\030\001 \001(" + + "\tB3\342A\001\002\372A,\022*agentregistry.googleapis.com/AiApplication\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\227\001\n" + + "\032ListAiApplicationsResponse\022E\n" + + "\017ai_applications\030\001" + + " \003(\0132,.google.cloud.agentregistry.v1.AiApplication\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"\265\001\n" + + "\023ListFindingsRequest\022=\n" + + "\006parent\030\001 \001(\tB-\342A\001\002" + + "\372A&\022$agentregistry.googleapis.com/Finding\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"i\n" + + "\024ListFindingsResponse\0228\n" + + "\010findings\030\001 \003(\0132&.google.cloud.agentregistry.v1.Finding\022\027\n" + + "\017next_page_token\030\002 \001(\t\"P\n" + + "\021GetFindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\342A\001\002\372A&\n" + + "$agentregistry.googleapis.com/Finding\"h\n" + + "\035GetSkillEncryptionSpecRequest\022G\n" + + "\004name\030\001 \001(\tB9\342A\001\002\372A2\n" + + "0agentregistry.googleapis.com/SkillEncryptionSpec\"\262\001\n" + + " UpdateSkillEncryptionSpecRequest\022W\n" + + "\025skill_encryption_spec\030\001 \001(\01322.google.cloud.age" + + "ntregistry.v1.SkillEncryptionSpecB\004\342A\001\002\0225\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001*D\n\n" + + "SearchType\022\033\n" + + "\027SEARCH_TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007KEYWORD\020\001\022\014\n" + + "\010SEMANTIC\020\0022\377F\n\r" + "AgentRegistry\022\256\001\n\n" - + "ListAgents\0220.google.cloud.agentregistry.v1.ListAgent" - + "sRequest\0321.google.cloud.agentregistry.v1" - + ".ListAgentsResponse\";\332A\006parent\202\323\344\223\002,\022*/v" - + "1/{parent=projects/*/locations/*}/agents\022\276\001\n" - + "\014SearchAgents\0222.google.cloud.agentregistry.v1.SearchAgentsRequest\0323.google.c" - + "loud.agentregistry.v1.SearchAgentsRespon" - + "se\"E\332A\006parent\202\323\344\223\0026\"1/v1/{parent=projects/*/locations/*}/agents:search:\001*\022\233\001\n" - + "\010GetAgent\022..google.cloud.agentregistry.v1.G" - + "etAgentRequest\032$.google.cloud.agentregis" - + "try.v1.Agent\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/locations/*/agents/*}\022\272\001\n\r" - + "ListEndpoints\0223.google.cloud.agentregistry.v" - + "1.ListEndpointsRequest\0324.google.cloud.ag" - + "entregistry.v1.ListEndpointsResponse\">\332A" - + "\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/endpoints\022\247\001\n" - + "\013GetEndpoint\0221.google.cloud.agentregistry.v1.GetEndpoint" - + "Request\032\'.google.cloud.agentregistry.v1." - + "Endpoint\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/endpoints/*}\022\276\001\n" - + "\016ListMcpServers\0224.google.cloud.agentregistry.v" - + "1.ListMcpServersRequest\0325.google.cloud.agentregistry.v1.ListMcpServersResponse\"?" - + "\332A\006parent\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/mcpServers\022\316\001\n" - + "\020SearchMcpServers\0226.google.cloud.agentregistry.v1.Sea" - + "rchMcpServersRequest\0327.google.cloud.agen" - + "tregistry.v1.SearchMcpServersResponse\"I\332" - + "A\006parent\202\323\344\223\002:\"5/v1/{parent=projects/*/locations/*}/mcpServers:search:\001*\022\253\001\n" - + "\014GetMcpServer\0222.google.cloud.agentregistry.v" - + "1.GetMcpServerRequest\032(.google.cloud.age" - + "ntregistry.v1.McpServer\"=\332A\004name\202\323\344\223\0020\022." - + "/v1/{name=projects/*/locations/*/mcpServers/*}\022\266\001\n" - + "\014ListServices\0222.google.cloud.agentregistry.v1.ListServicesRequest\0323.go" - + "ogle.cloud.agentregistry.v1.ListServices" - + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/services\022\243\001\n\n" - + "GetService\0220.google.cloud.agentregistry.v1.G" - + "etServiceRequest\032&.google.cloud.agentreg" - + "istry.v1.Service\";\332A\004name\202\323\344\223\002.\022,/v1/{na" - + "me=projects/*/locations/*/services/*}\022\335\001\n\r" - + "CreateService\0223.google.cloud.agentregi" - + "stry.v1.CreateServiceRequest\032\035.google.longrunning.Operation\"x\312A\034\n" - + "\007Service\022\021OperationMetadata\332A\031parent,service,service_id" - + "\202\323\344\223\0027\",/v1/{parent=projects/*/locations/*}/services:\007service\022\337\001\n\r" - + "UpdateService\0223.google.cloud.agentregistry.v1.UpdateSe" - + "rviceRequest\032\035.google.longrunning.Operation\"z\312A\034\n" - + "\007Service\022\021OperationMetadata\332A\023s" - + "ervice,update_mask\202\323\344\223\002?24/v1/{service.n" - + "ame=projects/*/locations/*/services/*}:\007service\022\315\001\n\r" - + "DeleteService\0223.google.cloud" - + ".agentregistry.v1.DeleteServiceRequest\032\035.google.longrunning.Operation\"h\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004n" - + "ame\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/services/*}\022\266\001\n" - + "\014ListBindings\0222.google.cloud.agentregistry.v1.ListBindingsReq" - + "uest\0323.google.cloud.agentregistry.v1.Lis" - + "tBindingsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/" - + "{parent=projects/*/locations/*}/bindings\022\243\001\n\n" - + "GetBinding\0220.google.cloud.agentregistry.v1.GetBindingRequest\032&.google.cloud" - + ".agentregistry.v1.Binding\";\332A\004name\202\323\344\223\002." - + "\022,/v1/{name=projects/*/locations/*/bindings/*}\022\335\001\n\r" - + "CreateBinding\0223.google.cloud." - + "agentregistry.v1.CreateBindingRequest\032\035.google.longrunning.Operation\"x\312A\034\n" - + "\007Binding\022\021OperationMetadata\332A\031parent,binding,b" - + "inding_id\202\323\344\223\0027\",/v1/{parent=projects/*/locations/*}/bindings:\007binding\022\337\001\n\r" - + "UpdateBinding\0223.google.cloud.agentregistry.v1" - + ".UpdateBindingRequest\032\035.google.longrunning.Operation\"z\312A\034\n" - + "\007Binding\022\021OperationMet" - + "adata\332A\023binding,update_mask\202\323\344\223\002?24/v1/{" - + "binding.name=projects/*/locations/*/bindings/*}:\007binding\022\315\001\n\r" - + "DeleteBinding\0223.google.cloud.agentregistry.v1.DeleteBinding" - + "Request\032\035.google.longrunning.Operation\"h\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMet" - + "adata\332A\004name\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/bindings/*}\022\343\001\n" - + "\026FetchAvailableBindings\022<.google.cloud.agentregistry" - + ".v1.FetchAvailableBindingsRequest\032=.google.cloud.agentregistry.v1.FetchAvailable" - + "BindingsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{" - + "parent=projects/*/locations/*}/bindings:" - + "fetchAvailable\032\373\001\312A\034agentregistry.google" - + "apis.com\322A\330\001https://www.googleapis.com/a" - + "uth/agentregistry.read-only,https://www.googleapis.com/auth/agentregistry.read-w" - + "rite,https://www.googleapis.com/auth/clo" - + "ud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\354\001\n" - + "!com.google.cloud.agentregistry.v1B\031AgentRegistr" - + "yServiceProtoP\001ZGcloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentre" - + "gistrypb\252\002\035Google.Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" - + " Google::Cloud::AgentRegistry::V1b\006proto3" + + "ListAgents\0220.google.cloud.agentregistry.v1.ListAgents" + + "Request\0321.google.cloud.agentregistry.v1." + + "ListAgentsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1" + + "/{parent=projects/*/locations/*}/agents\022\276\001\n" + + "\014SearchAgents\0222.google.cloud.agentregistry.v1.SearchAgentsRequest\0323.google.cl" + + "oud.agentregistry.v1.SearchAgentsRespons" + + "e\"E\332A\006parent\202\323\344\223\0026\"1/v1/{parent=projects/*/locations/*}/agents:search:\001*\022\233\001\n" + + "\010GetAgent\022..google.cloud.agentregistry.v1.Ge" + + "tAgentRequest\032$.google.cloud.agentregist" + + "ry.v1.Agent\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/locations/*/agents/*}\022\272\001\n\r" + + "ListEndpoints\0223.google.cloud.agentregistry.v1" + + ".ListEndpointsRequest\0324.google.cloud.age" + + "ntregistry.v1.ListEndpointsResponse\">\332A\006" + + "parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/endpoints\022\247\001\n" + + "\013GetEndpoint\0221.google.cloud.agentregistry.v1.GetEndpointR" + + "equest\032\'.google.cloud.agentregistry.v1.E" + + "ndpoint\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/endpoints/*}\022\276\001\n" + + "\016ListMcpServers\0224.google.cloud.agentregistry.v1" + + ".ListMcpServersRequest\0325.google.cloud.ag" + + "entregistry.v1.ListMcpServersResponse\"?\332" + + "A\006parent\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/mcpServers\022\316\001\n" + + "\020SearchMcpServers\0226.google.cloud.agentregistry.v1.Sear" + + "chMcpServersRequest\0327.google.cloud.agent" + + "registry.v1.SearchMcpServersResponse\"I\332A" + + "\006parent\202\323\344\223\002:\"5/v1/{parent=projects/*/locations/*}/mcpServers:search:\001*\022\253\001\n" + + "\014GetMcpServer\0222.google.cloud.agentregistry.v1" + + ".GetMcpServerRequest\032(.google.cloud.agen" + + "tregistry.v1.McpServer\"=\332A\004name\202\323\344\223\0020\022./" + + "v1/{name=projects/*/locations/*/mcpServers/*}\022\266\001\n" + + "\014ListServices\0222.google.cloud.agentregistry.v1.ListServicesRequest\0323.goo" + + "gle.cloud.agentregistry.v1.ListServicesR" + + "esponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/services\022\243\001\n\n" + + "GetService\0220.google.cloud.agentregistry.v1.Ge" + + "tServiceRequest\032&.google.cloud.agentregi" + + "stry.v1.Service\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/services/*}\022\335\001\n" + + "\r" + + "CreateService\0223.google.cloud.agentregis" + + "try.v1.CreateServiceRequest\032\035.google.longrunning.Operation\"x\312A\034\n" + + "\007Service\022\021OperationMetadata\332A\031parent,service,service_id\202" + + "\323\344\223\0027\",/v1/{parent=projects/*/locations/*}/services:\007service\022\337\001\n\r" + + "UpdateService\0223.google.cloud.agentregistry.v1.UpdateSer" + + "viceRequest\032\035.google.longrunning.Operation\"z\312A\034\n" + + "\007Service\022\021OperationMetadata\332A\023se" + + "rvice,update_mask\202\323\344\223\002?24/v1/{service.na" + + "me=projects/*/locations/*/services/*}:\007service\022\315\001\n\r" + + "DeleteService\0223.google.cloud." + + "agentregistry.v1.DeleteServiceRequest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/services/*}\022\266\001\n" + + "\014ListBindings\0222.google.cloud.agentregistry.v1.ListBindingsRequ" + + "est\0323.google.cloud.agentregistry.v1.List" + + "BindingsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{" + + "parent=projects/*/locations/*}/bindings\022\243\001\n\n" + + "GetBinding\0220.google.cloud.agentregistry.v1.GetBindingRequest\032&.google.cloud." + + "agentregistry.v1.Binding\";\332A\004name\202\323\344\223\002.\022" + + ",/v1/{name=projects/*/locations/*/bindings/*}\022\335\001\n\r" + + "CreateBinding\0223.google.cloud.a" + + "gentregistry.v1.CreateBindingRequest\032\035.google.longrunning.Operation\"x\312A\034\n" + + "\007Binding\022\021OperationMetadata\332A\031parent,binding,bi" + + "nding_id\202\323\344\223\0027\",/v1/{parent=projects/*/locations/*}/bindings:\007binding\022\337\001\n\r" + + "UpdateBinding\0223.google.cloud.agentregistry.v1." + + "UpdateBindingRequest\032\035.google.longrunning.Operation\"z\312A\034\n" + + "\007Binding\022\021OperationMeta" + + "data\332A\023binding,update_mask\202\323\344\223\002?24/v1/{b" + + "inding.name=projects/*/locations/*/bindings/*}:\007binding\022\315\001\n\r" + + "DeleteBinding\0223.google.cloud.agentregistry.v1.DeleteBindingR" + + "equest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/bindings/*}\022\343\001\n" + + "\026FetchAvailableBindings\022<.google.cloud.agentregistry." + + "v1.FetchAvailableBindingsRequest\032=.google.cloud.agentregistry.v1.FetchAvailableB" + + "indingsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{p" + + "arent=projects/*/locations/*}/bindings:fetchAvailable\022\317\001\n" + + "\013CreateSkill\0221.google.c" + + "loud.agentregistry.v1.CreateSkillRequest\032\035.google.longrunning.Operation\"n\312A\032\n" + + "\005Skill\022\021OperationMetadata\332A\025parent,skill,sk" + + "ill_id\202\323\344\223\0023\"*/v1/{parent=projects/*/locations/*}/skills:\005skill\022\233\001\n" + + "\010GetSkill\022..google.cloud.agentregistry.v1.GetSkillReq" + + "uest\032$.google.cloud.agentregistry.v1.Ski" + + "ll\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/locations/*/skills/*}\022\321\001\n" + + "\013UpdateSkill\0221.google.cloud.agentregistry.v1.UpdateSkil" + + "lRequest\032\035.google.longrunning.Operation\"p\312A\032\n" + + "\005Skill\022\021OperationMetadata\332A\021skill,u" + + "pdate_mask\202\323\344\223\002920/v1/{skill.name=projects/*/locations/*/skills/*}:\005skill\022\307\001\n" + + "\013DeleteSkill\0221.google.cloud.agentregistry.v" + + "1.DeleteSkillRequest\032\035.google.longrunning.Operation\"f\312A*\n" + + "\025google.protobuf.Empty\022" + + "\021OperationMetadata\332A\004name\202\323\344\223\002,**/v1/{name=projects/*/locations/*/skills/*}\022\256\001\n\n" + + "ListSkills\0220.google.cloud.agentregistry.v1.ListSkillsRequest\0321.google.cloud.agen" + + "tregistry.v1.ListSkillsResponse\";\332A\006pare" + + "nt\202\323\344\223\002,\022*/v1/{parent=projects/*/locations/*}/skills\022\352\001\n" + + "\014SearchSkills\0222.google.cloud.agentregistry.v1.SearchSkillsReques" + + "t\0323.google.cloud.agentregistry.v1.Search" + + "SkillsResponse\"q\202\323\344\223\002k\"1/v1/{parent=proj" + + "ects/*/locations/*}/skills:search:\001*Z3\0221" + + "/v1/{parent=projects/*/locations/*}/skills:search\022\217\002\n" + + "\023CreateSkillRevision\0229.google.cloud.agentregistry.v1.CreateSkillRev" + + "isionRequest\032\035.google.longrunning.Operation\"\235\001\312A\"\n\r" + + "SkillRevision\022\021OperationMetadata\332A\'parent,skill_revision,skill_revisi" + + "on_id\202\323\344\223\002H\"6/v1/{parent=projects/*/loca" + + "tions/*/skills/*}/revisions:\016skill_revision\022\277\001\n" + + "\020GetSkillRevision\0226.google.cloud.agentregistry.v1.GetSkillRevisionRequest" + + "\032,.google.cloud.agentregistry.v1.SkillRe" + + "vision\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=project" + + "s/*/locations/*/skills/*/revisions/*}\022\343\001\n" + + "\023DeleteSkillRevision\0229.google.cloud.age" + + "ntregistry.v1.DeleteSkillRevisionRequest\032\035.google.longrunning.Operation\"r\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\0028*6/v1/{name=projects/*/locations/*/skills/*/revisions/*}\022\322\001\n" + + "\022ListSkillRevisions\0228.google.cloud.agentregistry." + + "v1.ListSkillRevisionsRequest\0329.google.cloud.agentregistry.v1.ListSkillRevisionsR" + + "esponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=pr" + + "ojects/*/locations/*/skills/*}/revisions\022\253\001\n" + + "\014GetPublisher\0222.google.cloud.agentregistry.v1.GetPublisherRequest\032(.google.c" + + "loud.agentregistry.v1.Publisher\"=\332A\004name" + + "\202\323\344\223\0020\022./v1/{name=projects/*/locations/*/publishers/*}\022\276\001\n" + + "\016ListPublishers\0224.google.cloud.agentregistry.v1.ListPublishers" + + "Request\0325.google.cloud.agentregistry.v1." + + "ListPublishersResponse\"?\332A\006parent\202\323\344\223\0020\022" + + "./v1/{parent=projects/*/locations/*}/publishers\022\273\001\n" + + "\020GetAiApplication\0226.google.cloud.agentregistry.v1.GetAiApplicationReq" + + "uest\032,.google.cloud.agentregistry.v1.AiA" + + "pplication\"A\332A\004name\202\323\344\223\0024\0222/v1/{name=pro" + + "jects/*/locations/*/aiApplications/*}\022\316\001\n" + + "\022ListAiApplications\0228.google.cloud.agen" + + "tregistry.v1.ListAiApplicationsRequest\0329.google.cloud.agentregistry.v1.ListAiApp" + + "licationsResponse\"C\332A\006parent\202\323\344\223\0024\0222/v1/" + + "{parent=projects/*/locations/*}/aiApplic", + "ations\022\306\001\n\025GetAiApplicationAgent\022;.googl" + + "e.cloud.agentregistry.v1.GetAiApplicatio" + + "nAgentRequest\032$.google.cloud.agentregist" + + "ry.v1.Agent\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=pr" + + "ojects/*/locations/*/aiApplications/*/ag" + + "ents/*}\022\346\001\n\027ListAiApplicationAgents\022=.go" + + "ogle.cloud.agentregistry.v1.ListAiApplic" + + "ationAgentsRequest\032>.google.cloud.agentr" + + "egistry.v1.ListAiApplicationAgentsRespon" + + "se\"L\332A\006parent\202\323\344\223\002=\022;/v1/{parent=project" + + "s/*/locations/*/aiApplications/*}/agents" + + "\022\326\001\n\031GetAiApplicationMcpServer\022?.google." + + "cloud.agentregistry.v1.GetAiApplicationM" + + "cpServerRequest\032(.google.cloud.agentregi" + + "stry.v1.McpServer\"N\332A\004name\202\323\344\223\002A\022?/v1/{n" + + "ame=projects/*/locations/*/aiApplication" + + "s/*/mcpServers/*}\022\366\001\n\033ListAiApplicationM" + + "cpServers\022A.google.cloud.agentregistry.v" + + "1.ListAiApplicationMcpServersRequest\032B.g" + + "oogle.cloud.agentregistry.v1.ListAiAppli" + + "cationMcpServersResponse\"P\332A\006parent\202\323\344\223\002" + + "A\022?/v1/{parent=projects/*/locations/*/ai" + + "Applications/*}/mcpServers\022\243\001\n\nGetFindin" + + "g\0220.google.cloud.agentregistry.v1.GetFin" + + "dingRequest\032&.google.cloud.agentregistry" + + ".v1.Finding\";\332A\004name\202\323\344\223\002.\022,/v1/{name=pr" + + "ojects/*/locations/*/findings/*}\022\266\001\n\014Lis" + + "tFindings\0222.google.cloud.agentregistry.v" + + "1.ListFindingsRequest\0323.google.cloud.age" + + "ntregistry.v1.ListFindingsResponse\"=\332A\006p" + + "arent\202\323\344\223\002.\022,/v1/{parent=projects/*/loca" + + "tions/*}/findings\022\322\001\n\030GetAiApplicationEn" + + "dpoint\022>.google.cloud.agentregistry.v1.G" + + "etAiApplicationEndpointRequest\032\'.google." + + "cloud.agentregistry.v1.Endpoint\"M\332A\004name" + + "\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*" + + "/aiApplications/*/endpoints/*}\022\362\001\n\032ListA" + + "iApplicationEndpoints\022@.google.cloud.age" + + "ntregistry.v1.ListAiApplicationEndpoints" + + "Request\032A.google.cloud.agentregistry.v1." + + "ListAiApplicationEndpointsResponse\"O\332A\006p" + + "arent\202\323\344\223\002@\022>/v1/{parent=projects/*/loca" + + "tions/*/aiApplications/*}/endpoints\022\320\001\n\026" + + "GetSkillEncryptionSpec\022<.google.cloud.ag" + + "entregistry.v1.GetSkillEncryptionSpecReq" + + "uest\0322.google.cloud.agentregistry.v1.Ski" + + "llEncryptionSpec\"D\332A\004name\202\323\344\223\0027\0225/v1/{na" + + "me=projects/*/locations/*/skillEncryptio" + + "nSpec}\022\267\002\n\031UpdateSkillEncryptionSpec\022?.g" + + "oogle.cloud.agentregistry.v1.UpdateSkill" + + "EncryptionSpecRequest\032\035.google.longrunni" + + "ng.Operation\"\271\001\312A(\n\023SkillEncryptionSpec\022" + + "\021OperationMetadata\332A!skill_encryption_sp" + + "ec,update_mask\202\323\344\223\002d2K/v1/{skill_encrypt" + + "ion_spec.name=projects/*/locations/*/ski" + + "llEncryptionSpec}:\025skill_encryption_spec" + + "\032\373\001\312A\034agentregistry.googleapis.com\322A\330\001ht" + + "tps://www.googleapis.com/auth/agentregis" + + "try.read-only,https://www.googleapis.com" + + "/auth/agentregistry.read-write,https://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form.read-onlyB\354\001\n!com.google.cloud.agen" + + "tregistry.v1B\031AgentRegistryServiceProtoP" + + "\001ZGcloud.google.com/go/agentregistry/api" + + "v1/agentregistrypb;agentregistrypb\252\002\035Goo" + + "gle.Cloud.AgentRegistry.V1\312\002\035Google\\Clou" + + "d\\AgentRegistry\\V1\352\002 Google::Cloud::Agen" + + "tRegistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -407,10 +813,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.agentregistry.v1.AgentProto.getDescriptor(), + com.google.cloud.agentregistry.v1.AiApplicationProto.getDescriptor(), com.google.cloud.agentregistry.v1.BindingProto.getDescriptor(), com.google.cloud.agentregistry.v1.EndpointProto.getDescriptor(), + com.google.cloud.agentregistry.v1.FindingProto.getDescriptor(), com.google.cloud.agentregistry.v1.McpServerProto.getDescriptor(), com.google.cloud.agentregistry.v1.ServiceProto.getDescriptor(), + com.google.cloud.agentregistry.v1.SkillProto.getDescriptor(), + com.google.cloud.agentregistry.v1.SkillEncryptionSpecProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -456,8 +866,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor = + internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_descriptor = getDescriptor().getMessageType(5); + internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_descriptor, + new java.lang.String[] { + "Agents", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor = + getDescriptor().getMessageType(8); internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor, @@ -465,7 +899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(9); internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_descriptor, @@ -473,15 +907,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoints", "NextPageToken", }); internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(10); internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_descriptor, + new java.lang.String[] { + "Endpoints", "NextPageToken", + }); internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(14); internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor, @@ -489,7 +947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(15); internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_descriptor, @@ -497,7 +955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "McpServers", "NextPageToken", }); internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(16); internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_descriptor, @@ -505,7 +963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "SearchString", "PageSize", "PageToken", }); internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(17); internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_descriptor, @@ -513,15 +971,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "McpServers", "NextPageToken", }); internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(18); internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_descriptor, + new java.lang.String[] { + "McpServers", "NextPageToken", + }); internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(22); internal_static_google_cloud_agentregistry_v1_ListServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor, @@ -529,7 +1011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_agentregistry_v1_ListServicesResponse_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(23); internal_static_google_cloud_agentregistry_v1_ListServicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_ListServicesResponse_descriptor, @@ -537,7 +1019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Services", "NextPageToken", }); internal_static_google_cloud_agentregistry_v1_GetServiceRequest_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(24); internal_static_google_cloud_agentregistry_v1_GetServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_GetServiceRequest_descriptor, @@ -545,7 +1027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(25); internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_descriptor, @@ -553,7 +1035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ServiceId", "Service", "RequestId", }); internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(26); internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_descriptor, @@ -567,7 +1049,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Target", }); internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(27); internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_descriptor, @@ -575,7 +1057,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bindings", "NextPageToken", }); internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(28); internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_descriptor, @@ -583,7 +1065,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Service", "RequestId", }); internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(29); internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_descriptor, @@ -591,7 +1073,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_agentregistry_v1_OperationMetadata_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(30); internal_static_google_cloud_agentregistry_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_OperationMetadata_descriptor, @@ -605,7 +1087,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(31); internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_descriptor, @@ -613,7 +1095,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(32); internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_descriptor, @@ -621,7 +1103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bindings", "NextPageToken", }); internal_static_google_cloud_agentregistry_v1_GetBindingRequest_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(33); internal_static_google_cloud_agentregistry_v1_GetBindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_GetBindingRequest_descriptor, @@ -629,7 +1111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(34); internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_descriptor, @@ -637,7 +1119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "BindingId", "Binding", "RequestId", }); internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(35); internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_descriptor, @@ -645,13 +1127,205 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Binding", "UpdateMask", "RequestId", }); internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(36); internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor, new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_descriptor, + new java.lang.String[] { + "Parent", "SkillId", "Skill", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_GetSkillRequest_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_agentregistry_v1_GetSkillRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetSkillRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_descriptor = + getDescriptor().getMessageType(39); + internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_descriptor, + new java.lang.String[] { + "Skill", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", + }); + internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_descriptor = + getDescriptor().getMessageType(41); + internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_descriptor = + getDescriptor().getMessageType(42); + internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_descriptor, + new java.lang.String[] { + "Skills", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_descriptor = + getDescriptor().getMessageType(43); + internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_descriptor, + new java.lang.String[] { + "Parent", "SearchType", "SearchString", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_descriptor = + getDescriptor().getMessageType(44); + internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_descriptor, + new java.lang.String[] { + "Skills", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_descriptor = + getDescriptor().getMessageType(45); + internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_descriptor, + new java.lang.String[] { + "Parent", "SkillRevision", "SkillRevisionId", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_descriptor = + getDescriptor().getMessageType(46); + internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_descriptor = + getDescriptor().getMessageType(47); + internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_descriptor = + getDescriptor().getMessageType(48); + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_descriptor = + getDescriptor().getMessageType(49); + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_descriptor, + new java.lang.String[] { + "SkillRevisions", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_descriptor = + getDescriptor().getMessageType(50); + internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_descriptor = + getDescriptor().getMessageType(51); + internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_descriptor = + getDescriptor().getMessageType(52); + internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_descriptor, + new java.lang.String[] { + "Publishers", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_descriptor = + getDescriptor().getMessageType(53); + internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_descriptor = + getDescriptor().getMessageType(54); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_descriptor = + getDescriptor().getMessageType(55); + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_descriptor, + new java.lang.String[] { + "AiApplications", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_descriptor = + getDescriptor().getMessageType(56); + internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_descriptor = + getDescriptor().getMessageType(57); + internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_descriptor, + new java.lang.String[] { + "Findings", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_GetFindingRequest_descriptor = + getDescriptor().getMessageType(58); + internal_static_google_cloud_agentregistry_v1_GetFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetFindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_descriptor = + getDescriptor().getMessageType(59); + internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_descriptor = + getDescriptor().getMessageType(60); + internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_descriptor, + new java.lang.String[] { + "SkillEncryptionSpec", "UpdateMask", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); @@ -659,10 +1333,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.agentregistry.v1.AgentProto.getDescriptor(); + com.google.cloud.agentregistry.v1.AiApplicationProto.getDescriptor(); com.google.cloud.agentregistry.v1.BindingProto.getDescriptor(); com.google.cloud.agentregistry.v1.EndpointProto.getDescriptor(); + com.google.cloud.agentregistry.v1.FindingProto.getDescriptor(); com.google.cloud.agentregistry.v1.McpServerProto.getDescriptor(); com.google.cloud.agentregistry.v1.ServiceProto.getDescriptor(); + com.google.cloud.agentregistry.v1.SkillProto.getDescriptor(); + com.google.cloud.agentregistry.v1.SkillEncryptionSpecProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplication.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplication.java new file mode 100644 index 000000000000..3ab4405a9f98 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplication.java @@ -0,0 +1,2798 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/ai_application.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Represents an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.AiApplication} + */ +@com.google.protobuf.Generated +public final class AiApplication extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.AiApplication) + AiApplicationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AiApplication"); + } + + // Use AiApplication.newBuilder() to construct. + private AiApplication(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AiApplication() { + name_ = ""; + displayName_ = ""; + description_ = ""; + uid_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AiApplicationProto + .internal_static_google_cloud_agentregistry_v1_AiApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AiApplicationProto + .internal_static_google_cloud_agentregistry_v1_AiApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.AiApplication.class, + com.google.cloud.agentregistry.v1.AiApplication.Builder.class); + } + + /** + * + * + *
+   * The lifecycle states of an AI Application.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.AiApplication.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The resource is being provisioned or created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The resource is active and ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The resource is in the process of being deleted.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The resource is being provisioned or created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * The resource is active and ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The resource is in the process of being deleted.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_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 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 CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + 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.agentregistry.v1.AiApplication.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.agentregistry.v1.AiApplication.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of the AI Application.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * 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 the AI Application.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. User-defined name for the AI Application.
+   * 
+ * + * string display_name = 2 [(.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. User-defined name for the AI Application.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. User-defined description of the AI Application.
+   * 
+ * + * 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. User-defined description of the AI Application.
+   * 
+ * + * 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 UID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the AI Application.
+   * 
+ * + * + * string uid = 4 [(.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. Universally unique identifier (UUID4) for the AI Application.
+   * 
+ * + * + * string uid = 4 [(.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 CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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. Creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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. Creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Last update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.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. Last update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.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. Last update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.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 STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The current state of the AI Application.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.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 current state of the AI Application.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.AiApplication.State getState() { + com.google.cloud.agentregistry.v1.AiApplication.State result = + com.google.cloud.agentregistry.v1.AiApplication.State.forNumber(state_); + return result == null + ? com.google.cloud.agentregistry.v1.AiApplication.State.UNRECOGNIZED + : result; + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 8; + private com.google.cloud.apphub.v1.Attributes attributes_; + + /** + * + * + *
+   * Optional. Consumer provided attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + @java.lang.Override + public boolean hasAttributes() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Consumer provided attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + @java.lang.Override + public com.google.cloud.apphub.v1.Attributes getAttributes() { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + + /** + * + * + *
+   * Optional. Consumer provided attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder() { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + + public static final int APPLICATION_PROPERTIES_FIELD_NUMBER = 9; + private com.google.cloud.apphub.v1.ApplicationProperties applicationProperties_; + + /** + * + * + *
+   * Output only. Properties of an underlying cloud resource that can comprise
+   * an AI Application.
+   * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationProperties field is set. + */ + @java.lang.Override + public boolean hasApplicationProperties() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Properties of an underlying cloud resource that can comprise
+   * an AI Application.
+   * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationProperties. + */ + @java.lang.Override + public com.google.cloud.apphub.v1.ApplicationProperties getApplicationProperties() { + return applicationProperties_ == null + ? com.google.cloud.apphub.v1.ApplicationProperties.getDefaultInstance() + : applicationProperties_; + } + + /** + * + * + *
+   * Output only. Properties of an underlying cloud resource that can comprise
+   * an AI Application.
+   * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.apphub.v1.ApplicationPropertiesOrBuilder + getApplicationPropertiesOrBuilder() { + return applicationProperties_ == null + ? com.google.cloud.apphub.v1.ApplicationProperties.getDefaultInstance() + : applicationProperties_; + } + + 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, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (state_ + != com.google.cloud.agentregistry.v1.AiApplication.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getAttributes()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getApplicationProperties()); + } + 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(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (state_ + != com.google.cloud.agentregistry.v1.AiApplication.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAttributes()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getApplicationProperties()); + } + 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.agentregistry.v1.AiApplication)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.AiApplication other = + (com.google.cloud.agentregistry.v1.AiApplication) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUid().equals(other.getUid())) 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 (state_ != other.state_) return false; + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes().equals(other.getAttributes())) return false; + } + if (hasApplicationProperties() != other.hasApplicationProperties()) return false; + if (hasApplicationProperties()) { + if (!getApplicationProperties().equals(other.getApplicationProperties())) 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) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + if (hasApplicationProperties()) { + hash = (37 * hash) + APPLICATION_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getApplicationProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.AiApplication parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.AiApplication 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.agentregistry.v1.AiApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.AiApplication 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.agentregistry.v1.AiApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.AiApplication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.AiApplication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.AiApplication 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.agentregistry.v1.AiApplication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.AiApplication 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.agentregistry.v1.AiApplication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.AiApplication 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.agentregistry.v1.AiApplication 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 an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.AiApplication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.AiApplication) + com.google.cloud.agentregistry.v1.AiApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AiApplicationProto + .internal_static_google_cloud_agentregistry_v1_AiApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AiApplicationProto + .internal_static_google_cloud_agentregistry_v1_AiApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.AiApplication.class, + com.google.cloud.agentregistry.v1.AiApplication.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.AiApplication.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(); + internalGetAttributesFieldBuilder(); + internalGetApplicationPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + state_ = 0; + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + applicationProperties_ = null; + if (applicationPropertiesBuilder_ != null) { + applicationPropertiesBuilder_.dispose(); + applicationPropertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AiApplicationProto + .internal_static_google_cloud_agentregistry_v1_AiApplication_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.AiApplication getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.AiApplication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.AiApplication build() { + com.google.cloud.agentregistry.v1.AiApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.AiApplication buildPartial() { + com.google.cloud.agentregistry.v1.AiApplication result = + new com.google.cloud.agentregistry.v1.AiApplication(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.AiApplication 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.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.attributes_ = attributesBuilder_ == null ? attributes_ : attributesBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.applicationProperties_ = + applicationPropertiesBuilder_ == null + ? applicationProperties_ + : applicationPropertiesBuilder_.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.agentregistry.v1.AiApplication) { + return mergeFrom((com.google.cloud.agentregistry.v1.AiApplication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.AiApplication other) { + if (other == com.google.cloud.agentregistry.v1.AiApplication.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.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + if (other.hasApplicationProperties()) { + mergeApplicationProperties(other.getApplicationProperties()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + input.readMessage( + internalGetAttributesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetApplicationPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + 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 the AI Application.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * 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 the AI Application.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * 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 the AI Application.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * 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 the AI Application.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * 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 the AI Application.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * 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 displayName_ = ""; + + /** + * + * + *
+     * Optional. User-defined name for the AI Application.
+     * 
+ * + * string display_name = 2 [(.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. User-defined name for the AI Application.
+     * 
+ * + * string display_name = 2 [(.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. User-defined name for the AI Application.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-defined name for the AI Application.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-defined name for the AI Application.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. User-defined description of the AI Application.
+     * 
+ * + * 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. User-defined description of the AI Application.
+     * 
+ * + * 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. User-defined description of the AI Application.
+     * 
+ * + * 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. User-defined description of the AI Application.
+     * 
+ * + * 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. User-defined description of the AI Application.
+     * 
+ * + * 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 uid_ = ""; + + /** + * + * + *
+     * Output only. Universally unique identifier (UUID4) for the AI Application.
+     * 
+ * + * + * string uid = 4 [(.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. Universally unique identifier (UUID4) for the AI Application.
+     * 
+ * + * + * string uid = 4 [(.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. Universally unique identifier (UUID4) for the AI Application.
+     * 
+ * + * + * string uid = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Universally unique identifier (UUID4) for the AI Application.
+     * 
+ * + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Universally unique identifier (UUID4) for the AI Application.
+     * 
+ * + * + * string uid = 4 [(.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_ |= 0x00000008; + onChanged(); + 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. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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. Last update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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 int state_ = 0; + + /** + * + * + *
+     * Output only. The current state of the AI Application.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.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 current state of the AI Application.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the AI Application.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.AiApplication.State getState() { + com.google.cloud.agentregistry.v1.AiApplication.State result = + com.google.cloud.agentregistry.v1.AiApplication.State.forNumber(state_); + return result == null + ? com.google.cloud.agentregistry.v1.AiApplication.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The current state of the AI Application.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.agentregistry.v1.AiApplication.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the AI Application.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.apphub.v1.Attributes attributes_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder> + attributesBuilder_; + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + public boolean hasAttributes() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + public com.google.cloud.apphub.v1.Attributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes(com.google.cloud.apphub.v1.Attributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + } else { + attributesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes(com.google.cloud.apphub.v1.Attributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAttributes(com.google.cloud.apphub.v1.Attributes value) { + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && attributes_ != null + && attributes_ != com.google.cloud.apphub.v1.Attributes.getDefaultInstance()) { + getAttributesBuilder().mergeFrom(value); + } else { + attributes_ = value; + } + } else { + attributesBuilder_.mergeFrom(value); + } + if (attributes_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000080); + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.Attributes.Builder getAttributesBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetAttributesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + } + + /** + * + * + *
+     * Optional. Consumer provided attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder> + internalGetAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder>( + getAttributes(), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private com.google.cloud.apphub.v1.ApplicationProperties applicationProperties_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.ApplicationProperties, + com.google.cloud.apphub.v1.ApplicationProperties.Builder, + com.google.cloud.apphub.v1.ApplicationPropertiesOrBuilder> + applicationPropertiesBuilder_; + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationProperties field is set. + */ + public boolean hasApplicationProperties() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationProperties. + */ + public com.google.cloud.apphub.v1.ApplicationProperties getApplicationProperties() { + if (applicationPropertiesBuilder_ == null) { + return applicationProperties_ == null + ? com.google.cloud.apphub.v1.ApplicationProperties.getDefaultInstance() + : applicationProperties_; + } else { + return applicationPropertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationProperties( + com.google.cloud.apphub.v1.ApplicationProperties value) { + if (applicationPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationProperties_ = value; + } else { + applicationPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationProperties( + com.google.cloud.apphub.v1.ApplicationProperties.Builder builderForValue) { + if (applicationPropertiesBuilder_ == null) { + applicationProperties_ = builderForValue.build(); + } else { + applicationPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeApplicationProperties( + com.google.cloud.apphub.v1.ApplicationProperties value) { + if (applicationPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && applicationProperties_ != null + && applicationProperties_ + != com.google.cloud.apphub.v1.ApplicationProperties.getDefaultInstance()) { + getApplicationPropertiesBuilder().mergeFrom(value); + } else { + applicationProperties_ = value; + } + } else { + applicationPropertiesBuilder_.mergeFrom(value); + } + if (applicationProperties_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearApplicationProperties() { + bitField0_ = (bitField0_ & ~0x00000100); + applicationProperties_ = null; + if (applicationPropertiesBuilder_ != null) { + applicationPropertiesBuilder_.dispose(); + applicationPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.apphub.v1.ApplicationProperties.Builder + getApplicationPropertiesBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetApplicationPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.apphub.v1.ApplicationPropertiesOrBuilder + getApplicationPropertiesOrBuilder() { + if (applicationPropertiesBuilder_ != null) { + return applicationPropertiesBuilder_.getMessageOrBuilder(); + } else { + return applicationProperties_ == null + ? com.google.cloud.apphub.v1.ApplicationProperties.getDefaultInstance() + : applicationProperties_; + } + } + + /** + * + * + *
+     * Output only. Properties of an underlying cloud resource that can comprise
+     * an AI Application.
+     * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.ApplicationProperties, + com.google.cloud.apphub.v1.ApplicationProperties.Builder, + com.google.cloud.apphub.v1.ApplicationPropertiesOrBuilder> + internalGetApplicationPropertiesFieldBuilder() { + if (applicationPropertiesBuilder_ == null) { + applicationPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.ApplicationProperties, + com.google.cloud.apphub.v1.ApplicationProperties.Builder, + com.google.cloud.apphub.v1.ApplicationPropertiesOrBuilder>( + getApplicationProperties(), getParentForChildren(), isClean()); + applicationProperties_ = null; + } + return applicationPropertiesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.AiApplication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.AiApplication) + private static final com.google.cloud.agentregistry.v1.AiApplication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.AiApplication(); + } + + public static com.google.cloud.agentregistry.v1.AiApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AiApplication 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.agentregistry.v1.AiApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationName.java new file mode 100644 index 000000000000..dd0b99be02a9 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationName.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AiApplicationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AI_APPLICATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aiApplications/{ai_application}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aiApplication; + + @Deprecated + protected AiApplicationName() { + project = null; + location = null; + aiApplication = null; + } + + private AiApplicationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aiApplication = Preconditions.checkNotNull(builder.getAiApplication()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAiApplication() { + return aiApplication; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AiApplicationName of(String project, String location, String aiApplication) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAiApplication(aiApplication) + .build(); + } + + public static String format(String project, String location, String aiApplication) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAiApplication(aiApplication) + .build() + .toString(); + } + + public static @Nullable AiApplicationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AI_APPLICATION.validatedMatch( + formattedString, "AiApplicationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("ai_application")); + } + + 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<@Nullable AiApplicationName> values) { + List list = new ArrayList<>(values.size()); + for (AiApplicationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AI_APPLICATION.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 (aiApplication != null) { + fieldMapBuilder.put("ai_application", aiApplication); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AI_APPLICATION.instantiate( + "project", project, "location", location, "ai_application", aiApplication); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AiApplicationName that = ((AiApplicationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aiApplication, that.aiApplication); + } + 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(aiApplication); + return h; + } + + /** Builder for projects/{project}/locations/{location}/aiApplications/{ai_application}. */ + public static class Builder { + private String project; + private String location; + private String aiApplication; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAiApplication() { + return aiApplication; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAiApplication(String aiApplication) { + this.aiApplication = aiApplication; + return this; + } + + private Builder(AiApplicationName aiApplicationName) { + this.project = aiApplicationName.project; + this.location = aiApplicationName.location; + this.aiApplication = aiApplicationName.aiApplication; + } + + public AiApplicationName build() { + return new AiApplicationName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationOrBuilder.java new file mode 100644 index 000000000000..69e0d764f997 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationOrBuilder.java @@ -0,0 +1,339 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/ai_application.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface AiApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.AiApplication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the AI Application.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of the AI Application.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. User-defined name for the AI Application.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. User-defined name for the AI Application.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. User-defined description of the AI Application.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. User-defined description of the AI Application.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the AI Application.
+   * 
+ * + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the AI Application.
+   * 
+ * + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. Creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Last update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Last update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Last update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The current state of the AI Application.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The current state of the AI Application.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.AiApplication.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.agentregistry.v1.AiApplication.State getState(); + + /** + * + * + *
+   * Optional. Consumer provided attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + boolean hasAttributes(); + + /** + * + * + *
+   * Optional. Consumer provided attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + com.google.cloud.apphub.v1.Attributes getAttributes(); + + /** + * + * + *
+   * Optional. Consumer provided attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder(); + + /** + * + * + *
+   * Output only. Properties of an underlying cloud resource that can comprise
+   * an AI Application.
+   * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationProperties field is set. + */ + boolean hasApplicationProperties(); + + /** + * + * + *
+   * Output only. Properties of an underlying cloud resource that can comprise
+   * an AI Application.
+   * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationProperties. + */ + com.google.cloud.apphub.v1.ApplicationProperties getApplicationProperties(); + + /** + * + * + *
+   * Output only. Properties of an underlying cloud resource that can comprise
+   * an AI Application.
+   * 
+ * + * + * .google.cloud.apphub.v1.ApplicationProperties application_properties = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.apphub.v1.ApplicationPropertiesOrBuilder getApplicationPropertiesOrBuilder(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationProto.java new file mode 100644 index 000000000000..59f98dbd18c3 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AiApplicationProto.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/ai_application.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class AiApplicationProto extends com.google.protobuf.GeneratedFile { + private AiApplicationProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AiApplicationProto"); + } + + 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_agentregistry_v1_AiApplication_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_AiApplication_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" + + "2google/cloud/agentregistry/v1/ai_application.proto\022\035google.cloud.agentregistry" + + ".v1\032\037google/api/field_behavior.proto\032\033go" + + "ogle/api/field_info.proto\032\031google/api/re" + + "source.proto\032(google/cloud/apphub/v1/app" + + "lication.proto\032\'google/cloud/apphub/v1/a" + + "ttributes.proto\032\037google/protobuf/timestamp.proto\"\242\005\n\r" + + "AiApplication\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\022\031\n" + + "\003uid\030\004 \001(\tB\014\342A\001\003\342\214\317\327\010\002\010\001\0225\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022G\n" + + "\005state\030\007" + + " \001(\01622.google.cloud.agentregistry.v1.AiApplication.StateB\004\342A\001\003\022<\n\n" + + "attributes\030\010" + + " \001(\0132\".google.cloud.apphub.v1.AttributesB\004\342A\001\001\022S\n" + + "\026application_properties\030\t" + + " \001(\0132-.google.cloud.apphub.v1.ApplicationPropertiesB\004\342A\001\003\"F\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010DELETING\020\003:\230\001\352A\224\001\n" + + "*agentregistry.googleapis.com/AiApplication\022Gprojects/{project" + + "}/locations/{location}/aiApplications/{ai_application}*\016aiApplications2\r" + + "aiApplicationB\345\001\n" + + "!com.google.cloud.agentregistry.v1B\022AiApplicationProtoP\001ZGcloud.google." + + "com/go/agentregistry/apiv1/agentregistry" + + "pb;agentregistrypb\252\002\035Google.Cloud.AgentR" + + "egistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::V1b\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.cloud.apphub.v1.ApplicationProto.getDescriptor(), + com.google.cloud.apphub.v1.AttributesProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_agentregistry_v1_AiApplication_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_AiApplication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_AiApplication_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "Uid", + "CreateTime", + "UpdateTime", + "State", + "Attributes", + "ApplicationProperties", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.apphub.v1.ApplicationProto.getDescriptor(); + com.google.cloud.apphub.v1.AttributesProto.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.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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ArchiveUploadSource.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ArchiveUploadSource.java new file mode 100644 index 000000000000..431cb13dd5a1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ArchiveUploadSource.java @@ -0,0 +1,520 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Direct write-only raw archive payload upload.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ArchiveUploadSource} + */ +@com.google.protobuf.Generated +public final class ArchiveUploadSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ArchiveUploadSource) + ArchiveUploadSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ArchiveUploadSource"); + } + + // Use ArchiveUploadSource.newBuilder() to construct. + private ArchiveUploadSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ArchiveUploadSource() { + archiveContent_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ArchiveUploadSource.class, + com.google.cloud.agentregistry.v1.ArchiveUploadSource.Builder.class); + } + + public static final int ARCHIVE_CONTENT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString archiveContent_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Required. Input only. Write-only raw ZIP/TAR archive payload bytes
+   * containing the skill package.
+   * 
+ * + * + * bytes archive_content = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The archiveContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArchiveContent() { + return archiveContent_; + } + + 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 (!archiveContent_.isEmpty()) { + output.writeBytes(1, archiveContent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!archiveContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, archiveContent_); + } + 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.agentregistry.v1.ArchiveUploadSource)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ArchiveUploadSource other = + (com.google.cloud.agentregistry.v1.ArchiveUploadSource) obj; + + if (!getArchiveContent().equals(other.getArchiveContent())) 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) + ARCHIVE_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getArchiveContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource 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.agentregistry.v1.ArchiveUploadSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource 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.agentregistry.v1.ArchiveUploadSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource 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.agentregistry.v1.ArchiveUploadSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource 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.agentregistry.v1.ArchiveUploadSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource 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.agentregistry.v1.ArchiveUploadSource 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; + } + + /** + * + * + *
+   * Direct write-only raw archive payload upload.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ArchiveUploadSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ArchiveUploadSource) + com.google.cloud.agentregistry.v1.ArchiveUploadSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ArchiveUploadSource.class, + com.google.cloud.agentregistry.v1.ArchiveUploadSource.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ArchiveUploadSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + archiveContent_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ArchiveUploadSource getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ArchiveUploadSource build() { + com.google.cloud.agentregistry.v1.ArchiveUploadSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ArchiveUploadSource buildPartial() { + com.google.cloud.agentregistry.v1.ArchiveUploadSource result = + new com.google.cloud.agentregistry.v1.ArchiveUploadSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ArchiveUploadSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.archiveContent_ = archiveContent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ArchiveUploadSource) { + return mergeFrom((com.google.cloud.agentregistry.v1.ArchiveUploadSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ArchiveUploadSource other) { + if (other == com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance()) + return this; + if (!other.getArchiveContent().isEmpty()) { + setArchiveContent(other.getArchiveContent()); + } + 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: + { + archiveContent_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString archiveContent_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Required. Input only. Write-only raw ZIP/TAR archive payload bytes
+     * containing the skill package.
+     * 
+ * + * + * bytes archive_content = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The archiveContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArchiveContent() { + return archiveContent_; + } + + /** + * + * + *
+     * Required. Input only. Write-only raw ZIP/TAR archive payload bytes
+     * containing the skill package.
+     * 
+ * + * + * bytes archive_content = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The archiveContent to set. + * @return This builder for chaining. + */ + public Builder setArchiveContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + archiveContent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Input only. Write-only raw ZIP/TAR archive payload bytes
+     * containing the skill package.
+     * 
+ * + * + * bytes archive_content = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArchiveContent() { + bitField0_ = (bitField0_ & ~0x00000001); + archiveContent_ = getDefaultInstance().getArchiveContent(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ArchiveUploadSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ArchiveUploadSource) + private static final com.google.cloud.agentregistry.v1.ArchiveUploadSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ArchiveUploadSource(); + } + + public static com.google.cloud.agentregistry.v1.ArchiveUploadSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveUploadSource 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.agentregistry.v1.ArchiveUploadSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ArchiveUploadSourceOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ArchiveUploadSourceOrBuilder.java new file mode 100644 index 000000000000..da8ef847365e --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ArchiveUploadSourceOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ArchiveUploadSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ArchiveUploadSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Input only. Write-only raw ZIP/TAR archive payload bytes
+   * containing the skill package.
+   * 
+ * + * + * bytes archive_content = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The archiveContent. + */ + com.google.protobuf.ByteString getArchiveContent(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRequest.java new file mode 100644 index 000000000000..fc5053871157 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRequest.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * =========================================================================
+ * # Skills Messages
+ *
+ * Message requesting creation of a logical Skill container.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.CreateSkillRequest} + */ +@com.google.protobuf.Generated +public final class CreateSkillRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.CreateSkillRequest) + CreateSkillRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateSkillRequest"); + } + + // Use CreateSkillRequest.newBuilder() to construct. + private CreateSkillRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateSkillRequest() { + parent_ = ""; + skillId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.CreateSkillRequest.class, + com.google.cloud.agentregistry.v1.CreateSkillRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The project and location location to bootstrap.
+   * 
+ * + * + * 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 project and location location to bootstrap.
+   * 
+ * + * + * 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 SKILL_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object skillId_ = ""; + + /** + * + * + *
+   * Required. Custom, user-defined unique container identifier.
+   * Must be unique within the parent project and location.
+   * This value should be 4-64 characters, and valid characters
+   * are `/[a-z][0-9]-/`.
+   * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The skillId. + */ + @java.lang.Override + public java.lang.String getSkillId() { + java.lang.Object ref = skillId_; + 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(); + skillId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Custom, user-defined unique container identifier.
+   * Must be unique within the parent project and location.
+   * This value should be 4-64 characters, and valid characters
+   * are `/[a-z][0-9]-/`.
+   * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for skillId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSkillIdBytes() { + java.lang.Object ref = skillId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKILL_FIELD_NUMBER = 3; + private com.google.cloud.agentregistry.v1.Skill skill_; + + /** + * + * + *
+   * Required. Skill container body config.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skill field is set. + */ + @java.lang.Override + public boolean hasSkill() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Skill container body config.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skill. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill getSkill() { + return skill_ == null ? com.google.cloud.agentregistry.v1.Skill.getDefaultInstance() : skill_; + } + + /** + * + * + *
+   * Required. Skill container body config.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillOrBuilder() { + return skill_ == null ? com.google.cloud.agentregistry.v1.Skill.getDefaultInstance() : skill_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(skillId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, skillId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSkill()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(skillId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, skillId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSkill()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.CreateSkillRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.CreateSkillRequest other = + (com.google.cloud.agentregistry.v1.CreateSkillRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSkillId().equals(other.getSkillId())) return false; + if (hasSkill() != other.hasSkill()) return false; + if (hasSkill()) { + if (!getSkill().equals(other.getSkill())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SKILL_ID_FIELD_NUMBER; + hash = (53 * hash) + getSkillId().hashCode(); + if (hasSkill()) { + hash = (37 * hash) + SKILL_FIELD_NUMBER; + hash = (53 * hash) + getSkill().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest 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.agentregistry.v1.CreateSkillRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest 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.agentregistry.v1.CreateSkillRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest 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.agentregistry.v1.CreateSkillRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest 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.agentregistry.v1.CreateSkillRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest 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.agentregistry.v1.CreateSkillRequest 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; + } + + /** + * + * + *
+   * =========================================================================
+   * # Skills Messages
+   *
+   * Message requesting creation of a logical Skill container.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.CreateSkillRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.CreateSkillRequest) + com.google.cloud.agentregistry.v1.CreateSkillRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.CreateSkillRequest.class, + com.google.cloud.agentregistry.v1.CreateSkillRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.CreateSkillRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSkillFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + skillId_ = ""; + skill_ = null; + if (skillBuilder_ != null) { + skillBuilder_.dispose(); + skillBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateSkillRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.CreateSkillRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateSkillRequest build() { + com.google.cloud.agentregistry.v1.CreateSkillRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateSkillRequest buildPartial() { + com.google.cloud.agentregistry.v1.CreateSkillRequest result = + new com.google.cloud.agentregistry.v1.CreateSkillRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.CreateSkillRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.skillId_ = skillId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.skill_ = skillBuilder_ == null ? skill_ : skillBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.CreateSkillRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.CreateSkillRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.CreateSkillRequest other) { + if (other == com.google.cloud.agentregistry.v1.CreateSkillRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSkillId().isEmpty()) { + skillId_ = other.skillId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSkill()) { + mergeSkill(other.getSkill()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + skillId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetSkillFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = 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 java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The project and location location to bootstrap.
+     * 
+ * + * + * 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 project and location location to bootstrap.
+     * 
+ * + * + * 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 project and location location to bootstrap.
+     * 
+ * + * + * 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 project and location location to bootstrap.
+     * 
+ * + * + * 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 project and location location to bootstrap.
+     * 
+ * + * + * 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 skillId_ = ""; + + /** + * + * + *
+     * Required. Custom, user-defined unique container identifier.
+     * Must be unique within the parent project and location.
+     * This value should be 4-64 characters, and valid characters
+     * are `/[a-z][0-9]-/`.
+     * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The skillId. + */ + public java.lang.String getSkillId() { + java.lang.Object ref = skillId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skillId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Custom, user-defined unique container identifier.
+     * Must be unique within the parent project and location.
+     * This value should be 4-64 characters, and valid characters
+     * are `/[a-z][0-9]-/`.
+     * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for skillId. + */ + public com.google.protobuf.ByteString getSkillIdBytes() { + java.lang.Object ref = skillId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Custom, user-defined unique container identifier.
+     * Must be unique within the parent project and location.
+     * This value should be 4-64 characters, and valid characters
+     * are `/[a-z][0-9]-/`.
+     * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The skillId to set. + * @return This builder for chaining. + */ + public Builder setSkillId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + skillId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Custom, user-defined unique container identifier.
+     * Must be unique within the parent project and location.
+     * This value should be 4-64 characters, and valid characters
+     * are `/[a-z][0-9]-/`.
+     * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSkillId() { + skillId_ = getDefaultInstance().getSkillId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Custom, user-defined unique container identifier.
+     * Must be unique within the parent project and location.
+     * This value should be 4-64 characters, and valid characters
+     * are `/[a-z][0-9]-/`.
+     * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for skillId to set. + * @return This builder for chaining. + */ + public Builder setSkillIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + skillId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.Skill skill_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder> + skillBuilder_; + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skill field is set. + */ + public boolean hasSkill() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skill. + */ + public com.google.cloud.agentregistry.v1.Skill getSkill() { + if (skillBuilder_ == null) { + return skill_ == null + ? com.google.cloud.agentregistry.v1.Skill.getDefaultInstance() + : skill_; + } else { + return skillBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkill(com.google.cloud.agentregistry.v1.Skill value) { + if (skillBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + skill_ = value; + } else { + skillBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkill(com.google.cloud.agentregistry.v1.Skill.Builder builderForValue) { + if (skillBuilder_ == null) { + skill_ = builderForValue.build(); + } else { + skillBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSkill(com.google.cloud.agentregistry.v1.Skill value) { + if (skillBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && skill_ != null + && skill_ != com.google.cloud.agentregistry.v1.Skill.getDefaultInstance()) { + getSkillBuilder().mergeFrom(value); + } else { + skill_ = value; + } + } else { + skillBuilder_.mergeFrom(value); + } + if (skill_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSkill() { + bitField0_ = (bitField0_ & ~0x00000004); + skill_ = null; + if (skillBuilder_ != null) { + skillBuilder_.dispose(); + skillBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Skill.Builder getSkillBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSkillFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillOrBuilder() { + if (skillBuilder_ != null) { + return skillBuilder_.getMessageOrBuilder(); + } else { + return skill_ == null + ? com.google.cloud.agentregistry.v1.Skill.getDefaultInstance() + : skill_; + } + } + + /** + * + * + *
+     * Required. Skill container body config.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder> + internalGetSkillFieldBuilder() { + if (skillBuilder_ == null) { + skillBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder>( + getSkill(), getParentForChildren(), isClean()); + skill_ = null; + } + return skillBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.CreateSkillRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.CreateSkillRequest) + private static final com.google.cloud.agentregistry.v1.CreateSkillRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.CreateSkillRequest(); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSkillRequest 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.agentregistry.v1.CreateSkillRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRequestOrBuilder.java new file mode 100644 index 000000000000..025d82e1f599 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface CreateSkillRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.CreateSkillRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project and location location to bootstrap.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The project and location location to bootstrap.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Custom, user-defined unique container identifier.
+   * Must be unique within the parent project and location.
+   * This value should be 4-64 characters, and valid characters
+   * are `/[a-z][0-9]-/`.
+   * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The skillId. + */ + java.lang.String getSkillId(); + + /** + * + * + *
+   * Required. Custom, user-defined unique container identifier.
+   * Must be unique within the parent project and location.
+   * This value should be 4-64 characters, and valid characters
+   * are `/[a-z][0-9]-/`.
+   * 
+ * + * string skill_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for skillId. + */ + com.google.protobuf.ByteString getSkillIdBytes(); + + /** + * + * + *
+   * Required. Skill container body config.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skill field is set. + */ + boolean hasSkill(); + + /** + * + * + *
+   * Required. Skill container body config.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skill. + */ + com.google.cloud.agentregistry.v1.Skill getSkill(); + + /** + * + * + *
+   * Required. Skill container body config.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillOrBuilder(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRevisionRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRevisionRequest.java new file mode 100644 index 000000000000..8cd236d5249b --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRevisionRequest.java @@ -0,0 +1,1333 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Requesting creation of a new SkillRevision snapshot.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.CreateSkillRevisionRequest} + */ +@com.google.protobuf.Generated +public final class CreateSkillRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.CreateSkillRevisionRequest) + CreateSkillRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateSkillRevisionRequest"); + } + + // Use CreateSkillRevisionRequest.newBuilder() to construct. + private CreateSkillRevisionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateSkillRevisionRequest() { + parent_ = ""; + skillRevisionId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest.class, + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent logical container name.
+   * 
+ * + * + * 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. Parent logical container name.
+   * 
+ * + * + * 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 SKILL_REVISION_FIELD_NUMBER = 2; + private com.google.cloud.agentregistry.v1.SkillRevision skillRevision_; + + /** + * + * + *
+   * Required. Immutable SkillRevision snapshot definition schema.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skillRevision field is set. + */ + @java.lang.Override + public boolean hasSkillRevision() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Immutable SkillRevision snapshot definition schema.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skillRevision. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision getSkillRevision() { + return skillRevision_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance() + : skillRevision_; + } + + /** + * + * + *
+   * Required. Immutable SkillRevision snapshot definition schema.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getSkillRevisionOrBuilder() { + return skillRevision_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance() + : skillRevision_; + } + + public static final int SKILL_REVISION_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object skillRevisionId_ = ""; + + /** + * + * + *
+   * Optional. Custom, user-defined unique revision identifier.
+   * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+   * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skillRevisionId. + */ + @java.lang.Override + public java.lang.String getSkillRevisionId() { + java.lang.Object ref = skillRevisionId_; + 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(); + skillRevisionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Custom, user-defined unique revision identifier.
+   * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+   * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for skillRevisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSkillRevisionIdBytes() { + java.lang.Object ref = skillRevisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSkillRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(skillRevisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, skillRevisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSkillRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(skillRevisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, skillRevisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest other = + (com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSkillRevision() != other.hasSkillRevision()) return false; + if (hasSkillRevision()) { + if (!getSkillRevision().equals(other.getSkillRevision())) return false; + } + if (!getSkillRevisionId().equals(other.getSkillRevisionId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSkillRevision()) { + hash = (37 * hash) + SKILL_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getSkillRevision().hashCode(); + } + hash = (37 * hash) + SKILL_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSkillRevisionId().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest 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.agentregistry.v1.CreateSkillRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest 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.agentregistry.v1.CreateSkillRevisionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest 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.agentregistry.v1.CreateSkillRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest 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.agentregistry.v1.CreateSkillRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest 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.agentregistry.v1.CreateSkillRevisionRequest 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; + } + + /** + * + * + *
+   * Requesting creation of a new SkillRevision snapshot.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.CreateSkillRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.CreateSkillRevisionRequest) + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest.class, + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSkillRevisionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + skillRevision_ = null; + if (skillRevisionBuilder_ != null) { + skillRevisionBuilder_.dispose(); + skillRevisionBuilder_ = null; + } + skillRevisionId_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateSkillRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest build() { + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest buildPartial() { + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest result = + new com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.skillRevision_ = + skillRevisionBuilder_ == null ? skillRevision_ : skillRevisionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.skillRevisionId_ = skillRevisionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest other) { + if (other + == com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSkillRevision()) { + mergeSkillRevision(other.getSkillRevision()); + } + if (!other.getSkillRevisionId().isEmpty()) { + skillRevisionId_ = other.skillRevisionId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetSkillRevisionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + skillRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = 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 java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Parent logical container name.
+     * 
+ * + * + * 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. Parent logical container name.
+     * 
+ * + * + * 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. Parent logical container name.
+     * 
+ * + * + * 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. Parent logical container name.
+     * 
+ * + * + * 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. Parent logical container name.
+     * 
+ * + * + * 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.agentregistry.v1.SkillRevision skillRevision_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder> + skillRevisionBuilder_; + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skillRevision field is set. + */ + public boolean hasSkillRevision() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skillRevision. + */ + public com.google.cloud.agentregistry.v1.SkillRevision getSkillRevision() { + if (skillRevisionBuilder_ == null) { + return skillRevision_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance() + : skillRevision_; + } else { + return skillRevisionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkillRevision(com.google.cloud.agentregistry.v1.SkillRevision value) { + if (skillRevisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + skillRevision_ = value; + } else { + skillRevisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkillRevision( + com.google.cloud.agentregistry.v1.SkillRevision.Builder builderForValue) { + if (skillRevisionBuilder_ == null) { + skillRevision_ = builderForValue.build(); + } else { + skillRevisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSkillRevision(com.google.cloud.agentregistry.v1.SkillRevision value) { + if (skillRevisionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && skillRevision_ != null + && skillRevision_ + != com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance()) { + getSkillRevisionBuilder().mergeFrom(value); + } else { + skillRevision_ = value; + } + } else { + skillRevisionBuilder_.mergeFrom(value); + } + if (skillRevision_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSkillRevision() { + bitField0_ = (bitField0_ & ~0x00000002); + skillRevision_ = null; + if (skillRevisionBuilder_ != null) { + skillRevisionBuilder_.dispose(); + skillRevisionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.SkillRevision.Builder getSkillRevisionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSkillRevisionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getSkillRevisionOrBuilder() { + if (skillRevisionBuilder_ != null) { + return skillRevisionBuilder_.getMessageOrBuilder(); + } else { + return skillRevision_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance() + : skillRevision_; + } + } + + /** + * + * + *
+     * Required. Immutable SkillRevision snapshot definition schema.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder> + internalGetSkillRevisionFieldBuilder() { + if (skillRevisionBuilder_ == null) { + skillRevisionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder>( + getSkillRevision(), getParentForChildren(), isClean()); + skillRevision_ = null; + } + return skillRevisionBuilder_; + } + + private java.lang.Object skillRevisionId_ = ""; + + /** + * + * + *
+     * Optional. Custom, user-defined unique revision identifier.
+     * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+     * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skillRevisionId. + */ + public java.lang.String getSkillRevisionId() { + java.lang.Object ref = skillRevisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skillRevisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Custom, user-defined unique revision identifier.
+     * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+     * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for skillRevisionId. + */ + public com.google.protobuf.ByteString getSkillRevisionIdBytes() { + java.lang.Object ref = skillRevisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Custom, user-defined unique revision identifier.
+     * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+     * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skillRevisionId to set. + * @return This builder for chaining. + */ + public Builder setSkillRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + skillRevisionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Custom, user-defined unique revision identifier.
+     * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+     * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkillRevisionId() { + skillRevisionId_ = getDefaultInstance().getSkillRevisionId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Custom, user-defined unique revision identifier.
+     * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+     * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for skillRevisionId to set. + * @return This builder for chaining. + */ + public Builder setSkillRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + skillRevisionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.CreateSkillRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.CreateSkillRevisionRequest) + private static final com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest(); + } + + public static com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSkillRevisionRequest 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.agentregistry.v1.CreateSkillRevisionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRevisionRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..cb83ac538d96 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateSkillRevisionRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface CreateSkillRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.CreateSkillRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent logical container name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent logical container name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Immutable SkillRevision snapshot definition schema.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skillRevision field is set. + */ + boolean hasSkillRevision(); + + /** + * + * + *
+   * Required. Immutable SkillRevision snapshot definition schema.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skillRevision. + */ + com.google.cloud.agentregistry.v1.SkillRevision getSkillRevision(); + + /** + * + * + *
+   * Required. Immutable SkillRevision snapshot definition schema.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision skill_revision = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getSkillRevisionOrBuilder(); + + /** + * + * + *
+   * Optional. Custom, user-defined unique revision identifier.
+   * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+   * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skillRevisionId. + */ + java.lang.String getSkillRevisionId(); + + /** + * + * + *
+   * Optional. Custom, user-defined unique revision identifier.
+   * Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`
+   * 
+ * + * string skill_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for skillRevisionId. + */ + com.google.protobuf.ByteString getSkillRevisionIdBytes(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRequest.java new file mode 100644 index 000000000000..8bcd132cd482 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRequest.java @@ -0,0 +1,918 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message requesting deletion of a Skill.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.DeleteSkillRequest} + */ +@com.google.protobuf.Generated +public final class DeleteSkillRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.DeleteSkillRequest) + DeleteSkillRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteSkillRequest"); + } + + // Use DeleteSkillRequest.newBuilder() to construct. + private DeleteSkillRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteSkillRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.DeleteSkillRequest.class, + com.google.cloud.agentregistry.v1.DeleteSkillRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Target Skill container name to remove.
+   * 
+ * + * + * 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. Target Skill container name to remove.
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, any child SkillRevisions under this Skill will
+   * also be deleted. Otherwise, the request will only succeed if the Skill has
+   * no child SkillRevisions.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + 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(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, 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(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.DeleteSkillRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.DeleteSkillRequest other = + (com.google.cloud.agentregistry.v1.DeleteSkillRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest 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.agentregistry.v1.DeleteSkillRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest 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.agentregistry.v1.DeleteSkillRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest 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.agentregistry.v1.DeleteSkillRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest 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.agentregistry.v1.DeleteSkillRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest 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.agentregistry.v1.DeleteSkillRequest 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 requesting deletion of a Skill.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.DeleteSkillRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.DeleteSkillRequest) + com.google.cloud.agentregistry.v1.DeleteSkillRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.DeleteSkillRequest.class, + com.google.cloud.agentregistry.v1.DeleteSkillRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.DeleteSkillRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteSkillRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.DeleteSkillRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteSkillRequest build() { + com.google.cloud.agentregistry.v1.DeleteSkillRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteSkillRequest buildPartial() { + com.google.cloud.agentregistry.v1.DeleteSkillRequest result = + new com.google.cloud.agentregistry.v1.DeleteSkillRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.DeleteSkillRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.DeleteSkillRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.DeleteSkillRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.DeleteSkillRequest other) { + if (other == com.google.cloud.agentregistry.v1.DeleteSkillRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + 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: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = 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_ = ""; + + /** + * + * + *
+     * Required. Target Skill container name to remove.
+     * 
+ * + * + * 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. Target Skill container name to remove.
+     * 
+ * + * + * 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. Target Skill container name to remove.
+     * 
+ * + * + * 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. Target Skill container name to remove.
+     * 
+ * + * + * 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. Target Skill container name to remove.
+     * 
+ * + * + * 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 requestId_ = ""; + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
+     * Optional. If set to true, any child SkillRevisions under this Skill will
+     * also be deleted. Otherwise, the request will only succeed if the Skill has
+     * no child SkillRevisions.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, any child SkillRevisions under this Skill will
+     * also be deleted. Otherwise, the request will only succeed if the Skill has
+     * no child SkillRevisions.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, any child SkillRevisions under this Skill will
+     * also be deleted. Otherwise, the request will only succeed if the Skill has
+     * no child SkillRevisions.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.DeleteSkillRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.DeleteSkillRequest) + private static final com.google.cloud.agentregistry.v1.DeleteSkillRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.DeleteSkillRequest(); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSkillRequest 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.agentregistry.v1.DeleteSkillRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRequestOrBuilder.java new file mode 100644 index 000000000000..26d70aafb540 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface DeleteSkillRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.DeleteSkillRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Target Skill container name to remove.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Target Skill container name to remove.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, any child SkillRevisions under this Skill will
+   * also be deleted. Otherwise, the request will only succeed if the Skill has
+   * no child SkillRevisions.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRevisionRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRevisionRequest.java new file mode 100644 index 000000000000..793595dbbe90 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRevisionRequest.java @@ -0,0 +1,818 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Requesting deletion of a specific Revision.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.DeleteSkillRevisionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteSkillRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) + DeleteSkillRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteSkillRevisionRequest"); + } + + // Use DeleteSkillRevisionRequest.newBuilder() to construct. + private DeleteSkillRevisionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteSkillRevisionRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest.class, + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Target revision name to remove.
+   * 
+ * + * + * 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. Target revision name to remove.
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest other = + (com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest 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.agentregistry.v1.DeleteSkillRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest 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.agentregistry.v1.DeleteSkillRevisionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest 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.agentregistry.v1.DeleteSkillRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest 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.agentregistry.v1.DeleteSkillRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest 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.agentregistry.v1.DeleteSkillRevisionRequest 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; + } + + /** + * + * + *
+   * Requesting deletion of a specific Revision.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.DeleteSkillRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest.class, + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteSkillRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest build() { + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest buildPartial() { + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest result = + new com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest other) { + if (other + == com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Target revision name to remove.
+     * 
+ * + * + * 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. Target revision name to remove.
+     * 
+ * + * + * 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. Target revision name to remove.
+     * 
+ * + * + * 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. Target revision name to remove.
+     * 
+ * + * + * 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. Target revision name to remove.
+     * 
+ * + * + * 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 requestId_ = ""; + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) + private static final com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest(); + } + + public static com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSkillRevisionRequest 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.agentregistry.v1.DeleteSkillRevisionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRevisionRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..ad090d4e0f99 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteSkillRevisionRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface DeleteSkillRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.DeleteSkillRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Target revision name to remove.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Target revision name to remove.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java index 729ee2fd29e0..bc7c26ac0fd9 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java @@ -17,6 +17,7 @@ package com.google.cloud.agentregistry.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; @@ -35,22 +36,39 @@ public class EndpointName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_ENDPOINT = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/endpoints/{endpoint}"); + private static final PathTemplate PROJECT_LOCATION_AI_APPLICATION_ENDPOINT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String project; private final String location; private final String endpoint; + private final String aiApplication; @Deprecated protected EndpointName() { project = null; location = null; endpoint = null; + aiApplication = null; } private EndpointName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); endpoint = Preconditions.checkNotNull(builder.getEndpoint()); + aiApplication = null; + pathTemplate = PROJECT_LOCATION_ENDPOINT; + } + + private EndpointName(ProjectLocationAiApplicationEndpointBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aiApplication = Preconditions.checkNotNull(builder.getAiApplication()); + endpoint = Preconditions.checkNotNull(builder.getEndpoint()); + pathTemplate = PROJECT_LOCATION_AI_APPLICATION_ENDPOINT; } public String getProject() { @@ -65,10 +83,23 @@ public String getEndpoint() { return endpoint; } + public String getAiApplication() { + return aiApplication; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newProjectLocationEndpointBuilder() { + return new Builder(); + } + + public static ProjectLocationAiApplicationEndpointBuilder + newProjectLocationAiApplicationEndpointBuilder() { + return new ProjectLocationAiApplicationEndpointBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -77,6 +108,21 @@ public static EndpointName of(String project, String location, String endpoint) return newBuilder().setProject(project).setLocation(location).setEndpoint(endpoint).build(); } + public static EndpointName ofProjectLocationEndpointName( + String project, String location, String endpoint) { + return newBuilder().setProject(project).setLocation(location).setEndpoint(endpoint).build(); + } + + public static EndpointName ofProjectLocationAiApplicationEndpointName( + String project, String location, String aiApplication, String endpoint) { + return newProjectLocationAiApplicationEndpointBuilder() + .setProject(project) + .setLocation(location) + .setAiApplication(aiApplication) + .setEndpoint(endpoint) + .build(); + } + public static String format(String project, String location, String endpoint) { return newBuilder() .setProject(project) @@ -86,14 +132,45 @@ public static String format(String project, String location, String endpoint) { .toString(); } + public static String formatProjectLocationEndpointName( + String project, String location, String endpoint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEndpoint(endpoint) + .build() + .toString(); + } + + public static String formatProjectLocationAiApplicationEndpointName( + String project, String location, String aiApplication, String endpoint) { + return newProjectLocationAiApplicationEndpointBuilder() + .setProject(project) + .setLocation(location) + .setAiApplication(aiApplication) + .setEndpoint(endpoint) + .build() + .toString(); + } + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - PROJECT_LOCATION_ENDPOINT.validatedMatch( - formattedString, "EndpointName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("endpoint")); + if (PROJECT_LOCATION_ENDPOINT.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_ENDPOINT.match(formattedString); + return ofProjectLocationEndpointName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("endpoint")); + } else if (PROJECT_LOCATION_AI_APPLICATION_ENDPOINT.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_AI_APPLICATION_ENDPOINT.match(formattedString); + return ofProjectLocationAiApplicationEndpointName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("ai_application"), + matchMap.get("endpoint")); + } + throw new ValidationException("EndpointName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -117,7 +194,8 @@ public static List toStringList(List<@Nullable EndpointName> values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_ENDPOINT.matches(formattedString); + return PROJECT_LOCATION_ENDPOINT.matches(formattedString) + || PROJECT_LOCATION_AI_APPLICATION_ENDPOINT.matches(formattedString); } @Override @@ -135,6 +213,9 @@ public Map getFieldValuesMap() { if (endpoint != null) { fieldMapBuilder.put("endpoint", endpoint); } + if (aiApplication != null) { + fieldMapBuilder.put("ai_application", aiApplication); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -148,8 +229,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_ENDPOINT.instantiate( - "project", project, "location", location, "endpoint", endpoint); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -161,7 +241,8 @@ public boolean equals(@Nullable Object o) { EndpointName that = ((EndpointName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) - && Objects.equals(this.endpoint, that.endpoint); + && Objects.equals(this.endpoint, that.endpoint) + && Objects.equals(this.aiApplication, that.aiApplication); } return false; } @@ -170,11 +251,15 @@ public boolean equals(@Nullable Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(project); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(endpoint); + h *= 1000003; + h ^= Objects.hashCode(aiApplication); return h; } @@ -214,6 +299,10 @@ public Builder setEndpoint(String endpoint) { } private Builder(EndpointName endpointName) { + Preconditions.checkArgument( + Objects.equals(endpointName.pathTemplate, PROJECT_LOCATION_ENDPOINT), + "toBuilder is only supported when EndpointName has the pattern of" + + " projects/{project}/locations/{location}/endpoints/{endpoint}"); this.project = endpointName.project; this.location = endpointName.location; this.endpoint = endpointName.endpoint; @@ -223,4 +312,57 @@ public EndpointName build() { return new EndpointName(this); } } + + /** + * Builder for + * projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}. + */ + public static class ProjectLocationAiApplicationEndpointBuilder { + private String project; + private String location; + private String aiApplication; + private String endpoint; + + protected ProjectLocationAiApplicationEndpointBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAiApplication() { + return aiApplication; + } + + public String getEndpoint() { + return endpoint; + } + + public ProjectLocationAiApplicationEndpointBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationAiApplicationEndpointBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationAiApplicationEndpointBuilder setAiApplication(String aiApplication) { + this.aiApplication = aiApplication; + return this; + } + + public ProjectLocationAiApplicationEndpointBuilder setEndpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + public EndpointName build() { + return new EndpointName(this); + } + } } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointProto.java index 071fb5e912c9..abd5a7fcb9ea 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointProto.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointProto.java @@ -63,7 +63,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\032.google/cloud/agentreg" + "istry/v1/properties.proto\032\034google/protob" - + "uf/struct.proto\032\037google/protobuf/timestamp.proto\"\300\004\n" + + "uf/struct.proto\032\037google/protobuf/timestamp.proto\"\240\005\n" + "\010Endpoint\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\031\n" + "\013endpoint_id\030\010 \001(\tB\004\342A\001\003\022\032\n" @@ -79,13 +79,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\01327.google.cloud.agentregistry.v1.Endpoint.AttributesEntryB\004\342A\001\003\032J\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022&\n" - + "\005value\030\002 \001(\0132\027.google.protobuf.Struct:\0028\001:}\352Az\n" - + "%agentregistry.googleapis.com/Endpoint\022 + * Represents a security Finding. + * + * + * Protobuf type {@code google.cloud.agentregistry.v1.Finding} + */ +@com.google.protobuf.Generated +public final class Finding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Finding) + FindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Finding"); + } + + // Use Finding.newBuilder() to construct. + private Finding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Finding() { + name_ = ""; + uid_ = ""; + severity_ = 0; + findingClass_ = 0; + files_ = java.util.Collections.emptyList(); + detail_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Finding.class, + com.google.cloud.agentregistry.v1.Finding.Builder.class); + } + + /** + * + * + *
+   * Represents what kind of Finding it is.
+   * For more information on finding classes, see
+   * https://cloud.google.com/security-command-center/docs/concepts-vulnerabilities-findings#classes.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.Finding.FindingClass} + */ + public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified finding class.
+     * 
+ * + * FINDING_CLASS_UNSPECIFIED = 0; + */ + FINDING_CLASS_UNSPECIFIED(0), + /** + * + * + *
+     * Describes a potential weakness in software that increases risk to
+     * Confidentiality & Integrity & Availability.
+     * 
+ * + * VULNERABILITY = 1; + */ + VULNERABILITY(1), + /** + * + * + *
+     * Describes a potential security risk due to plaintext credentials,
+     * keys, or tokens being exposed in an asset or workload.
+     * 
+ * + * SECRET = 3; + */ + SECRET(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FindingClass"); + } + + /** + * + * + *
+     * Unspecified finding class.
+     * 
+ * + * FINDING_CLASS_UNSPECIFIED = 0; + */ + public static final int FINDING_CLASS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Describes a potential weakness in software that increases risk to
+     * Confidentiality & Integrity & Availability.
+     * 
+ * + * VULNERABILITY = 1; + */ + public static final int VULNERABILITY_VALUE = 1; + + /** + * + * + *
+     * Describes a potential security risk due to plaintext credentials,
+     * keys, or tokens being exposed in an asset or workload.
+     * 
+ * + * SECRET = 3; + */ + public static final int SECRET_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 FindingClass 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 FindingClass forNumber(int value) { + switch (value) { + case 0: + return FINDING_CLASS_UNSPECIFIED; + case 1: + return VULNERABILITY; + case 3: + return SECRET; + 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 FindingClass findValueByNumber(int number) { + return FindingClass.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.agentregistry.v1.Finding.getDescriptor().getEnumTypes().get(0); + } + + private static final FindingClass[] VALUES = values(); + + public static FindingClass 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 FindingClass(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.Finding.FindingClass) + } + + public interface FileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Finding.File) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Relative path of the file containing the finding.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + * + * + *
+     * Optional. Relative path of the file containing the finding.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+     * Optional. Line number (1-based), or 0 if whole File / unknown.
+     * 
+ * + * int64 line_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The lineNumber. + */ + long getLineNumber(); + } + + /** + * + * + *
+   * File location of the finding.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Finding.File} + */ + public static final class File extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Finding.File) + FileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "File"); + } + + // Use File.newBuilder() to construct. + private File(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private File() { + path_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Finding.File.class, + com.google.cloud.agentregistry.v1.Finding.File.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + * + * + *
+     * Optional. Relative path of the file containing the finding.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + 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(); + path_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Relative path of the file containing the finding.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINE_NUMBER_FIELD_NUMBER = 2; + private long lineNumber_ = 0L; + + /** + * + * + *
+     * Optional. Line number (1-based), or 0 if whole File / unknown.
+     * 
+ * + * int64 line_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The lineNumber. + */ + @java.lang.Override + public long getLineNumber() { + return lineNumber_; + } + + 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(path_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, path_); + } + if (lineNumber_ != 0L) { + output.writeInt64(2, lineNumber_); + } + 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(path_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, path_); + } + if (lineNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, lineNumber_); + } + 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.agentregistry.v1.Finding.File)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Finding.File other = + (com.google.cloud.agentregistry.v1.Finding.File) obj; + + if (!getPath().equals(other.getPath())) return false; + if (getLineNumber() != other.getLineNumber()) 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) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLineNumber()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Finding.File parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Finding.File 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.agentregistry.v1.Finding.File parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Finding.File 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.agentregistry.v1.Finding.File parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Finding.File parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Finding.File parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Finding.File 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.agentregistry.v1.Finding.File parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Finding.File 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.agentregistry.v1.Finding.File parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Finding.File 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.agentregistry.v1.Finding.File 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; + } + + /** + * + * + *
+     * File location of the finding.
+     * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Finding.File} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Finding.File) + com.google.cloud.agentregistry.v1.Finding.FileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Finding.File.class, + com.google.cloud.agentregistry.v1.Finding.File.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Finding.File.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + lineNumber_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_File_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding.File getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Finding.File.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding.File build() { + com.google.cloud.agentregistry.v1.Finding.File result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding.File buildPartial() { + com.google.cloud.agentregistry.v1.Finding.File result = + new com.google.cloud.agentregistry.v1.Finding.File(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Finding.File result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lineNumber_ = lineNumber_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Finding.File) { + return mergeFrom((com.google.cloud.agentregistry.v1.Finding.File) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Finding.File other) { + if (other == com.google.cloud.agentregistry.v1.Finding.File.getDefaultInstance()) + return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getLineNumber() != 0L) { + setLineNumber(other.getLineNumber()); + } + 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: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + lineNumber_ = input.readInt64(); + 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.lang.Object path_ = ""; + + /** + * + * + *
+       * Optional. Relative path of the file containing the finding.
+       * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Relative path of the file containing the finding.
+       * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Relative path of the file containing the finding.
+       * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Relative path of the file containing the finding.
+       * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Relative path of the file containing the finding.
+       * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long lineNumber_; + + /** + * + * + *
+       * Optional. Line number (1-based), or 0 if whole File / unknown.
+       * 
+ * + * int64 line_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The lineNumber. + */ + @java.lang.Override + public long getLineNumber() { + return lineNumber_; + } + + /** + * + * + *
+       * Optional. Line number (1-based), or 0 if whole File / unknown.
+       * 
+ * + * int64 line_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The lineNumber to set. + * @return This builder for chaining. + */ + public Builder setLineNumber(long value) { + + lineNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Line number (1-based), or 0 if whole File / unknown.
+       * 
+ * + * int64 line_number = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLineNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + lineNumber_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Finding.File) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Finding.File) + private static final com.google.cloud.agentregistry.v1.Finding.File DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Finding.File(); + } + + public static com.google.cloud.agentregistry.v1.Finding.File getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File 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.agentregistry.v1.Finding.File getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of the Finding.
+   * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+   * 
+ * + * 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 the Finding.
+   * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+   * 
+ * + * 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. Universally unique identifier (UUID4) for the Finding.
+   * 
+ * + * + * 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. Universally unique identifier (UUID4) for the Finding.
+   * 
+ * + * + * 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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 SEVERITY_FIELD_NUMBER = 6; + private int severity_ = 0; + + /** + * + * + *
+   * Optional. Severity of the finding.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
+   * Optional. Severity of the finding.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Severity getSeverity() { + com.google.cloud.agentregistry.v1.Severity result = + com.google.cloud.agentregistry.v1.Severity.forNumber(severity_); + return result == null ? com.google.cloud.agentregistry.v1.Severity.UNRECOGNIZED : result; + } + + public static final int FINDING_CLASS_FIELD_NUMBER = 7; + private int findingClass_ = 0; + + /** + * + * + *
+   * Optional. Class of the finding.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for findingClass. + */ + @java.lang.Override + public int getFindingClassValue() { + return findingClass_; + } + + /** + * + * + *
+   * Optional. Class of the finding.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The findingClass. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding.FindingClass getFindingClass() { + com.google.cloud.agentregistry.v1.Finding.FindingClass result = + com.google.cloud.agentregistry.v1.Finding.FindingClass.forNumber(findingClass_); + return result == null + ? com.google.cloud.agentregistry.v1.Finding.FindingClass.UNRECOGNIZED + : result; + } + + public static final int FILES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List files_; + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding.File getFiles(int index) { + return files_.get(index); + } + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding.FileOrBuilder getFilesOrBuilder(int index) { + return files_.get(index); + } + + public static final int DETAIL_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object detail_ = ""; + + /** + * + * + *
+   * Optional. Detailed description of the finding.
+   * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The detail. + */ + @java.lang.Override + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + 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(); + detail_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Detailed description of the finding.
+   * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for detail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Optional. The resource that the finding is associated with.
+   * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The resource that the finding is associated with.
+   * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (severity_ != com.google.cloud.agentregistry.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(6, severity_); + } + if (findingClass_ + != com.google.cloud.agentregistry.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, findingClass_); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(8, files_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(detail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, detail_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, resource_); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (severity_ != com.google.cloud.agentregistry.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, severity_); + } + if (findingClass_ + != com.google.cloud.agentregistry.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, findingClass_); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, files_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(detail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, detail_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, resource_); + } + 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.agentregistry.v1.Finding)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Finding other = + (com.google.cloud.agentregistry.v1.Finding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) 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 (severity_ != other.severity_) return false; + if (findingClass_ != other.findingClass_) return false; + if (!getFilesList().equals(other.getFilesList())) return false; + if (!getDetail().equals(other.getDetail())) return false; + if (!getResource().equals(other.getResource())) 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(); + 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) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + FINDING_CLASS_FIELD_NUMBER; + hash = (53 * hash) + findingClass_; + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Finding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Finding 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.agentregistry.v1.Finding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Finding 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.agentregistry.v1.Finding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Finding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Finding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Finding 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.agentregistry.v1.Finding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Finding 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.agentregistry.v1.Finding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Finding 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.agentregistry.v1.Finding 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 security Finding.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Finding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Finding) + com.google.cloud.agentregistry.v1.FindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Finding.class, + com.google.cloud.agentregistry.v1.Finding.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Finding.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(); + internalGetFilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + severity_ = 0; + findingClass_ = 0; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + detail_ = ""; + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.FindingProto + .internal_static_google_cloud_agentregistry_v1_Finding_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Finding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding build() { + com.google.cloud.agentregistry.v1.Finding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding buildPartial() { + com.google.cloud.agentregistry.v1.Finding result = + new com.google.cloud.agentregistry.v1.Finding(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.agentregistry.v1.Finding result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Finding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.findingClass_ = findingClass_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.detail_ = detail_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Finding) { + return mergeFrom((com.google.cloud.agentregistry.v1.Finding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Finding other) { + if (other == com.google.cloud.agentregistry.v1.Finding.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.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (other.findingClass_ != 0) { + setFindingClassValue(other.getFindingClassValue()); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000040); + filesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000100; + 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: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + findingClass_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: + { + com.google.cloud.agentregistry.v1.Finding.File m = + input.readMessage( + com.google.cloud.agentregistry.v1.Finding.File.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 66 + case 82: + { + detail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 90: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 90 + 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 the Finding.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * 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 the Finding.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * 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 the Finding.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * 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 the Finding.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * 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 the Finding.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * 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. Universally unique identifier (UUID4) for the Finding.
+     * 
+ * + * + * 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. Universally unique identifier (UUID4) for the Finding.
+     * 
+ * + * + * 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. Universally unique identifier (UUID4) for the Finding.
+     * 
+ * + * + * 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. Universally unique identifier (UUID4) for the Finding.
+     * 
+ * + * + * 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. Universally unique identifier (UUID4) for the Finding.
+     * 
+ * + * + * 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 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. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 int severity_ = 0; + + /** + * + * + *
+     * Optional. Severity of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
+     * Optional. Severity of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Severity of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Severity getSeverity() { + com.google.cloud.agentregistry.v1.Severity result = + com.google.cloud.agentregistry.v1.Severity.forNumber(severity_); + return result == null ? com.google.cloud.agentregistry.v1.Severity.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Severity of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.cloud.agentregistry.v1.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + severity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Severity of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000010); + severity_ = 0; + onChanged(); + return this; + } + + private int findingClass_ = 0; + + /** + * + * + *
+     * Optional. Class of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for findingClass. + */ + @java.lang.Override + public int getFindingClassValue() { + return findingClass_; + } + + /** + * + * + *
+     * Optional. Class of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for findingClass to set. + * @return This builder for chaining. + */ + public Builder setFindingClassValue(int value) { + findingClass_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Class of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The findingClass. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding.FindingClass getFindingClass() { + com.google.cloud.agentregistry.v1.Finding.FindingClass result = + com.google.cloud.agentregistry.v1.Finding.FindingClass.forNumber(findingClass_); + return result == null + ? com.google.cloud.agentregistry.v1.Finding.FindingClass.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Class of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The findingClass to set. + * @return This builder for chaining. + */ + public Builder setFindingClass(com.google.cloud.agentregistry.v1.Finding.FindingClass value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + findingClass_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Class of the finding.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFindingClass() { + bitField0_ = (bitField0_ & ~0x00000020); + findingClass_ = 0; + onChanged(); + return this; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Finding.File, + com.google.cloud.agentregistry.v1.Finding.File.Builder, + com.google.cloud.agentregistry.v1.Finding.FileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Finding.File getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles(int index, com.google.cloud.agentregistry.v1.Finding.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles( + int index, com.google.cloud.agentregistry.v1.Finding.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.agentregistry.v1.Finding.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(int index, com.google.cloud.agentregistry.v1.Finding.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + com.google.cloud.agentregistry.v1.Finding.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + int index, com.google.cloud.agentregistry.v1.Finding.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Finding.File.Builder getFilesBuilder(int index) { + return internalGetFilesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Finding.FileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Finding.File.Builder addFilesBuilder() { + return internalGetFilesFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Finding.File.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Finding.File.Builder addFilesBuilder(int index) { + return internalGetFilesFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Finding.File.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. File associated with the finding.
+     * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesBuilderList() { + return internalGetFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Finding.File, + com.google.cloud.agentregistry.v1.Finding.File.Builder, + com.google.cloud.agentregistry.v1.Finding.FileOrBuilder> + internalGetFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Finding.File, + com.google.cloud.agentregistry.v1.Finding.File.Builder, + com.google.cloud.agentregistry.v1.Finding.FileOrBuilder>( + files_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + private java.lang.Object detail_ = ""; + + /** + * + * + *
+     * Optional. Detailed description of the finding.
+     * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The detail. + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Detailed description of the finding.
+     * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for detail. + */ + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Detailed description of the finding.
+     * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The detail to set. + * @return This builder for chaining. + */ + public Builder setDetail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + detail_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Detailed description of the finding.
+     * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDetail() { + detail_ = getDefaultInstance().getDetail(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Detailed description of the finding.
+     * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for detail to set. + * @return This builder for chaining. + */ + public Builder setDetailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Optional. The resource that the finding is associated with.
+     * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The resource that the finding is associated with.
+     * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The resource that the finding is associated with.
+     * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource that the finding is associated with.
+     * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource that the finding is associated with.
+     * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @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); + resource_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Finding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Finding) + private static final com.google.cloud.agentregistry.v1.Finding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Finding(); + } + + public static com.google.cloud.agentregistry.v1.Finding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding 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.agentregistry.v1.Finding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingName.java new file mode 100644 index 000000000000..0212a309df4d --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class FindingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/findings/{finding}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String finding; + + @Deprecated + protected FindingName() { + project = null; + location = null; + finding = null; + } + + private FindingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + finding = Preconditions.checkNotNull(builder.getFinding()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFinding() { + return finding; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FindingName of(String project, String location, String finding) { + return newBuilder().setProject(project).setLocation(location).setFinding(finding).build(); + } + + public static String format(String project, String location, String finding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFinding(finding) + .build() + .toString(); + } + + public static @Nullable FindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FINDING.validatedMatch( + formattedString, "FindingName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("finding")); + } + + 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<@Nullable FindingName> values) { + List list = new ArrayList<>(values.size()); + for (FindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FINDING.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 (finding != null) { + fieldMapBuilder.put("finding", finding); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FINDING.instantiate( + "project", project, "location", location, "finding", finding); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FindingName that = ((FindingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.finding, that.finding); + } + 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(finding); + return h; + } + + /** Builder for projects/{project}/locations/{location}/findings/{finding}. */ + public static class Builder { + private String project; + private String location; + private String finding; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFinding() { + return finding; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFinding(String finding) { + this.finding = finding; + return this; + } + + private Builder(FindingName findingName) { + this.project = findingName.project; + this.location = findingName.location; + this.finding = findingName.finding; + } + + public FindingName build() { + return new FindingName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingOrBuilder.java new file mode 100644 index 000000000000..a3893a336f19 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingOrBuilder.java @@ -0,0 +1,348 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/finding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface FindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Finding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the Finding.
+   * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of the Finding.
+   * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the Finding.
+   * 
+ * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the Finding.
+   * 
+ * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Severity of the finding.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + + /** + * + * + *
+   * Optional. Severity of the finding.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Severity severity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + com.google.cloud.agentregistry.v1.Severity getSeverity(); + + /** + * + * + *
+   * Optional. Class of the finding.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for findingClass. + */ + int getFindingClassValue(); + + /** + * + * + *
+   * Optional. Class of the finding.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Finding.FindingClass finding_class = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The findingClass. + */ + com.google.cloud.agentregistry.v1.Finding.FindingClass getFindingClass(); + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFilesList(); + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.Finding.File getFiles(int index); + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilesCount(); + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFilesOrBuilderList(); + + /** + * + * + *
+   * Optional. File associated with the finding.
+   * 
+ * + * + * repeated .google.cloud.agentregistry.v1.Finding.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.Finding.FileOrBuilder getFilesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Detailed description of the finding.
+   * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The detail. + */ + java.lang.String getDetail(); + + /** + * + * + *
+   * Optional. Detailed description of the finding.
+   * 
+ * + * string detail = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for detail. + */ + com.google.protobuf.ByteString getDetailBytes(); + + /** + * + * + *
+   * Optional. The resource that the finding is associated with.
+   * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Optional. The resource that the finding is associated with.
+   * 
+ * + * + * string resource = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingProto.java new file mode 100644 index 000000000000..df9fcf23e897 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FindingProto.java @@ -0,0 +1,153 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/finding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class FindingProto extends com.google.protobuf.GeneratedFile { + private FindingProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FindingProto"); + } + + 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_agentregistry_v1_Finding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Finding_File_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Finding_File_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/agentregistry/v1/finding." + + "proto\022\035google.cloud.agentregistry.v1\032\037go" + + "ogle/api/field_behavior.proto\032\033google/ap" + + "i/field_info.proto\032\031google/api/resource." + + "proto\032\037google/protobuf/timestamp.proto\"\256\005\n" + + "\007Finding\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\031\n" + + "\003uid\030\002 \001(\tB\014\342A\001\003\342\214\317\327\010\002\010\001\0225\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022?\n" + + "\010severity\030\006" + + " \001(\0162\'.google.cloud.agentregistry.v1.SeverityB\004\342A\001\001\022P\n\r" + + "finding_class\030\007" + + " \001(\01623.google.cloud.agentregistry.v1.Finding.FindingClassB\004\342A\001\001\022@\n" + + "\005files\030\010" + + " \003(\0132+.google.cloud.agentregistry.v1.Finding.FileB\004\342A\001\001\022\024\n" + + "\006detail\030\n" + + " \001(\tB\004\342A\001\001\022\034\n" + + "\010resource\030\013 \001(\tB\n" + + "\342A\001\001\372A\003\n" + + "\001*\0325\n" + + "\004File\022\022\n" + + "\004path\030\001 \001(\tB\004\342A\001\001\022\031\n" + + "\013line_number\030\002 \001(\003B\004\342A\001\001\"L\n" + + "\014FindingClass\022\035\n" + + "\031FINDING_CLASS_UNSPECIFIED\020\000\022\021\n\r" + + "VULNERABILITY\020\001\022\n\n" + + "\006SECRET\020\003:x\352Au\n" + + "$agentregistry.googleapis.com/Finding\022:projects/{project}/locations/{" + + "location}/findings/{finding}*\010findings2\007finding*u\n" + + "\010Severity\022\030\n" + + "\024SEVERITY_UNSPECIFIED\020\000\022\025\n" + + "\021SEVERITY_CRITICAL\020\001\022\021\n\r" + + "SEVERITY_HIGH\020\002\022\023\n" + + "\017SEVERITY_MEDIUM\020\003\022\020\n" + + "\014SEVERITY_LOW\020\004B\337\001\n" + + "!com.google.cloud.agentregistry.v1B\014FindingProtoP\001ZGcloud.google.com/g" + + "o/agentregistry/apiv1/agentregistrypb;ag" + + "entregistrypb\252\002\035Google.Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::V1b\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(), + }); + internal_static_google_cloud_agentregistry_v1_Finding_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_Finding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Finding_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "Severity", + "FindingClass", + "Files", + "Detail", + "Resource", + }); + internal_static_google_cloud_agentregistry_v1_Finding_File_descriptor = + internal_static_google_cloud_agentregistry_v1_Finding_descriptor.getNestedType(0); + internal_static_google_cloud_agentregistry_v1_Finding_File_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Finding_File_descriptor, + new java.lang.String[] { + "Path", "LineNumber", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.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.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ResourceProto.resource); + 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Frontmatter.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Frontmatter.java new file mode 100644 index 000000000000..5536ccb84854 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Frontmatter.java @@ -0,0 +1,1532 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Structured metadata attributes extracted from the package's local SKILL.md
+ * frontmatter.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Frontmatter} + */ +@com.google.protobuf.Generated +public final class Frontmatter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Frontmatter) + FrontmatterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Frontmatter"); + } + + // Use Frontmatter.newBuilder() to construct. + private Frontmatter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Frontmatter() { + name_ = ""; + description_ = ""; + license_ = ""; + compatibility_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Frontmatter_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Frontmatter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Frontmatter.class, + com.google.cloud.agentregistry.v1.Frontmatter.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the skill.
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 skill.
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Required. Functional description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. Functional description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 LICENSE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object license_ = ""; + + /** + * + * + *
+   * Optional. License.
+   * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The license. + */ + @java.lang.Override + public java.lang.String getLicense() { + java.lang.Object ref = license_; + 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(); + license_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. License.
+   * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for license. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseBytes() { + java.lang.Object ref = license_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + license_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPATIBILITY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object compatibility_ = ""; + + /** + * + * + *
+   * Optional. Environmental dependencies or companion services.
+   * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The compatibility. + */ + @java.lang.Override + public java.lang.String getCompatibility() { + java.lang.Object ref = compatibility_; + 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(); + compatibility_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Environmental dependencies or companion services.
+   * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for compatibility. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompatibilityBytes() { + java.lang.Object ref = compatibility_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compatibility_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 4; + + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Frontmatter_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetadata().getMap().containsKey(key); + } + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(compatibility_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, compatibility_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(license_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, license_); + } + 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(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(compatibility_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, compatibility_); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, metadata__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(license_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, license_); + } + 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.agentregistry.v1.Frontmatter)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Frontmatter other = + (com.google.cloud.agentregistry.v1.Frontmatter) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getLicense().equals(other.getLicense())) return false; + if (!getCompatibility().equals(other.getCompatibility())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + LICENSE_FIELD_NUMBER; + hash = (53 * hash) + getLicense().hashCode(); + hash = (37 * hash) + COMPATIBILITY_FIELD_NUMBER; + hash = (53 * hash) + getCompatibility().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Frontmatter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Frontmatter 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.agentregistry.v1.Frontmatter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Frontmatter 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.agentregistry.v1.Frontmatter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Frontmatter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Frontmatter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Frontmatter 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.agentregistry.v1.Frontmatter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Frontmatter 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.agentregistry.v1.Frontmatter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Frontmatter 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.agentregistry.v1.Frontmatter 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; + } + + /** + * + * + *
+   * Structured metadata attributes extracted from the package's local SKILL.md
+   * frontmatter.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Frontmatter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Frontmatter) + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Frontmatter_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Frontmatter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Frontmatter.class, + com.google.cloud.agentregistry.v1.Frontmatter.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Frontmatter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + license_ = ""; + compatibility_ = ""; + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Frontmatter_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Frontmatter getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Frontmatter build() { + com.google.cloud.agentregistry.v1.Frontmatter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Frontmatter buildPartial() { + com.google.cloud.agentregistry.v1.Frontmatter result = + new com.google.cloud.agentregistry.v1.Frontmatter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Frontmatter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.license_ = license_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.compatibility_ = compatibility_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Frontmatter) { + return mergeFrom((com.google.cloud.agentregistry.v1.Frontmatter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Frontmatter other) { + if (other == com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLicense().isEmpty()) { + license_ = other.license_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getCompatibility().isEmpty()) { + compatibility_ = other.compatibility_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + bitField0_ |= 0x00000010; + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + compatibility_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 50: + { + license_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 name_ = ""; + + /** + * + * + *
+     * Required. The name of the skill.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 skill.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 skill.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 skill.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the skill.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 description_ = ""; + + /** + * + * + *
+     * Required. Functional description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. Functional description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. Functional description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Functional description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Functional description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object license_ = ""; + + /** + * + * + *
+     * Optional. License.
+     * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The license. + */ + public java.lang.String getLicense() { + java.lang.Object ref = license_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + license_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. License.
+     * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for license. + */ + public com.google.protobuf.ByteString getLicenseBytes() { + java.lang.Object ref = license_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + license_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. License.
+     * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The license to set. + * @return This builder for chaining. + */ + public Builder setLicense(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + license_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. License.
+     * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLicense() { + license_ = getDefaultInstance().getLicense(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. License.
+     * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for license to set. + * @return This builder for chaining. + */ + public Builder setLicenseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + license_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object compatibility_ = ""; + + /** + * + * + *
+     * Optional. Environmental dependencies or companion services.
+     * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The compatibility. + */ + public java.lang.String getCompatibility() { + java.lang.Object ref = compatibility_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compatibility_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Environmental dependencies or companion services.
+     * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for compatibility. + */ + public com.google.protobuf.ByteString getCompatibilityBytes() { + java.lang.Object ref = compatibility_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compatibility_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Environmental dependencies or companion services.
+     * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The compatibility to set. + * @return This builder for chaining. + */ + public Builder setCompatibility(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + compatibility_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Environmental dependencies or companion services.
+     * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCompatibility() { + compatibility_ = getDefaultInstance().getCompatibility(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Environmental dependencies or companion services.
+     * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for compatibility to set. + * @return This builder for chaining. + */ + public Builder setCompatibilityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + compatibility_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + + /** + * + * + *
+     * Optional. Extensible flattened map mapping custom tags, authors, and
+     * version parameters.
+     * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetadata().getMap().containsKey(key); + } + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + + /** + * + * + *
+     * Optional. Extensible flattened map mapping custom tags, authors, and
+     * version parameters.
+     * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + + /** + * + * + *
+     * Optional. Extensible flattened map mapping custom tags, authors, and
+     * version parameters.
+     * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Extensible flattened map mapping custom tags, authors, and
+     * version parameters.
+     * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableMetadata().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Extensible flattened map mapping custom tags, authors, and
+     * version parameters.
+     * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableMetadata() { + bitField0_ |= 0x00000010; + return internalGetMutableMetadata().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Extensible flattened map mapping custom tags, authors, and
+     * version parameters.
+     * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMetadata().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
+     * Optional. Extensible flattened map mapping custom tags, authors, and
+     * version parameters.
+     * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Frontmatter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Frontmatter) + private static final com.google.cloud.agentregistry.v1.Frontmatter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Frontmatter(); + } + + public static com.google.cloud.agentregistry.v1.Frontmatter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Frontmatter 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.agentregistry.v1.Frontmatter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FrontmatterOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FrontmatterOrBuilder.java new file mode 100644 index 000000000000..425398764e8b --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FrontmatterOrBuilder.java @@ -0,0 +1,200 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface FrontmatterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Frontmatter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the skill.
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the skill.
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Functional description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Required. Functional description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. License.
+   * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The license. + */ + java.lang.String getLicense(); + + /** + * + * + *
+   * Optional. License.
+   * 
+ * + * string license = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for license. + */ + com.google.protobuf.ByteString getLicenseBytes(); + + /** + * + * + *
+   * Optional. Environmental dependencies or companion services.
+   * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The compatibility. + */ + java.lang.String getCompatibility(); + + /** + * + * + *
+   * Optional. Environmental dependencies or companion services.
+   * 
+ * + * string compatibility = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for compatibility. + */ + com.google.protobuf.ByteString getCompatibilityBytes(); + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getMetadataCount(); + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsMetadata(java.lang.String key); + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Deprecated + java.util.Map getMetadata(); + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getMetadataMap(); + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Extensible flattened map mapping custom tags, authors, and
+   * version parameters.
+   * 
+ * + * map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getMetadataOrThrow(java.lang.String key); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GcsSource.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GcsSource.java new file mode 100644 index 000000000000..bcf5090609dd --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GcsSource.java @@ -0,0 +1,710 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Specifications for Cloud Storage objects.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GcsSource} + */ +@com.google.protobuf.Generated +public final class GcsSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GcsSource) + GcsSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GcsSource"); + } + + // Use GcsSource.newBuilder() to construct. + private GcsSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GcsSource() { + uri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_GcsSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_GcsSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GcsSource.class, + com.google.cloud.agentregistry.v1.GcsSource.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Required. Cloud Storage object URI.
+   * Format:
+   * `gs://{bucket_name}/{object_name}`
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Cloud Storage object URI.
+   * Format:
+   * `gs://{bucket_name}/{object_name}`
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATION_FIELD_NUMBER = 2; + private long generation_ = 0L; + + /** + * + * + *
+   * Optional. Cloud Storage object generation ID. If not specified, the latest
+   * generation is used.
+   * 
+ * + * int64 generation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generation. + */ + @java.lang.Override + public long getGeneration() { + return generation_; + } + + 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(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (generation_ != 0L) { + output.writeInt64(2, generation_); + } + 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(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (generation_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, generation_); + } + 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.agentregistry.v1.GcsSource)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GcsSource other = + (com.google.cloud.agentregistry.v1.GcsSource) obj; + + if (!getUri().equals(other.getUri())) return false; + if (getGeneration() != other.getGeneration()) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.GcsSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GcsSource 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.agentregistry.v1.GcsSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GcsSource 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.agentregistry.v1.GcsSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GcsSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GcsSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GcsSource 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.agentregistry.v1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GcsSource 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.agentregistry.v1.GcsSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GcsSource 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.agentregistry.v1.GcsSource 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; + } + + /** + * + * + *
+   * Specifications for Cloud Storage objects.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GcsSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GcsSource) + com.google.cloud.agentregistry.v1.GcsSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_GcsSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_GcsSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GcsSource.class, + com.google.cloud.agentregistry.v1.GcsSource.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GcsSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + generation_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_GcsSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GcsSource getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GcsSource build() { + com.google.cloud.agentregistry.v1.GcsSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GcsSource buildPartial() { + com.google.cloud.agentregistry.v1.GcsSource result = + new com.google.cloud.agentregistry.v1.GcsSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GcsSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.generation_ = generation_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.GcsSource) { + return mergeFrom((com.google.cloud.agentregistry.v1.GcsSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GcsSource other) { + if (other == com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getGeneration() != 0L) { + setGeneration(other.getGeneration()); + } + 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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + generation_ = input.readInt64(); + 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.lang.Object uri_ = ""; + + /** + * + * + *
+     * Required. Cloud Storage object URI.
+     * Format:
+     * `gs://{bucket_name}/{object_name}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Cloud Storage object URI.
+     * Format:
+     * `gs://{bucket_name}/{object_name}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Cloud Storage object URI.
+     * Format:
+     * `gs://{bucket_name}/{object_name}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Cloud Storage object URI.
+     * Format:
+     * `gs://{bucket_name}/{object_name}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Cloud Storage object URI.
+     * Format:
+     * `gs://{bucket_name}/{object_name}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long generation_; + + /** + * + * + *
+     * Optional. Cloud Storage object generation ID. If not specified, the latest
+     * generation is used.
+     * 
+ * + * int64 generation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generation. + */ + @java.lang.Override + public long getGeneration() { + return generation_; + } + + /** + * + * + *
+     * Optional. Cloud Storage object generation ID. If not specified, the latest
+     * generation is used.
+     * 
+ * + * int64 generation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The generation to set. + * @return This builder for chaining. + */ + public Builder setGeneration(long value) { + + generation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage object generation ID. If not specified, the latest
+     * generation is used.
+     * 
+ * + * int64 generation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGeneration() { + bitField0_ = (bitField0_ & ~0x00000002); + generation_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.GcsSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GcsSource) + private static final com.google.cloud.agentregistry.v1.GcsSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GcsSource(); + } + + public static com.google.cloud.agentregistry.v1.GcsSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource 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.agentregistry.v1.GcsSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GcsSourceOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GcsSourceOrBuilder.java new file mode 100644 index 000000000000..40f1e3d28ae0 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GcsSourceOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GcsSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GcsSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Cloud Storage object URI.
+   * Format:
+   * `gs://{bucket_name}/{object_name}`
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Required. Cloud Storage object URI.
+   * Format:
+   * `gs://{bucket_name}/{object_name}`
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional. Cloud Storage object generation ID. If not specified, the latest
+   * generation is used.
+   * 
+ * + * int64 generation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generation. + */ + long getGeneration(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationAgentRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationAgentRequest.java new file mode 100644 index 000000000000..1c20641f2bb6 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationAgentRequest.java @@ -0,0 +1,631 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for getting an Agent under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAiApplicationAgentRequest} + */ +@com.google.protobuf.Generated +public final class GetAiApplicationAgentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetAiApplicationAgentRequest) + GetAiApplicationAgentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAiApplicationAgentRequest"); + } + + // Use GetAiApplicationAgentRequest.newBuilder() to construct. + private GetAiApplicationAgentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAiApplicationAgentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest.class, + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+   * 
+ * + * + * 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. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+   * 
+ * + * + * 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.agentregistry.v1.GetAiApplicationAgentRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest other = + (com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest) 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.agentregistry.v1.GetAiApplicationAgentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest 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.agentregistry.v1.GetAiApplicationAgentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest 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.agentregistry.v1.GetAiApplicationAgentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest 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.agentregistry.v1.GetAiApplicationAgentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest 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.agentregistry.v1.GetAiApplicationAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest 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.agentregistry.v1.GetAiApplicationAgentRequest 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 for getting an Agent under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAiApplicationAgentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetAiApplicationAgentRequest) + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest.class, + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationAgentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest build() { + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest result = + new com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest 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.agentregistry.v1.GetAiApplicationAgentRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest other) { + if (other + == com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest.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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+     * 
+ * + * + * 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.agentregistry.v1.GetAiApplicationAgentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetAiApplicationAgentRequest) + private static final com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAiApplicationAgentRequest 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.agentregistry.v1.GetAiApplicationAgentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationAgentRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationAgentRequestOrBuilder.java new file mode 100644 index 000000000000..e967ac5d0e7f --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationAgentRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetAiApplicationAgentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetAiApplicationAgentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}`
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationEndpointRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationEndpointRequest.java new file mode 100644 index 000000000000..e801add71a66 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationEndpointRequest.java @@ -0,0 +1,634 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for getting an Endpoint under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest} + */ +@com.google.protobuf.Generated +public final class GetAiApplicationEndpointRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest) + GetAiApplicationEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAiApplicationEndpointRequest"); + } + + // Use GetAiApplicationEndpointRequest.newBuilder() to construct. + private GetAiApplicationEndpointRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAiApplicationEndpointRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest.class, + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+   * 
+ * + * + * 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. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+   * 
+ * + * + * 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.agentregistry.v1.GetAiApplicationEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest other = + (com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest) 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.agentregistry.v1.GetAiApplicationEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest 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.agentregistry.v1.GetAiApplicationEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest 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.agentregistry.v1.GetAiApplicationEndpointRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest 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.agentregistry.v1.GetAiApplicationEndpointRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest + 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.agentregistry.v1.GetAiApplicationEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest 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.agentregistry.v1.GetAiApplicationEndpointRequest 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 for getting an Endpoint under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest) + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest.class, + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest.Builder.class); + } + + // Construct using + // com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest build() { + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest result = + new com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest 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.agentregistry.v1.GetAiApplicationEndpointRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest other) { + if (other + == com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest.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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+     * 
+ * + * + * 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.agentregistry.v1.GetAiApplicationEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest) + private static final com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAiApplicationEndpointRequest 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.agentregistry.v1.GetAiApplicationEndpointRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationEndpointRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationEndpointRequestOrBuilder.java new file mode 100644 index 000000000000..585c30f34da8 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationEndpointRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetAiApplicationEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationMcpServerRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationMcpServerRequest.java new file mode 100644 index 000000000000..62c1c545de18 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationMcpServerRequest.java @@ -0,0 +1,637 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for getting an McpServer under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest} + */ +@com.google.protobuf.Generated +public final class GetAiApplicationMcpServerRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest) + GetAiApplicationMcpServerRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAiApplicationMcpServerRequest"); + } + + // Use GetAiApplicationMcpServerRequest.newBuilder() to construct. + private GetAiApplicationMcpServerRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAiApplicationMcpServerRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest.class, + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+   * 
+ * + * + * 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. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+   * 
+ * + * + * 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.agentregistry.v1.GetAiApplicationMcpServerRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest other = + (com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest) 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.agentregistry.v1.GetAiApplicationMcpServerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest 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.agentregistry.v1.GetAiApplicationMcpServerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest 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.agentregistry.v1.GetAiApplicationMcpServerRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest 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.agentregistry.v1.GetAiApplicationMcpServerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest + 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.agentregistry.v1.GetAiApplicationMcpServerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest 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.agentregistry.v1.GetAiApplicationMcpServerRequest 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 for getting an McpServer under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest) + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest.class, + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest.Builder.class); + } + + // Construct using + // com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationMcpServerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest build() { + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest result = + new com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest 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.agentregistry.v1.GetAiApplicationMcpServerRequest) { + return mergeFrom( + (com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest other) { + if (other + == com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest + .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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+     * 
+ * + * + * 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. Name of the resource.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+     * 
+ * + * + * 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.agentregistry.v1.GetAiApplicationMcpServerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest) + private static final com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAiApplicationMcpServerRequest 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.agentregistry.v1.GetAiApplicationMcpServerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationMcpServerRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationMcpServerRequestOrBuilder.java new file mode 100644 index 000000000000..0b841871a2df --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationMcpServerRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetAiApplicationMcpServerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationRequest.java new file mode 100644 index 000000000000..e9a1f99f36d6 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationRequest.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for getting an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAiApplicationRequest} + */ +@com.google.protobuf.Generated +public final class GetAiApplicationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetAiApplicationRequest) + GetAiApplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAiApplicationRequest"); + } + + // Use GetAiApplicationRequest.newBuilder() to construct. + private GetAiApplicationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAiApplicationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAiApplicationRequest.class, + com.google.cloud.agentregistry.v1.GetAiApplicationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Target AI Application resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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. Target AI Application resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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.agentregistry.v1.GetAiApplicationRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetAiApplicationRequest other = + (com.google.cloud.agentregistry.v1.GetAiApplicationRequest) 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.agentregistry.v1.GetAiApplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationRequest 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.agentregistry.v1.GetAiApplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationRequest 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.agentregistry.v1.GetAiApplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationRequest 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.agentregistry.v1.GetAiApplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationRequest 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.agentregistry.v1.GetAiApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationRequest 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.agentregistry.v1.GetAiApplicationRequest 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 for getting an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAiApplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetAiApplicationRequest) + com.google.cloud.agentregistry.v1.GetAiApplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAiApplicationRequest.class, + com.google.cloud.agentregistry.v1.GetAiApplicationRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetAiApplicationRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAiApplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetAiApplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationRequest build() { + com.google.cloud.agentregistry.v1.GetAiApplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAiApplicationRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetAiApplicationRequest result = + new com.google.cloud.agentregistry.v1.GetAiApplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetAiApplicationRequest 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.agentregistry.v1.GetAiApplicationRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetAiApplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetAiApplicationRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetAiApplicationRequest.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. Target AI Application resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Target AI Application resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Target AI Application resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Target AI Application resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Target AI Application resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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.agentregistry.v1.GetAiApplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetAiApplicationRequest) + private static final com.google.cloud.agentregistry.v1.GetAiApplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetAiApplicationRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetAiApplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAiApplicationRequest 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.agentregistry.v1.GetAiApplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..3ccac4c899d0 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAiApplicationRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetAiApplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetAiApplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Target AI Application resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Target AI Application resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetFindingRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetFindingRequest.java new file mode 100644 index 000000000000..73b9e19c9b69 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetFindingRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for getting a Finding.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetFindingRequest} + */ +@com.google.protobuf.Generated +public final class GetFindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetFindingRequest) + GetFindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetFindingRequest"); + } + + // Use GetFindingRequest.newBuilder() to construct. + private GetFindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetFindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetFindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetFindingRequest.class, + com.google.cloud.agentregistry.v1.GetFindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the Finding to retrieve.
+   * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+   * 
+ * + * + * 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 Finding to retrieve.
+   * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+   * 
+ * + * + * 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.agentregistry.v1.GetFindingRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetFindingRequest other = + (com.google.cloud.agentregistry.v1.GetFindingRequest) 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.agentregistry.v1.GetFindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetFindingRequest 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.agentregistry.v1.GetFindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetFindingRequest 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.agentregistry.v1.GetFindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetFindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetFindingRequest 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.agentregistry.v1.GetFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetFindingRequest 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.agentregistry.v1.GetFindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetFindingRequest 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.agentregistry.v1.GetFindingRequest 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 for getting a Finding.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetFindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetFindingRequest) + com.google.cloud.agentregistry.v1.GetFindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetFindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetFindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetFindingRequest.class, + com.google.cloud.agentregistry.v1.GetFindingRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetFindingRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetFindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetFindingRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetFindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetFindingRequest build() { + com.google.cloud.agentregistry.v1.GetFindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetFindingRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetFindingRequest result = + new com.google.cloud.agentregistry.v1.GetFindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetFindingRequest 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.agentregistry.v1.GetFindingRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetFindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetFindingRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetFindingRequest.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 Finding to retrieve.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * + * 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 Finding to retrieve.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * + * 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 Finding to retrieve.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * + * 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 Finding to retrieve.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * + * 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 Finding to retrieve.
+     * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+     * 
+ * + * + * 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.agentregistry.v1.GetFindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetFindingRequest) + private static final com.google.cloud.agentregistry.v1.GetFindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetFindingRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetFindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest 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.agentregistry.v1.GetFindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetFindingRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetFindingRequestOrBuilder.java new file mode 100644 index 000000000000..71eb5f4250f0 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetFindingRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetFindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Finding to retrieve.
+   * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the Finding to retrieve.
+   * Format: `projects/{project}/locations/{location}/findings/{finding}`.
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetPublisherRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetPublisherRequest.java new file mode 100644 index 000000000000..67803000b1fc --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetPublisherRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Requesting details of a specific Publisher.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetPublisherRequest} + */ +@com.google.protobuf.Generated +public final class GetPublisherRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetPublisherRequest) + GetPublisherRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetPublisherRequest"); + } + + // Use GetPublisherRequest.newBuilder() to construct. + private GetPublisherRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetPublisherRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetPublisherRequest.class, + com.google.cloud.agentregistry.v1.GetPublisherRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Target publisher resource name.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * 
+ * + * + * 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. Target publisher resource name.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * 
+ * + * + * 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.agentregistry.v1.GetPublisherRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetPublisherRequest other = + (com.google.cloud.agentregistry.v1.GetPublisherRequest) 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.agentregistry.v1.GetPublisherRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetPublisherRequest 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.agentregistry.v1.GetPublisherRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetPublisherRequest 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.agentregistry.v1.GetPublisherRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetPublisherRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetPublisherRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetPublisherRequest 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.agentregistry.v1.GetPublisherRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetPublisherRequest 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.agentregistry.v1.GetPublisherRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetPublisherRequest 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.agentregistry.v1.GetPublisherRequest 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; + } + + /** + * + * + *
+   * Requesting details of a specific Publisher.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetPublisherRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetPublisherRequest) + com.google.cloud.agentregistry.v1.GetPublisherRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetPublisherRequest.class, + com.google.cloud.agentregistry.v1.GetPublisherRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetPublisherRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetPublisherRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetPublisherRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetPublisherRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetPublisherRequest build() { + com.google.cloud.agentregistry.v1.GetPublisherRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetPublisherRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetPublisherRequest result = + new com.google.cloud.agentregistry.v1.GetPublisherRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetPublisherRequest 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.agentregistry.v1.GetPublisherRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetPublisherRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetPublisherRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetPublisherRequest.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. Target publisher resource name.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * + * 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. Target publisher resource name.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * + * 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. Target publisher resource name.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * + * 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. Target publisher resource name.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * + * 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. Target publisher resource name.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * + * 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.agentregistry.v1.GetPublisherRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetPublisherRequest) + private static final com.google.cloud.agentregistry.v1.GetPublisherRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetPublisherRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetPublisherRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPublisherRequest 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.agentregistry.v1.GetPublisherRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetPublisherRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetPublisherRequestOrBuilder.java new file mode 100644 index 000000000000..50c10474cc2f --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetPublisherRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetPublisherRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetPublisherRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Target publisher resource name.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Target publisher resource name.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillEncryptionSpecRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillEncryptionSpecRequest.java new file mode 100644 index 000000000000..e05c1ee51517 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillEncryptionSpecRequest.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for requesting a SkillEncryptionSpec.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest} + */ +@com.google.protobuf.Generated +public final class GetSkillEncryptionSpecRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest) + GetSkillEncryptionSpecRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetSkillEncryptionSpecRequest"); + } + + // Use GetSkillEncryptionSpecRequest.newBuilder() to construct. + private GetSkillEncryptionSpecRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSkillEncryptionSpecRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest.class, + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the SkillEncryptionSpec to retrieve.
+   * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+   * 
+ * + * + * 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 SkillEncryptionSpec to retrieve.
+   * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+   * 
+ * + * + * 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.agentregistry.v1.GetSkillEncryptionSpecRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest other = + (com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest) 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.agentregistry.v1.GetSkillEncryptionSpecRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest 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.agentregistry.v1.GetSkillEncryptionSpecRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest 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.agentregistry.v1.GetSkillEncryptionSpecRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest 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.agentregistry.v1.GetSkillEncryptionSpecRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest 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.agentregistry.v1.GetSkillEncryptionSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest 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.agentregistry.v1.GetSkillEncryptionSpecRequest 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 for requesting a SkillEncryptionSpec.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest) + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest.class, + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillEncryptionSpecRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest build() { + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest result = + new com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest 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.agentregistry.v1.GetSkillEncryptionSpecRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest other) { + if (other + == com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest.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 SkillEncryptionSpec to retrieve.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+     * 
+ * + * + * 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 SkillEncryptionSpec to retrieve.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+     * 
+ * + * + * 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 SkillEncryptionSpec to retrieve.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+     * 
+ * + * + * 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 SkillEncryptionSpec to retrieve.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+     * 
+ * + * + * 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 SkillEncryptionSpec to retrieve.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+     * 
+ * + * + * 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.agentregistry.v1.GetSkillEncryptionSpecRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest) + private static final com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSkillEncryptionSpecRequest 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.agentregistry.v1.GetSkillEncryptionSpecRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillEncryptionSpecRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillEncryptionSpecRequestOrBuilder.java new file mode 100644 index 000000000000..0515083097cd --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillEncryptionSpecRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetSkillEncryptionSpecRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the SkillEncryptionSpec to retrieve.
+   * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the SkillEncryptionSpec to retrieve.
+   * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`.
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRequest.java new file mode 100644 index 000000000000..e21b71424b41 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message requesting details of a Skill.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetSkillRequest} + */ +@com.google.protobuf.Generated +public final class GetSkillRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetSkillRequest) + GetSkillRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetSkillRequest"); + } + + // Use GetSkillRequest.newBuilder() to construct. + private GetSkillRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSkillRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetSkillRequest.class, + com.google.cloud.agentregistry.v1.GetSkillRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Target resource container name.
+   * 
+ * + * + * 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. Target resource container name.
+   * 
+ * + * + * 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.agentregistry.v1.GetSkillRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetSkillRequest other = + (com.google.cloud.agentregistry.v1.GetSkillRequest) 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.agentregistry.v1.GetSkillRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRequest 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.agentregistry.v1.GetSkillRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRequest 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.agentregistry.v1.GetSkillRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRequest 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.agentregistry.v1.GetSkillRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRequest 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.agentregistry.v1.GetSkillRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRequest 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.agentregistry.v1.GetSkillRequest 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 requesting details of a Skill.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetSkillRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetSkillRequest) + com.google.cloud.agentregistry.v1.GetSkillRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetSkillRequest.class, + com.google.cloud.agentregistry.v1.GetSkillRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetSkillRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetSkillRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillRequest build() { + com.google.cloud.agentregistry.v1.GetSkillRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetSkillRequest result = + new com.google.cloud.agentregistry.v1.GetSkillRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetSkillRequest 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.agentregistry.v1.GetSkillRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetSkillRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetSkillRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetSkillRequest.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. Target resource container name.
+     * 
+ * + * + * 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. Target resource container name.
+     * 
+ * + * + * 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. Target resource container name.
+     * 
+ * + * + * 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. Target resource container name.
+     * 
+ * + * + * 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. Target resource container name.
+     * 
+ * + * + * 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.agentregistry.v1.GetSkillRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetSkillRequest) + private static final com.google.cloud.agentregistry.v1.GetSkillRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetSkillRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSkillRequest 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.agentregistry.v1.GetSkillRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRequestOrBuilder.java new file mode 100644 index 000000000000..6ba0028895b0 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetSkillRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetSkillRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Target resource container name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Target resource container name.
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRevisionRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRevisionRequest.java new file mode 100644 index 000000000000..25ba48d48186 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRevisionRequest.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Requesting details of a Revision.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetSkillRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetSkillRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetSkillRevisionRequest) + GetSkillRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetSkillRevisionRequest"); + } + + // Use GetSkillRevisionRequest.newBuilder() to construct. + private GetSkillRevisionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSkillRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest.class, + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Target revision name.
+   * 
+ * + * + * 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. Target revision name.
+   * 
+ * + * + * 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.agentregistry.v1.GetSkillRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest other = + (com.google.cloud.agentregistry.v1.GetSkillRevisionRequest) 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.agentregistry.v1.GetSkillRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRevisionRequest 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.agentregistry.v1.GetSkillRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRevisionRequest 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.agentregistry.v1.GetSkillRevisionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRevisionRequest 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.agentregistry.v1.GetSkillRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRevisionRequest 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.agentregistry.v1.GetSkillRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRevisionRequest 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.agentregistry.v1.GetSkillRevisionRequest 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; + } + + /** + * + * + *
+   * Requesting details of a Revision.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.GetSkillRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetSkillRevisionRequest) + com.google.cloud.agentregistry.v1.GetSkillRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest.class, + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetSkillRevisionRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetSkillRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillRevisionRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetSkillRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillRevisionRequest build() { + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetSkillRevisionRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetSkillRevisionRequest result = + new com.google.cloud.agentregistry.v1.GetSkillRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetSkillRevisionRequest 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.agentregistry.v1.GetSkillRevisionRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetSkillRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetSkillRevisionRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetSkillRevisionRequest.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. Target revision name.
+     * 
+ * + * + * 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. Target revision name.
+     * 
+ * + * + * 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. Target revision name.
+     * 
+ * + * + * 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. Target revision name.
+     * 
+ * + * + * 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. Target revision name.
+     * 
+ * + * + * 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.agentregistry.v1.GetSkillRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetSkillRevisionRequest) + private static final com.google.cloud.agentregistry.v1.GetSkillRevisionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetSkillRevisionRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetSkillRevisionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSkillRevisionRequest 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.agentregistry.v1.GetSkillRevisionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRevisionRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..038f52509f3e --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetSkillRevisionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetSkillRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetSkillRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Target revision name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Target revision name.
+   * 
+ * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsRequest.java new file mode 100644 index 000000000000..bb9c99502979 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsRequest.java @@ -0,0 +1,922 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for requesting list of Agents under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest} + */ +@com.google.protobuf.Generated +public final class ListAiApplicationAgentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) + ListAiApplicationAgentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAiApplicationAgentsRequest"); + } + + // Use ListAiApplicationAgentsRequest.newBuilder() to construct. + private ListAiApplicationAgentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAiApplicationAgentsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest.class, + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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.cloud.agentregistry.v1.ListAiApplicationAgentsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest other = + (com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) 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.cloud.agentregistry.v1.ListAiApplicationAgentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest 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.agentregistry.v1.ListAiApplicationAgentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest 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.agentregistry.v1.ListAiApplicationAgentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest 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.agentregistry.v1.ListAiApplicationAgentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest 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.agentregistry.v1.ListAiApplicationAgentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest 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.agentregistry.v1.ListAiApplicationAgentsRequest 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 for requesting list of Agents under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest.class, + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest.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.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest build() { + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest result = + new com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest 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.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest other) { + if (other + == com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest.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. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) + private static final com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAiApplicationAgentsRequest 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.agentregistry.v1.ListAiApplicationAgentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsRequestOrBuilder.java new file mode 100644 index 000000000000..61e4a22a4bcb --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAiApplicationAgentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent value (AI Application) for ListAiApplicationAgentsRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsResponse.java new file mode 100644 index 000000000000..ed6a26cefaec --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsResponse.java @@ -0,0 +1,1120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for response to listing Agents under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse} + */ +@com.google.protobuf.Generated +public final class ListAiApplicationAgentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse) + ListAiApplicationAgentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAiApplicationAgentsResponse"); + } + + // Use ListAiApplicationAgentsResponse.newBuilder() to construct. + private ListAiApplicationAgentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAiApplicationAgentsResponse() { + agents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse.class, + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse.Builder.class); + } + + public static final int AGENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List agents_; + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public java.util.List getAgentsList() { + return agents_; + } + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public java.util.List + getAgentsOrBuilderList() { + return agents_; + } + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public int getAgentsCount() { + return agents_.size(); + } + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent getAgents(int index) { + return agents_.get(index); + } + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + return agents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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 < agents_.size(); i++) { + output.writeMessage(1, agents_.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 < agents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agents_.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.agentregistry.v1.ListAiApplicationAgentsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse other = + (com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse) obj; + + if (!getAgentsList().equals(other.getAgentsList())) 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 (getAgentsCount() > 0) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getAgentsList().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.agentregistry.v1.ListAiApplicationAgentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse 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.agentregistry.v1.ListAiApplicationAgentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse 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.agentregistry.v1.ListAiApplicationAgentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse 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.agentregistry.v1.ListAiApplicationAgentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse + 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.agentregistry.v1.ListAiApplicationAgentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse 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.agentregistry.v1.ListAiApplicationAgentsResponse 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 for response to listing Agents under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse) + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse.class, + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + } else { + agents_ = null; + agentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationAgentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse build() { + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse result = + new com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse result) { + if (agentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + agents_ = java.util.Collections.unmodifiableList(agents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.agents_ = agents_; + } else { + result.agents_ = agentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse 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.agentregistry.v1.ListAiApplicationAgentsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse other) { + if (other + == com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse.getDefaultInstance()) + return this; + if (agentsBuilder_ == null) { + if (!other.agents_.isEmpty()) { + if (agents_.isEmpty()) { + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAgentsIsMutable(); + agents_.addAll(other.agents_); + } + onChanged(); + } + } else { + if (!other.agents_.isEmpty()) { + if (agentsBuilder_.isEmpty()) { + agentsBuilder_.dispose(); + agentsBuilder_ = null; + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000001); + agentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentsFieldBuilder() + : null; + } else { + agentsBuilder_.addAllMessages(other.agents_); + } + } + } + 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.agentregistry.v1.Agent m = + input.readMessage( + com.google.cloud.agentregistry.v1.Agent.parser(), extensionRegistry); + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(m); + } else { + agentsBuilder_.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 agents_ = + java.util.Collections.emptyList(); + + private void ensureAgentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + agents_ = new java.util.ArrayList(agents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder> + agentsBuilder_; + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List getAgentsList() { + if (agentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(agents_); + } else { + return agentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public int getAgentsCount() { + if (agentsBuilder_ == null) { + return agents_.size(); + } else { + return agentsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent getAgents(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder setAgents(int index, com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.set(index, value); + onChanged(); + } else { + agentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder setAgents( + int index, com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.set(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(value); + onChanged(); + } else { + agentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(int index, com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(index, value); + onChanged(); + } else { + agentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents( + int index, com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAllAgents( + java.lang.Iterable values) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agents_); + onChanged(); + } else { + agentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder clearAgents() { + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + agentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder removeAgents(int index) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.remove(index); + onChanged(); + } else { + agentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder getAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List + getAgentsOrBuilderList() { + if (agentsBuilder_ != null) { + return agentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agents_); + } + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder addAgentsBuilder() { + return internalGetAgentsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder addAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Agents.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List getAgentsBuilderList() { + return internalGetAgentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder> + internalGetAgentsFieldBuilder() { + if (agentsBuilder_ == null) { + agentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder>( + agents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + agents_ = null; + } + return agentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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.agentregistry.v1.ListAiApplicationAgentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse) + private static final com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAiApplicationAgentsResponse 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.agentregistry.v1.ListAiApplicationAgentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsResponseOrBuilder.java new file mode 100644 index 000000000000..8985ace6a5c8 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationAgentsResponseOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAiApplicationAgentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + java.util.List getAgentsList(); + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + com.google.cloud.agentregistry.v1.Agent getAgents(int index); + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + int getAgentsCount(); + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + java.util.List + getAgentsOrBuilderList(); + + /** + * + * + *
+   * The list of Agents.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsRequest.java new file mode 100644 index 000000000000..88f42fb056d6 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsRequest.java @@ -0,0 +1,934 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for requesting list of Endpoints under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest} + */ +@com.google.protobuf.Generated +public final class ListAiApplicationEndpointsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) + ListAiApplicationEndpointsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAiApplicationEndpointsRequest"); + } + + // Use ListAiApplicationEndpointsRequest.newBuilder() to construct. + private ListAiApplicationEndpointsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAiApplicationEndpointsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest.class, + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value (AI Application) for
+   * ListAiApplicationEndpointsRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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. Parent value (AI Application) for
+   * ListAiApplicationEndpointsRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest other = + (com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) 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.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest 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.agentregistry.v1.ListAiApplicationEndpointsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest 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.agentregistry.v1.ListAiApplicationEndpointsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest 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.agentregistry.v1.ListAiApplicationEndpointsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest + 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.agentregistry.v1.ListAiApplicationEndpointsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest 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.agentregistry.v1.ListAiApplicationEndpointsRequest 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 for requesting list of Endpoints under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest.class, + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest.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.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest build() { + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest result = + new com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest 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.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) { + return mergeFrom( + (com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest other) { + if (other + == com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest + .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. Parent value (AI Application) for
+     * ListAiApplicationEndpointsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for
+     * ListAiApplicationEndpointsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for
+     * ListAiApplicationEndpointsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for
+     * ListAiApplicationEndpointsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for
+     * ListAiApplicationEndpointsRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) + private static final com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAiApplicationEndpointsRequest 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.agentregistry.v1.ListAiApplicationEndpointsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsRequestOrBuilder.java new file mode 100644 index 000000000000..046c65484c1a --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAiApplicationEndpointsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value (AI Application) for
+   * ListAiApplicationEndpointsRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent value (AI Application) for
+   * ListAiApplicationEndpointsRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsResponse.java new file mode 100644 index 000000000000..4deb50c7a637 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsResponse.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for response to listing Endpoints under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse} + */ +@com.google.protobuf.Generated +public final class ListAiApplicationEndpointsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse) + ListAiApplicationEndpointsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAiApplicationEndpointsResponse"); + } + + // Use ListAiApplicationEndpointsResponse.newBuilder() to construct. + private ListAiApplicationEndpointsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAiApplicationEndpointsResponse() { + endpoints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse.class, + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse.Builder.class); + } + + public static final int ENDPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List endpoints_; + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public java.util.List getEndpointsList() { + return endpoints_; + } + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public java.util.List + getEndpointsOrBuilderList() { + return endpoints_; + } + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public int getEndpointsCount() { + return endpoints_.size(); + } + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Endpoint getEndpoints(int index) { + return endpoints_.get(index); + } + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.EndpointOrBuilder getEndpointsOrBuilder(int index) { + return endpoints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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 < endpoints_.size(); i++) { + output.writeMessage(1, endpoints_.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 < endpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, endpoints_.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.agentregistry.v1.ListAiApplicationEndpointsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse other = + (com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse) obj; + + if (!getEndpointsList().equals(other.getEndpointsList())) 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 (getEndpointsCount() > 0) { + hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getEndpointsList().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.agentregistry.v1.ListAiApplicationEndpointsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse 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.agentregistry.v1.ListAiApplicationEndpointsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse 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.agentregistry.v1.ListAiApplicationEndpointsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse 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.agentregistry.v1.ListAiApplicationEndpointsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + 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.agentregistry.v1.ListAiApplicationEndpointsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse 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.agentregistry.v1.ListAiApplicationEndpointsResponse 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 for response to listing Endpoints under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse) + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse.class, + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (endpointsBuilder_ == null) { + endpoints_ = java.util.Collections.emptyList(); + } else { + endpoints_ = null; + endpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationEndpointsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse build() { + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse result = + new com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse result) { + if (endpointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + endpoints_ = java.util.Collections.unmodifiableList(endpoints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.endpoints_ = endpoints_; + } else { + result.endpoints_ = endpointsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse 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.agentregistry.v1.ListAiApplicationEndpointsResponse) { + return mergeFrom( + (com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse other) { + if (other + == com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + .getDefaultInstance()) return this; + if (endpointsBuilder_ == null) { + if (!other.endpoints_.isEmpty()) { + if (endpoints_.isEmpty()) { + endpoints_ = other.endpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEndpointsIsMutable(); + endpoints_.addAll(other.endpoints_); + } + onChanged(); + } + } else { + if (!other.endpoints_.isEmpty()) { + if (endpointsBuilder_.isEmpty()) { + endpointsBuilder_.dispose(); + endpointsBuilder_ = null; + endpoints_ = other.endpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + endpointsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEndpointsFieldBuilder() + : null; + } else { + endpointsBuilder_.addAllMessages(other.endpoints_); + } + } + } + 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.agentregistry.v1.Endpoint m = + input.readMessage( + com.google.cloud.agentregistry.v1.Endpoint.parser(), extensionRegistry); + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(m); + } else { + endpointsBuilder_.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 endpoints_ = + java.util.Collections.emptyList(); + + private void ensureEndpointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + endpoints_ = + new java.util.ArrayList(endpoints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Endpoint, + com.google.cloud.agentregistry.v1.Endpoint.Builder, + com.google.cloud.agentregistry.v1.EndpointOrBuilder> + endpointsBuilder_; + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public java.util.List getEndpointsList() { + if (endpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(endpoints_); + } else { + return endpointsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public int getEndpointsCount() { + if (endpointsBuilder_ == null) { + return endpoints_.size(); + } else { + return endpointsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.Endpoint getEndpoints(int index) { + if (endpointsBuilder_ == null) { + return endpoints_.get(index); + } else { + return endpointsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder setEndpoints(int index, com.google.cloud.agentregistry.v1.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.set(index, value); + onChanged(); + } else { + endpointsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder setEndpoints( + int index, com.google.cloud.agentregistry.v1.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addEndpoints(com.google.cloud.agentregistry.v1.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(value); + onChanged(); + } else { + endpointsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addEndpoints(int index, com.google.cloud.agentregistry.v1.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(index, value); + onChanged(); + } else { + endpointsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addEndpoints( + com.google.cloud.agentregistry.v1.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addEndpoints( + int index, com.google.cloud.agentregistry.v1.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addAllEndpoints( + java.lang.Iterable values) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpoints_); + onChanged(); + } else { + endpointsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder clearEndpoints() { + if (endpointsBuilder_ == null) { + endpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + endpointsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder removeEndpoints(int index) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.remove(index); + onChanged(); + } else { + endpointsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.Endpoint.Builder getEndpointsBuilder(int index) { + return internalGetEndpointsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.EndpointOrBuilder getEndpointsOrBuilder(int index) { + if (endpointsBuilder_ == null) { + return endpoints_.get(index); + } else { + return endpointsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public java.util.List + getEndpointsOrBuilderList() { + if (endpointsBuilder_ != null) { + return endpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(endpoints_); + } + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.Endpoint.Builder addEndpointsBuilder() { + return internalGetEndpointsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Endpoint.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.Endpoint.Builder addEndpointsBuilder(int index) { + return internalGetEndpointsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Endpoint.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Endpoints.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public java.util.List + getEndpointsBuilderList() { + return internalGetEndpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Endpoint, + com.google.cloud.agentregistry.v1.Endpoint.Builder, + com.google.cloud.agentregistry.v1.EndpointOrBuilder> + internalGetEndpointsFieldBuilder() { + if (endpointsBuilder_ == null) { + endpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Endpoint, + com.google.cloud.agentregistry.v1.Endpoint.Builder, + com.google.cloud.agentregistry.v1.EndpointOrBuilder>( + endpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + endpoints_ = null; + } + return endpointsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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.agentregistry.v1.ListAiApplicationEndpointsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse) + private static final com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAiApplicationEndpointsResponse 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.agentregistry.v1.ListAiApplicationEndpointsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsResponseOrBuilder.java new file mode 100644 index 000000000000..feacf05d056e --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationEndpointsResponseOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAiApplicationEndpointsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + java.util.List getEndpointsList(); + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + com.google.cloud.agentregistry.v1.Endpoint getEndpoints(int index); + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + int getEndpointsCount(); + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + java.util.List + getEndpointsOrBuilderList(); + + /** + * + * + *
+   * The list of Endpoints.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + com.google.cloud.agentregistry.v1.EndpointOrBuilder getEndpointsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersRequest.java new file mode 100644 index 000000000000..31b7a283627f --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersRequest.java @@ -0,0 +1,934 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for requesting list of McpServers under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest} + */ +@com.google.protobuf.Generated +public final class ListAiApplicationMcpServersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) + ListAiApplicationMcpServersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAiApplicationMcpServersRequest"); + } + + // Use ListAiApplicationMcpServersRequest.newBuilder() to construct. + private ListAiApplicationMcpServersRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAiApplicationMcpServersRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest.class, + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value (AI Application) for
+   * ListAiApplicationMcpServersRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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. Parent value (AI Application) for
+   * ListAiApplicationMcpServersRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest other = + (com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) 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.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest 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.agentregistry.v1.ListAiApplicationMcpServersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest 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.agentregistry.v1.ListAiApplicationMcpServersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest 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.agentregistry.v1.ListAiApplicationMcpServersRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest + 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.agentregistry.v1.ListAiApplicationMcpServersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest 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.agentregistry.v1.ListAiApplicationMcpServersRequest 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 for requesting list of McpServers under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest.class, + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest.Builder.class); + } + + // Construct using + // com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest.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.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest build() { + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest result = + new com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest 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.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) { + return mergeFrom( + (com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest other) { + if (other + == com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest + .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. Parent value (AI Application) for
+     * ListAiApplicationMcpServersRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for
+     * ListAiApplicationMcpServersRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for
+     * ListAiApplicationMcpServersRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for
+     * ListAiApplicationMcpServersRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Parent value (AI Application) for
+     * ListAiApplicationMcpServersRequest.
+     * Format:
+     * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) + private static final com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAiApplicationMcpServersRequest 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.agentregistry.v1.ListAiApplicationMcpServersRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersRequestOrBuilder.java new file mode 100644 index 000000000000..d0d7ed7bba58 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAiApplicationMcpServersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value (AI Application) for
+   * ListAiApplicationMcpServersRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent value (AI Application) for
+   * ListAiApplicationMcpServersRequest.
+   * Format:
+   * `projects/{project}/locations/{location}/aiApplications/{ai_application}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersResponse.java new file mode 100644 index 000000000000..b2c314817070 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersResponse.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for response to listing McpServers under an AI Application.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse} + */ +@com.google.protobuf.Generated +public final class ListAiApplicationMcpServersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse) + ListAiApplicationMcpServersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAiApplicationMcpServersResponse"); + } + + // Use ListAiApplicationMcpServersResponse.newBuilder() to construct. + private ListAiApplicationMcpServersResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAiApplicationMcpServersResponse() { + mcpServers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse.class, + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse.Builder.class); + } + + public static final int MCP_SERVERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mcpServers_; + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public java.util.List getMcpServersList() { + return mcpServers_; + } + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public java.util.List + getMcpServersOrBuilderList() { + return mcpServers_; + } + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public int getMcpServersCount() { + return mcpServers_.size(); + } + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index) { + return mcpServers_.get(index); + } + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(int index) { + return mcpServers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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 < mcpServers_.size(); i++) { + output.writeMessage(1, mcpServers_.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 < mcpServers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mcpServers_.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.agentregistry.v1.ListAiApplicationMcpServersResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse other = + (com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse) obj; + + if (!getMcpServersList().equals(other.getMcpServersList())) 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 (getMcpServersCount() > 0) { + hash = (37 * hash) + MCP_SERVERS_FIELD_NUMBER; + hash = (53 * hash) + getMcpServersList().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.agentregistry.v1.ListAiApplicationMcpServersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse 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.agentregistry.v1.ListAiApplicationMcpServersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse 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.agentregistry.v1.ListAiApplicationMcpServersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse 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.agentregistry.v1.ListAiApplicationMcpServersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + 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.agentregistry.v1.ListAiApplicationMcpServersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse 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.agentregistry.v1.ListAiApplicationMcpServersResponse 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 for response to listing McpServers under an AI Application.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse) + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse.class, + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse.Builder.class); + } + + // Construct using + // com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mcpServersBuilder_ == null) { + mcpServers_ = java.util.Collections.emptyList(); + } else { + mcpServers_ = null; + mcpServersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationMcpServersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse build() { + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse result = + new com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse result) { + if (mcpServersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mcpServers_ = java.util.Collections.unmodifiableList(mcpServers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mcpServers_ = mcpServers_; + } else { + result.mcpServers_ = mcpServersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse 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.agentregistry.v1.ListAiApplicationMcpServersResponse) { + return mergeFrom( + (com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse other) { + if (other + == com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + .getDefaultInstance()) return this; + if (mcpServersBuilder_ == null) { + if (!other.mcpServers_.isEmpty()) { + if (mcpServers_.isEmpty()) { + mcpServers_ = other.mcpServers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMcpServersIsMutable(); + mcpServers_.addAll(other.mcpServers_); + } + onChanged(); + } + } else { + if (!other.mcpServers_.isEmpty()) { + if (mcpServersBuilder_.isEmpty()) { + mcpServersBuilder_.dispose(); + mcpServersBuilder_ = null; + mcpServers_ = other.mcpServers_; + bitField0_ = (bitField0_ & ~0x00000001); + mcpServersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMcpServersFieldBuilder() + : null; + } else { + mcpServersBuilder_.addAllMessages(other.mcpServers_); + } + } + } + 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.agentregistry.v1.McpServer m = + input.readMessage( + com.google.cloud.agentregistry.v1.McpServer.parser(), extensionRegistry); + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(m); + } else { + mcpServersBuilder_.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 mcpServers_ = + java.util.Collections.emptyList(); + + private void ensureMcpServersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mcpServers_ = + new java.util.ArrayList(mcpServers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder> + mcpServersBuilder_; + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List getMcpServersList() { + if (mcpServersBuilder_ == null) { + return java.util.Collections.unmodifiableList(mcpServers_); + } else { + return mcpServersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public int getMcpServersCount() { + if (mcpServersBuilder_ == null) { + return mcpServers_.size(); + } else { + return mcpServersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index) { + if (mcpServersBuilder_ == null) { + return mcpServers_.get(index); + } else { + return mcpServersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder setMcpServers(int index, com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.set(index, value); + onChanged(); + } else { + mcpServersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder setMcpServers( + int index, com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.set(index, builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers(com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.add(value); + onChanged(); + } else { + mcpServersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers(int index, com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.add(index, value); + onChanged(); + } else { + mcpServersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers( + com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers( + int index, com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(index, builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addAllMcpServers( + java.lang.Iterable values) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mcpServers_); + onChanged(); + } else { + mcpServersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder clearMcpServers() { + if (mcpServersBuilder_ == null) { + mcpServers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mcpServersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder removeMcpServers(int index) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.remove(index); + onChanged(); + } else { + mcpServersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder getMcpServersBuilder(int index) { + return internalGetMcpServersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(int index) { + if (mcpServersBuilder_ == null) { + return mcpServers_.get(index); + } else { + return mcpServersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List + getMcpServersOrBuilderList() { + if (mcpServersBuilder_ != null) { + return mcpServersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mcpServers_); + } + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder addMcpServersBuilder() { + return internalGetMcpServersFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder addMcpServersBuilder(int index) { + return internalGetMcpServersFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of McpServers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List + getMcpServersBuilderList() { + return internalGetMcpServersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder> + internalGetMcpServersFieldBuilder() { + if (mcpServersBuilder_ == null) { + mcpServersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder>( + mcpServers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + mcpServers_ = null; + } + return mcpServersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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.agentregistry.v1.ListAiApplicationMcpServersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse) + private static final com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAiApplicationMcpServersResponse 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.agentregistry.v1.ListAiApplicationMcpServersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersResponseOrBuilder.java new file mode 100644 index 000000000000..e4f50f68f5c1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationMcpServersResponseOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAiApplicationMcpServersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + java.util.List getMcpServersList(); + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index); + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + int getMcpServersCount(); + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + java.util.List + getMcpServersOrBuilderList(); + + /** + * + * + *
+   * The list of McpServers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsRequest.java new file mode 100644 index 000000000000..c82e2cde6c61 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for requesting a list of AiApplications.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationsRequest} + */ +@com.google.protobuf.Generated +public final class ListAiApplicationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAiApplicationsRequest) + ListAiApplicationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAiApplicationsRequest"); + } + + // Use ListAiApplicationsRequest.newBuilder() to construct. + private ListAiApplicationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAiApplicationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest.class, + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent project and location to query.
+   * 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. Parent project and location to query.
+   * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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. Filtering results.
+   * 
+ * + * 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. Filtering results.
+   * 
+ * + * 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. Hint for how to order the results.
+   * 
+ * + * 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. Hint for how to order the results.
+   * 
+ * + * 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.agentregistry.v1.ListAiApplicationsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest other = + (com.google.cloud.agentregistry.v1.ListAiApplicationsRequest) 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.agentregistry.v1.ListAiApplicationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsRequest 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.agentregistry.v1.ListAiApplicationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsRequest 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.agentregistry.v1.ListAiApplicationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsRequest 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.agentregistry.v1.ListAiApplicationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsRequest 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.agentregistry.v1.ListAiApplicationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsRequest 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.agentregistry.v1.ListAiApplicationsRequest 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 for requesting a list of AiApplications.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAiApplicationsRequest) + com.google.cloud.agentregistry.v1.ListAiApplicationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest.class, + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListAiApplicationsRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAiApplicationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationsRequest build() { + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListAiApplicationsRequest result = + new com.google.cloud.agentregistry.v1.ListAiApplicationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListAiApplicationsRequest 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.agentregistry.v1.ListAiApplicationsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListAiApplicationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListAiApplicationsRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListAiApplicationsRequest.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. Parent project and location to query.
+     * 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. Parent project and location to query.
+     * 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. Parent project and location to query.
+     * 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. Parent project and location to query.
+     * 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. Parent project and location to query.
+     * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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. Filtering results.
+     * 
+ * + * 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. Filtering results.
+     * 
+ * + * 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. Filtering results.
+     * 
+ * + * 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. Filtering results.
+     * 
+ * + * 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. Filtering results.
+     * 
+ * + * 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. Hint for how to order the results.
+     * 
+ * + * 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. Hint for how to order the results.
+     * 
+ * + * 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. Hint for how to order the results.
+     * 
+ * + * 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. Hint for how to order the results.
+     * 
+ * + * 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. Hint for how to order the results.
+     * 
+ * + * 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.agentregistry.v1.ListAiApplicationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAiApplicationsRequest) + private static final com.google.cloud.agentregistry.v1.ListAiApplicationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAiApplicationsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAiApplicationsRequest 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.agentregistry.v1.ListAiApplicationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsRequestOrBuilder.java new file mode 100644 index 000000000000..1c7cf9bc5e3d --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAiApplicationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAiApplicationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent project and location to query.
+   * 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. Parent project and location to query.
+   * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filtering results.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filtering results.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Hint for how to order the results.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Hint for how to order the results.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsResponse.java new file mode 100644 index 000000000000..74378d3eea79 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsResponse.java @@ -0,0 +1,1419 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for response to listing AiApplications.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationsResponse} + */ +@com.google.protobuf.Generated +public final class ListAiApplicationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAiApplicationsResponse) + ListAiApplicationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAiApplicationsResponse"); + } + + // Use ListAiApplicationsResponse.newBuilder() to construct. + private ListAiApplicationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAiApplicationsResponse() { + aiApplications_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse.class, + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse.Builder.class); + } + + public static final int AI_APPLICATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List aiApplications_; + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + @java.lang.Override + public java.util.List getAiApplicationsList() { + return aiApplications_; + } + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + @java.lang.Override + public java.util.List + getAiApplicationsOrBuilderList() { + return aiApplications_; + } + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + @java.lang.Override + public int getAiApplicationsCount() { + return aiApplications_.size(); + } + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.AiApplication getAiApplications(int index) { + return aiApplications_.get(index); + } + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.AiApplicationOrBuilder getAiApplicationsOrBuilder( + int index) { + return aiApplications_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < aiApplications_.size(); i++) { + output.writeMessage(1, aiApplications_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(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 < aiApplications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, aiApplications_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.agentregistry.v1.ListAiApplicationsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse other = + (com.google.cloud.agentregistry.v1.ListAiApplicationsResponse) obj; + + if (!getAiApplicationsList().equals(other.getAiApplicationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) 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 (getAiApplicationsCount() > 0) { + hash = (37 * hash) + AI_APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAiApplicationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse 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.agentregistry.v1.ListAiApplicationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse 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.agentregistry.v1.ListAiApplicationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse 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.agentregistry.v1.ListAiApplicationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse 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.agentregistry.v1.ListAiApplicationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse 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.agentregistry.v1.ListAiApplicationsResponse 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 for response to listing AiApplications.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAiApplicationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAiApplicationsResponse) + com.google.cloud.agentregistry.v1.ListAiApplicationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse.class, + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListAiApplicationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aiApplicationsBuilder_ == null) { + aiApplications_ = java.util.Collections.emptyList(); + } else { + aiApplications_ = null; + aiApplicationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAiApplicationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationsResponse + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAiApplicationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationsResponse build() { + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAiApplicationsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse result = + new com.google.cloud.agentregistry.v1.ListAiApplicationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse result) { + if (aiApplicationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aiApplications_ = java.util.Collections.unmodifiableList(aiApplications_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aiApplications_ = aiApplications_; + } else { + result.aiApplications_ = aiApplicationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.ListAiApplicationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListAiApplicationsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListAiApplicationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListAiApplicationsResponse other) { + if (other + == com.google.cloud.agentregistry.v1.ListAiApplicationsResponse.getDefaultInstance()) + return this; + if (aiApplicationsBuilder_ == null) { + if (!other.aiApplications_.isEmpty()) { + if (aiApplications_.isEmpty()) { + aiApplications_ = other.aiApplications_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAiApplicationsIsMutable(); + aiApplications_.addAll(other.aiApplications_); + } + onChanged(); + } + } else { + if (!other.aiApplications_.isEmpty()) { + if (aiApplicationsBuilder_.isEmpty()) { + aiApplicationsBuilder_.dispose(); + aiApplicationsBuilder_ = null; + aiApplications_ = other.aiApplications_; + bitField0_ = (bitField0_ & ~0x00000001); + aiApplicationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAiApplicationsFieldBuilder() + : null; + } else { + aiApplicationsBuilder_.addAllMessages(other.aiApplications_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.agentregistry.v1.AiApplication m = + input.readMessage( + com.google.cloud.agentregistry.v1.AiApplication.parser(), + extensionRegistry); + if (aiApplicationsBuilder_ == null) { + ensureAiApplicationsIsMutable(); + aiApplications_.add(m); + } else { + aiApplicationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List aiApplications_ = + java.util.Collections.emptyList(); + + private void ensureAiApplicationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aiApplications_ = + new java.util.ArrayList( + aiApplications_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.AiApplication, + com.google.cloud.agentregistry.v1.AiApplication.Builder, + com.google.cloud.agentregistry.v1.AiApplicationOrBuilder> + aiApplicationsBuilder_; + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public java.util.List getAiApplicationsList() { + if (aiApplicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(aiApplications_); + } else { + return aiApplicationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public int getAiApplicationsCount() { + if (aiApplicationsBuilder_ == null) { + return aiApplications_.size(); + } else { + return aiApplicationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public com.google.cloud.agentregistry.v1.AiApplication getAiApplications(int index) { + if (aiApplicationsBuilder_ == null) { + return aiApplications_.get(index); + } else { + return aiApplicationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder setAiApplications( + int index, com.google.cloud.agentregistry.v1.AiApplication value) { + if (aiApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAiApplicationsIsMutable(); + aiApplications_.set(index, value); + onChanged(); + } else { + aiApplicationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder setAiApplications( + int index, com.google.cloud.agentregistry.v1.AiApplication.Builder builderForValue) { + if (aiApplicationsBuilder_ == null) { + ensureAiApplicationsIsMutable(); + aiApplications_.set(index, builderForValue.build()); + onChanged(); + } else { + aiApplicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder addAiApplications(com.google.cloud.agentregistry.v1.AiApplication value) { + if (aiApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAiApplicationsIsMutable(); + aiApplications_.add(value); + onChanged(); + } else { + aiApplicationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder addAiApplications( + int index, com.google.cloud.agentregistry.v1.AiApplication value) { + if (aiApplicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAiApplicationsIsMutable(); + aiApplications_.add(index, value); + onChanged(); + } else { + aiApplicationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder addAiApplications( + com.google.cloud.agentregistry.v1.AiApplication.Builder builderForValue) { + if (aiApplicationsBuilder_ == null) { + ensureAiApplicationsIsMutable(); + aiApplications_.add(builderForValue.build()); + onChanged(); + } else { + aiApplicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder addAiApplications( + int index, com.google.cloud.agentregistry.v1.AiApplication.Builder builderForValue) { + if (aiApplicationsBuilder_ == null) { + ensureAiApplicationsIsMutable(); + aiApplications_.add(index, builderForValue.build()); + onChanged(); + } else { + aiApplicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder addAllAiApplications( + java.lang.Iterable values) { + if (aiApplicationsBuilder_ == null) { + ensureAiApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiApplications_); + onChanged(); + } else { + aiApplicationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder clearAiApplications() { + if (aiApplicationsBuilder_ == null) { + aiApplications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aiApplicationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public Builder removeAiApplications(int index) { + if (aiApplicationsBuilder_ == null) { + ensureAiApplicationsIsMutable(); + aiApplications_.remove(index); + onChanged(); + } else { + aiApplicationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public com.google.cloud.agentregistry.v1.AiApplication.Builder getAiApplicationsBuilder( + int index) { + return internalGetAiApplicationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public com.google.cloud.agentregistry.v1.AiApplicationOrBuilder getAiApplicationsOrBuilder( + int index) { + if (aiApplicationsBuilder_ == null) { + return aiApplications_.get(index); + } else { + return aiApplicationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public java.util.List + getAiApplicationsOrBuilderList() { + if (aiApplicationsBuilder_ != null) { + return aiApplicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aiApplications_); + } + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public com.google.cloud.agentregistry.v1.AiApplication.Builder addAiApplicationsBuilder() { + return internalGetAiApplicationsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.AiApplication.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public com.google.cloud.agentregistry.v1.AiApplication.Builder addAiApplicationsBuilder( + int index) { + return internalGetAiApplicationsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.AiApplication.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AiApplications.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + public java.util.List + getAiApplicationsBuilderList() { + return internalGetAiApplicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.AiApplication, + com.google.cloud.agentregistry.v1.AiApplication.Builder, + com.google.cloud.agentregistry.v1.AiApplicationOrBuilder> + internalGetAiApplicationsFieldBuilder() { + if (aiApplicationsBuilder_ == null) { + aiApplicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.AiApplication, + com.google.cloud.agentregistry.v1.AiApplication.Builder, + com.google.cloud.agentregistry.v1.AiApplicationOrBuilder>( + aiApplications_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + aiApplications_ = null; + } + return aiApplicationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListAiApplicationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAiApplicationsResponse) + private static final com.google.cloud.agentregistry.v1.ListAiApplicationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAiApplicationsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListAiApplicationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAiApplicationsResponse 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.agentregistry.v1.ListAiApplicationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsResponseOrBuilder.java new file mode 100644 index 000000000000..5f7cd72d853a --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAiApplicationsResponseOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAiApplicationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAiApplicationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + java.util.List getAiApplicationsList(); + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + com.google.cloud.agentregistry.v1.AiApplication getAiApplications(int index); + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + int getAiApplicationsCount(); + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + java.util.List + getAiApplicationsOrBuilderList(); + + /** + * + * + *
+   * The list of AiApplications.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.AiApplication ai_applications = 1; + */ + com.google.cloud.agentregistry.v1.AiApplicationOrBuilder getAiApplicationsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsRequest.java new file mode 100644 index 000000000000..9298a1ac907e --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for requesting list of Findings.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListFindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListFindingsRequest) + ListFindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListFindingsRequest"); + } + + // Use ListFindingsRequest.newBuilder() to construct. + private ListFindingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFindingsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListFindingsRequest.class, + com.google.cloud.agentregistry.v1.ListFindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value for ListFindingsRequest. 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. Parent value for ListFindingsRequest. 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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. Filtering results
+   * 
+ * + * 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. Filtering results
+   * 
+ * + * 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. Hint for how to order the results
+   * 
+ * + * 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. Hint for how to order the results
+   * 
+ * + * 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.agentregistry.v1.ListFindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListFindingsRequest other = + (com.google.cloud.agentregistry.v1.ListFindingsRequest) 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.agentregistry.v1.ListFindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsRequest 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.agentregistry.v1.ListFindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsRequest 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.agentregistry.v1.ListFindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsRequest 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.agentregistry.v1.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsRequest 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.agentregistry.v1.ListFindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsRequest 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.agentregistry.v1.ListFindingsRequest 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 for requesting list of Findings.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListFindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListFindingsRequest) + com.google.cloud.agentregistry.v1.ListFindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListFindingsRequest.class, + com.google.cloud.agentregistry.v1.ListFindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListFindingsRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListFindingsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListFindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListFindingsRequest build() { + com.google.cloud.agentregistry.v1.ListFindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListFindingsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListFindingsRequest result = + new com.google.cloud.agentregistry.v1.ListFindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListFindingsRequest 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.agentregistry.v1.ListFindingsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListFindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListFindingsRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListFindingsRequest.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. Parent value for ListFindingsRequest. 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. Parent value for ListFindingsRequest. 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. Parent value for ListFindingsRequest. 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. Parent value for ListFindingsRequest. 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. Parent value for ListFindingsRequest. 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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. Filtering results
+     * 
+ * + * 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. Filtering results
+     * 
+ * + * 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. Filtering results
+     * 
+ * + * 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. Filtering results
+     * 
+ * + * 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. Filtering results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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.agentregistry.v1.ListFindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListFindingsRequest) + private static final com.google.cloud.agentregistry.v1.ListFindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListFindingsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest 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.agentregistry.v1.ListFindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsRequestOrBuilder.java new file mode 100644 index 000000000000..23fb88da0959 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListFindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListFindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListFindingsRequest. 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. Parent value for ListFindingsRequest. 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsResponse.java new file mode 100644 index 000000000000..97a54cbb1a33 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsResponse.java @@ -0,0 +1,1112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for response to listing Findings.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListFindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListFindingsResponse) + ListFindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListFindingsResponse"); + } + + // Use ListFindingsResponse.newBuilder() to construct. + private ListFindingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFindingsResponse() { + findings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListFindingsResponse.class, + com.google.cloud.agentregistry.v1.ListFindingsResponse.Builder.class); + } + + public static final int FINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List findings_; + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + @java.lang.Override + public java.util.List getFindingsList() { + return findings_; + } + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + @java.lang.Override + public java.util.List + getFindingsOrBuilderList() { + return findings_; + } + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + @java.lang.Override + public int getFindingsCount() { + return findings_.size(); + } + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Finding getFindings(int index) { + return findings_.get(index); + } + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.FindingOrBuilder getFindingsOrBuilder(int index) { + return findings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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 < findings_.size(); i++) { + output.writeMessage(1, findings_.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 < findings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.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.agentregistry.v1.ListFindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListFindingsResponse other = + (com.google.cloud.agentregistry.v1.ListFindingsResponse) obj; + + if (!getFindingsList().equals(other.getFindingsList())) 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 (getFindingsCount() > 0) { + hash = (37 * hash) + FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getFindingsList().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.agentregistry.v1.ListFindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsResponse 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.agentregistry.v1.ListFindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsResponse 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.agentregistry.v1.ListFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsResponse 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.agentregistry.v1.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsResponse 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.agentregistry.v1.ListFindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsResponse 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.agentregistry.v1.ListFindingsResponse 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 for response to listing Findings.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListFindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListFindingsResponse) + com.google.cloud.agentregistry.v1.ListFindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListFindingsResponse.class, + com.google.cloud.agentregistry.v1.ListFindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListFindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (findingsBuilder_ == null) { + findings_ = java.util.Collections.emptyList(); + } else { + findings_ = null; + findingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListFindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListFindingsResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListFindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListFindingsResponse build() { + com.google.cloud.agentregistry.v1.ListFindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListFindingsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListFindingsResponse result = + new com.google.cloud.agentregistry.v1.ListFindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListFindingsResponse result) { + if (findingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + findings_ = java.util.Collections.unmodifiableList(findings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.findings_ = findings_; + } else { + result.findings_ = findingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListFindingsResponse 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.agentregistry.v1.ListFindingsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListFindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListFindingsResponse other) { + if (other == com.google.cloud.agentregistry.v1.ListFindingsResponse.getDefaultInstance()) + return this; + if (findingsBuilder_ == null) { + if (!other.findings_.isEmpty()) { + if (findings_.isEmpty()) { + findings_ = other.findings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFindingsIsMutable(); + findings_.addAll(other.findings_); + } + onChanged(); + } + } else { + if (!other.findings_.isEmpty()) { + if (findingsBuilder_.isEmpty()) { + findingsBuilder_.dispose(); + findingsBuilder_ = null; + findings_ = other.findings_; + bitField0_ = (bitField0_ & ~0x00000001); + findingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFindingsFieldBuilder() + : null; + } else { + findingsBuilder_.addAllMessages(other.findings_); + } + } + } + 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.agentregistry.v1.Finding m = + input.readMessage( + com.google.cloud.agentregistry.v1.Finding.parser(), extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.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 findings_ = + java.util.Collections.emptyList(); + + private void ensureFindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + findings_ = new java.util.ArrayList(findings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Finding, + com.google.cloud.agentregistry.v1.Finding.Builder, + com.google.cloud.agentregistry.v1.FindingOrBuilder> + findingsBuilder_; + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public java.util.List getFindingsList() { + if (findingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(findings_); + } else { + return findingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public int getFindingsCount() { + if (findingsBuilder_ == null) { + return findings_.size(); + } else { + return findingsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public com.google.cloud.agentregistry.v1.Finding getFindings(int index) { + if (findingsBuilder_ == null) { + return findings_.get(index); + } else { + return findingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder setFindings(int index, com.google.cloud.agentregistry.v1.Finding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.set(index, value); + onChanged(); + } else { + findingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder setFindings( + int index, com.google.cloud.agentregistry.v1.Finding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.set(index, builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder addFindings(com.google.cloud.agentregistry.v1.Finding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(value); + onChanged(); + } else { + findingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder addFindings(int index, com.google.cloud.agentregistry.v1.Finding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(index, value); + onChanged(); + } else { + findingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder addFindings(com.google.cloud.agentregistry.v1.Finding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder addFindings( + int index, com.google.cloud.agentregistry.v1.Finding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(index, builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder addAllFindings( + java.lang.Iterable values) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + onChanged(); + } else { + findingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder clearFindings() { + if (findingsBuilder_ == null) { + findings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + findingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public Builder removeFindings(int index) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.remove(index); + onChanged(); + } else { + findingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public com.google.cloud.agentregistry.v1.Finding.Builder getFindingsBuilder(int index) { + return internalGetFindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public com.google.cloud.agentregistry.v1.FindingOrBuilder getFindingsOrBuilder(int index) { + if (findingsBuilder_ == null) { + return findings_.get(index); + } else { + return findingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public java.util.List + getFindingsOrBuilderList() { + if (findingsBuilder_ != null) { + return findingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(findings_); + } + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public com.google.cloud.agentregistry.v1.Finding.Builder addFindingsBuilder() { + return internalGetFindingsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Finding.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public com.google.cloud.agentregistry.v1.Finding.Builder addFindingsBuilder(int index) { + return internalGetFindingsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Finding.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Findings.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + public java.util.List + getFindingsBuilderList() { + return internalGetFindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Finding, + com.google.cloud.agentregistry.v1.Finding.Builder, + com.google.cloud.agentregistry.v1.FindingOrBuilder> + internalGetFindingsFieldBuilder() { + if (findingsBuilder_ == null) { + findingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Finding, + com.google.cloud.agentregistry.v1.Finding.Builder, + com.google.cloud.agentregistry.v1.FindingOrBuilder>( + findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + findings_ = null; + } + return findingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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.agentregistry.v1.ListFindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListFindingsResponse) + private static final com.google.cloud.agentregistry.v1.ListFindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListFindingsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListFindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse 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.agentregistry.v1.ListFindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsResponseOrBuilder.java new file mode 100644 index 000000000000..6a8548e513dc --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListFindingsResponseOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListFindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListFindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + java.util.List getFindingsList(); + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + com.google.cloud.agentregistry.v1.Finding getFindings(int index); + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + int getFindingsCount(); + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + java.util.List + getFindingsOrBuilderList(); + + /** + * + * + *
+   * The list of Findings.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Finding findings = 1; + */ + com.google.cloud.agentregistry.v1.FindingOrBuilder getFindingsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersRequest.java new file mode 100644 index 000000000000..e6cd189dcb38 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersRequest.java @@ -0,0 +1,904 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Requesting a list of Publishers.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListPublishersRequest} + */ +@com.google.protobuf.Generated +public final class ListPublishersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListPublishersRequest) + ListPublishersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListPublishersRequest"); + } + + // Use ListPublishersRequest.newBuilder() to construct. + private ListPublishersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListPublishersRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListPublishersRequest.class, + com.google.cloud.agentregistry.v1.ListPublishersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent location to query.
+   * 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. Parent location to query.
+   * 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. Page limit size.
+   * 
+ * + * 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. Page offset 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. Page offset 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.cloud.agentregistry.v1.ListPublishersRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListPublishersRequest other = + (com.google.cloud.agentregistry.v1.ListPublishersRequest) 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.cloud.agentregistry.v1.ListPublishersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersRequest 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.agentregistry.v1.ListPublishersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersRequest 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.agentregistry.v1.ListPublishersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersRequest 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.agentregistry.v1.ListPublishersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersRequest 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.agentregistry.v1.ListPublishersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersRequest 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.agentregistry.v1.ListPublishersRequest 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; + } + + /** + * + * + *
+   * Requesting a list of Publishers.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListPublishersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListPublishersRequest) + com.google.cloud.agentregistry.v1.ListPublishersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListPublishersRequest.class, + com.google.cloud.agentregistry.v1.ListPublishersRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListPublishersRequest.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.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListPublishersRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListPublishersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListPublishersRequest build() { + com.google.cloud.agentregistry.v1.ListPublishersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListPublishersRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListPublishersRequest result = + new com.google.cloud.agentregistry.v1.ListPublishersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListPublishersRequest 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.cloud.agentregistry.v1.ListPublishersRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListPublishersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListPublishersRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListPublishersRequest.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. Parent location to query.
+     * 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. Parent location to query.
+     * 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. Parent location to query.
+     * 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. Parent location to query.
+     * 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. Parent location to query.
+     * 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. Page limit size.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Page limit size.
+     * 
+ * + * 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. Page limit size.
+     * 
+ * + * 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. Page offset 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. Page offset 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. Page offset 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. Page offset 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. Page offset 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.cloud.agentregistry.v1.ListPublishersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListPublishersRequest) + private static final com.google.cloud.agentregistry.v1.ListPublishersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListPublishersRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPublishersRequest 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.agentregistry.v1.ListPublishersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersRequestOrBuilder.java new file mode 100644 index 000000000000..0997c715bcd7 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListPublishersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListPublishersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent location to query.
+   * 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. Parent location to query.
+   * 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. Page limit size.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page offset token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. Page offset token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersResponse.java new file mode 100644 index 000000000000..a5a51bec44c3 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersResponse.java @@ -0,0 +1,1114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Response listing Publishers.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListPublishersResponse} + */ +@com.google.protobuf.Generated +public final class ListPublishersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListPublishersResponse) + ListPublishersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListPublishersResponse"); + } + + // Use ListPublishersResponse.newBuilder() to construct. + private ListPublishersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListPublishersResponse() { + publishers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListPublishersResponse.class, + com.google.cloud.agentregistry.v1.ListPublishersResponse.Builder.class); + } + + public static final int PUBLISHERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List publishers_; + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + @java.lang.Override + public java.util.List getPublishersList() { + return publishers_; + } + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + @java.lang.Override + public java.util.List + getPublishersOrBuilderList() { + return publishers_; + } + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + @java.lang.Override + public int getPublishersCount() { + return publishers_.size(); + } + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Publisher getPublishers(int index) { + return publishers_.get(index); + } + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.PublisherOrBuilder getPublishersOrBuilder(int index) { + return publishers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Page offset continuation token.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * Page offset continuation token.
+   * 
+ * + * 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 < publishers_.size(); i++) { + output.writeMessage(1, publishers_.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 < publishers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, publishers_.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.agentregistry.v1.ListPublishersResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListPublishersResponse other = + (com.google.cloud.agentregistry.v1.ListPublishersResponse) obj; + + if (!getPublishersList().equals(other.getPublishersList())) 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 (getPublishersCount() > 0) { + hash = (37 * hash) + PUBLISHERS_FIELD_NUMBER; + hash = (53 * hash) + getPublishersList().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.agentregistry.v1.ListPublishersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersResponse 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.agentregistry.v1.ListPublishersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersResponse 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.agentregistry.v1.ListPublishersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersResponse 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.agentregistry.v1.ListPublishersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersResponse 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.agentregistry.v1.ListPublishersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersResponse 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.agentregistry.v1.ListPublishersResponse 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 listing Publishers.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListPublishersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListPublishersResponse) + com.google.cloud.agentregistry.v1.ListPublishersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListPublishersResponse.class, + com.google.cloud.agentregistry.v1.ListPublishersResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListPublishersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (publishersBuilder_ == null) { + publishers_ = java.util.Collections.emptyList(); + } else { + publishers_ = null; + publishersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListPublishersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListPublishersResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListPublishersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListPublishersResponse build() { + com.google.cloud.agentregistry.v1.ListPublishersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListPublishersResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListPublishersResponse result = + new com.google.cloud.agentregistry.v1.ListPublishersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListPublishersResponse result) { + if (publishersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + publishers_ = java.util.Collections.unmodifiableList(publishers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.publishers_ = publishers_; + } else { + result.publishers_ = publishersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListPublishersResponse 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.agentregistry.v1.ListPublishersResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListPublishersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListPublishersResponse other) { + if (other == com.google.cloud.agentregistry.v1.ListPublishersResponse.getDefaultInstance()) + return this; + if (publishersBuilder_ == null) { + if (!other.publishers_.isEmpty()) { + if (publishers_.isEmpty()) { + publishers_ = other.publishers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePublishersIsMutable(); + publishers_.addAll(other.publishers_); + } + onChanged(); + } + } else { + if (!other.publishers_.isEmpty()) { + if (publishersBuilder_.isEmpty()) { + publishersBuilder_.dispose(); + publishersBuilder_ = null; + publishers_ = other.publishers_; + bitField0_ = (bitField0_ & ~0x00000001); + publishersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPublishersFieldBuilder() + : null; + } else { + publishersBuilder_.addAllMessages(other.publishers_); + } + } + } + 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.agentregistry.v1.Publisher m = + input.readMessage( + com.google.cloud.agentregistry.v1.Publisher.parser(), extensionRegistry); + if (publishersBuilder_ == null) { + ensurePublishersIsMutable(); + publishers_.add(m); + } else { + publishersBuilder_.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 publishers_ = + java.util.Collections.emptyList(); + + private void ensurePublishersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + publishers_ = + new java.util.ArrayList(publishers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Publisher, + com.google.cloud.agentregistry.v1.Publisher.Builder, + com.google.cloud.agentregistry.v1.PublisherOrBuilder> + publishersBuilder_; + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public java.util.List getPublishersList() { + if (publishersBuilder_ == null) { + return java.util.Collections.unmodifiableList(publishers_); + } else { + return publishersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public int getPublishersCount() { + if (publishersBuilder_ == null) { + return publishers_.size(); + } else { + return publishersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public com.google.cloud.agentregistry.v1.Publisher getPublishers(int index) { + if (publishersBuilder_ == null) { + return publishers_.get(index); + } else { + return publishersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder setPublishers(int index, com.google.cloud.agentregistry.v1.Publisher value) { + if (publishersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublishersIsMutable(); + publishers_.set(index, value); + onChanged(); + } else { + publishersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder setPublishers( + int index, com.google.cloud.agentregistry.v1.Publisher.Builder builderForValue) { + if (publishersBuilder_ == null) { + ensurePublishersIsMutable(); + publishers_.set(index, builderForValue.build()); + onChanged(); + } else { + publishersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder addPublishers(com.google.cloud.agentregistry.v1.Publisher value) { + if (publishersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublishersIsMutable(); + publishers_.add(value); + onChanged(); + } else { + publishersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder addPublishers(int index, com.google.cloud.agentregistry.v1.Publisher value) { + if (publishersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublishersIsMutable(); + publishers_.add(index, value); + onChanged(); + } else { + publishersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder addPublishers( + com.google.cloud.agentregistry.v1.Publisher.Builder builderForValue) { + if (publishersBuilder_ == null) { + ensurePublishersIsMutable(); + publishers_.add(builderForValue.build()); + onChanged(); + } else { + publishersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder addPublishers( + int index, com.google.cloud.agentregistry.v1.Publisher.Builder builderForValue) { + if (publishersBuilder_ == null) { + ensurePublishersIsMutable(); + publishers_.add(index, builderForValue.build()); + onChanged(); + } else { + publishersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder addAllPublishers( + java.lang.Iterable values) { + if (publishersBuilder_ == null) { + ensurePublishersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publishers_); + onChanged(); + } else { + publishersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder clearPublishers() { + if (publishersBuilder_ == null) { + publishers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + publishersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public Builder removePublishers(int index) { + if (publishersBuilder_ == null) { + ensurePublishersIsMutable(); + publishers_.remove(index); + onChanged(); + } else { + publishersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public com.google.cloud.agentregistry.v1.Publisher.Builder getPublishersBuilder(int index) { + return internalGetPublishersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public com.google.cloud.agentregistry.v1.PublisherOrBuilder getPublishersOrBuilder(int index) { + if (publishersBuilder_ == null) { + return publishers_.get(index); + } else { + return publishersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public java.util.List + getPublishersOrBuilderList() { + if (publishersBuilder_ != null) { + return publishersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(publishers_); + } + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public com.google.cloud.agentregistry.v1.Publisher.Builder addPublishersBuilder() { + return internalGetPublishersFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Publisher.getDefaultInstance()); + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public com.google.cloud.agentregistry.v1.Publisher.Builder addPublishersBuilder(int index) { + return internalGetPublishersFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Publisher.getDefaultInstance()); + } + + /** + * + * + *
+     * The returned list of Publishers.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + public java.util.List + getPublishersBuilderList() { + return internalGetPublishersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Publisher, + com.google.cloud.agentregistry.v1.Publisher.Builder, + com.google.cloud.agentregistry.v1.PublisherOrBuilder> + internalGetPublishersFieldBuilder() { + if (publishersBuilder_ == null) { + publishersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Publisher, + com.google.cloud.agentregistry.v1.Publisher.Builder, + com.google.cloud.agentregistry.v1.PublisherOrBuilder>( + publishers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + publishers_ = null; + } + return publishersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * 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.agentregistry.v1.ListPublishersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListPublishersResponse) + private static final com.google.cloud.agentregistry.v1.ListPublishersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListPublishersResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListPublishersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPublishersResponse 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.agentregistry.v1.ListPublishersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersResponseOrBuilder.java new file mode 100644 index 000000000000..15250ddef57a --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListPublishersResponseOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListPublishersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListPublishersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + java.util.List getPublishersList(); + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + com.google.cloud.agentregistry.v1.Publisher getPublishers(int index); + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + int getPublishersCount(); + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + java.util.List + getPublishersOrBuilderList(); + + /** + * + * + *
+   * The returned list of Publishers.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Publisher publishers = 1; + */ + com.google.cloud.agentregistry.v1.PublisherOrBuilder getPublishersOrBuilder(int index); + + /** + * + * + *
+   * Page offset continuation token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Page offset continuation token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsRequest.java new file mode 100644 index 000000000000..74d94853ec45 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsRequest.java @@ -0,0 +1,897 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Requesting a list of Revisions under a Skill.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListSkillRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListSkillRevisionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListSkillRevisionsRequest) + ListSkillRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSkillRevisionsRequest"); + } + + // Use ListSkillRevisionsRequest.newBuilder() to construct. + private ListSkillRevisionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSkillRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest.class, + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent logical container name to query.
+   * 
+ * + * + * 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. Parent logical container name to query.
+   * 
+ * + * + * 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. Page limit size.
+   * 
+ * + * 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. Page offset 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. Page offset 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.cloud.agentregistry.v1.ListSkillRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest other = + (com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest) 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.cloud.agentregistry.v1.ListSkillRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest 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.agentregistry.v1.ListSkillRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest 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.agentregistry.v1.ListSkillRevisionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest 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.agentregistry.v1.ListSkillRevisionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest 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.agentregistry.v1.ListSkillRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest 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.agentregistry.v1.ListSkillRevisionsRequest 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; + } + + /** + * + * + *
+   * Requesting a list of Revisions under a Skill.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListSkillRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListSkillRevisionsRequest) + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest.class, + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest.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.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest build() { + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest result = + new com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest 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.cloud.agentregistry.v1.ListSkillRevisionsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest.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. Parent logical container name to query.
+     * 
+ * + * + * 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. Parent logical container name to query.
+     * 
+ * + * + * 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. Parent logical container name to query.
+     * 
+ * + * + * 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. Parent logical container name to query.
+     * 
+ * + * + * 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. Parent logical container name to query.
+     * 
+ * + * + * 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. Page limit size.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Page limit size.
+     * 
+ * + * 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. Page limit size.
+     * 
+ * + * 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. Page offset 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. Page offset 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. Page offset 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. Page offset 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. Page offset 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.cloud.agentregistry.v1.ListSkillRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListSkillRevisionsRequest) + private static final com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkillRevisionsRequest 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.agentregistry.v1.ListSkillRevisionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..b717c044dd0c --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListSkillRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListSkillRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent logical container name to query.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent logical container name to query.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Page limit size.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page offset token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. Page offset token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsResponse.java new file mode 100644 index 000000000000..c64c0d2bc7f4 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsResponse.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Response listing Revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListSkillRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListSkillRevisionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListSkillRevisionsResponse) + ListSkillRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSkillRevisionsResponse"); + } + + // Use ListSkillRevisionsResponse.newBuilder() to construct. + private ListSkillRevisionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSkillRevisionsResponse() { + skillRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse.class, + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse.Builder.class); + } + + public static final int SKILL_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List skillRevisions_; + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + @java.lang.Override + public java.util.List getSkillRevisionsList() { + return skillRevisions_; + } + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + @java.lang.Override + public java.util.List + getSkillRevisionsOrBuilderList() { + return skillRevisions_; + } + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + @java.lang.Override + public int getSkillRevisionsCount() { + return skillRevisions_.size(); + } + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision getSkillRevisions(int index) { + return skillRevisions_.get(index); + } + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getSkillRevisionsOrBuilder( + int index) { + return skillRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Page offset continuation token.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * Page offset continuation token.
+   * 
+ * + * 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 < skillRevisions_.size(); i++) { + output.writeMessage(1, skillRevisions_.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 < skillRevisions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skillRevisions_.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.agentregistry.v1.ListSkillRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse other = + (com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse) obj; + + if (!getSkillRevisionsList().equals(other.getSkillRevisionsList())) 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 (getSkillRevisionsCount() > 0) { + hash = (37 * hash) + SKILL_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getSkillRevisionsList().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.agentregistry.v1.ListSkillRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse 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.agentregistry.v1.ListSkillRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse 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.agentregistry.v1.ListSkillRevisionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse 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.agentregistry.v1.ListSkillRevisionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse 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.agentregistry.v1.ListSkillRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse 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.agentregistry.v1.ListSkillRevisionsResponse 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 listing Revisions.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListSkillRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListSkillRevisionsResponse) + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse.class, + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (skillRevisionsBuilder_ == null) { + skillRevisions_ = java.util.Collections.emptyList(); + } else { + skillRevisions_ = null; + skillRevisionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse build() { + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse result = + new com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse result) { + if (skillRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + skillRevisions_ = java.util.Collections.unmodifiableList(skillRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.skillRevisions_ = skillRevisions_; + } else { + result.skillRevisions_ = skillRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse 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.agentregistry.v1.ListSkillRevisionsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse other) { + if (other + == com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse.getDefaultInstance()) + return this; + if (skillRevisionsBuilder_ == null) { + if (!other.skillRevisions_.isEmpty()) { + if (skillRevisions_.isEmpty()) { + skillRevisions_ = other.skillRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSkillRevisionsIsMutable(); + skillRevisions_.addAll(other.skillRevisions_); + } + onChanged(); + } + } else { + if (!other.skillRevisions_.isEmpty()) { + if (skillRevisionsBuilder_.isEmpty()) { + skillRevisionsBuilder_.dispose(); + skillRevisionsBuilder_ = null; + skillRevisions_ = other.skillRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + skillRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSkillRevisionsFieldBuilder() + : null; + } else { + skillRevisionsBuilder_.addAllMessages(other.skillRevisions_); + } + } + } + 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.agentregistry.v1.SkillRevision m = + input.readMessage( + com.google.cloud.agentregistry.v1.SkillRevision.parser(), + extensionRegistry); + if (skillRevisionsBuilder_ == null) { + ensureSkillRevisionsIsMutable(); + skillRevisions_.add(m); + } else { + skillRevisionsBuilder_.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 skillRevisions_ = + java.util.Collections.emptyList(); + + private void ensureSkillRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + skillRevisions_ = + new java.util.ArrayList( + skillRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder> + skillRevisionsBuilder_; + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public java.util.List getSkillRevisionsList() { + if (skillRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skillRevisions_); + } else { + return skillRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public int getSkillRevisionsCount() { + if (skillRevisionsBuilder_ == null) { + return skillRevisions_.size(); + } else { + return skillRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public com.google.cloud.agentregistry.v1.SkillRevision getSkillRevisions(int index) { + if (skillRevisionsBuilder_ == null) { + return skillRevisions_.get(index); + } else { + return skillRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder setSkillRevisions( + int index, com.google.cloud.agentregistry.v1.SkillRevision value) { + if (skillRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillRevisionsIsMutable(); + skillRevisions_.set(index, value); + onChanged(); + } else { + skillRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder setSkillRevisions( + int index, com.google.cloud.agentregistry.v1.SkillRevision.Builder builderForValue) { + if (skillRevisionsBuilder_ == null) { + ensureSkillRevisionsIsMutable(); + skillRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + skillRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder addSkillRevisions(com.google.cloud.agentregistry.v1.SkillRevision value) { + if (skillRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillRevisionsIsMutable(); + skillRevisions_.add(value); + onChanged(); + } else { + skillRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder addSkillRevisions( + int index, com.google.cloud.agentregistry.v1.SkillRevision value) { + if (skillRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillRevisionsIsMutable(); + skillRevisions_.add(index, value); + onChanged(); + } else { + skillRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder addSkillRevisions( + com.google.cloud.agentregistry.v1.SkillRevision.Builder builderForValue) { + if (skillRevisionsBuilder_ == null) { + ensureSkillRevisionsIsMutable(); + skillRevisions_.add(builderForValue.build()); + onChanged(); + } else { + skillRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder addSkillRevisions( + int index, com.google.cloud.agentregistry.v1.SkillRevision.Builder builderForValue) { + if (skillRevisionsBuilder_ == null) { + ensureSkillRevisionsIsMutable(); + skillRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + skillRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder addAllSkillRevisions( + java.lang.Iterable values) { + if (skillRevisionsBuilder_ == null) { + ensureSkillRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillRevisions_); + onChanged(); + } else { + skillRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder clearSkillRevisions() { + if (skillRevisionsBuilder_ == null) { + skillRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + skillRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public Builder removeSkillRevisions(int index) { + if (skillRevisionsBuilder_ == null) { + ensureSkillRevisionsIsMutable(); + skillRevisions_.remove(index); + onChanged(); + } else { + skillRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public com.google.cloud.agentregistry.v1.SkillRevision.Builder getSkillRevisionsBuilder( + int index) { + return internalGetSkillRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getSkillRevisionsOrBuilder( + int index) { + if (skillRevisionsBuilder_ == null) { + return skillRevisions_.get(index); + } else { + return skillRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public java.util.List + getSkillRevisionsOrBuilderList() { + if (skillRevisionsBuilder_ != null) { + return skillRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skillRevisions_); + } + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public com.google.cloud.agentregistry.v1.SkillRevision.Builder addSkillRevisionsBuilder() { + return internalGetSkillRevisionsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance()); + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public com.google.cloud.agentregistry.v1.SkillRevision.Builder addSkillRevisionsBuilder( + int index) { + return internalGetSkillRevisionsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance()); + } + + /** + * + * + *
+     * Returned version snapshot list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + public java.util.List + getSkillRevisionsBuilderList() { + return internalGetSkillRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder> + internalGetSkillRevisionsFieldBuilder() { + if (skillRevisionsBuilder_ == null) { + skillRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder>( + skillRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + skillRevisions_ = null; + } + return skillRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Page offset continuation token.
+     * 
+ * + * 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.agentregistry.v1.ListSkillRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListSkillRevisionsResponse) + private static final com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkillRevisionsResponse 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.agentregistry.v1.ListSkillRevisionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..a38a89a337ab --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillRevisionsResponseOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListSkillRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListSkillRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + java.util.List getSkillRevisionsList(); + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + com.google.cloud.agentregistry.v1.SkillRevision getSkillRevisions(int index); + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + int getSkillRevisionsCount(); + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + java.util.List + getSkillRevisionsOrBuilderList(); + + /** + * + * + *
+   * Returned version snapshot list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.SkillRevision skill_revisions = 1; + */ + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getSkillRevisionsOrBuilder(int index); + + /** + * + * + *
+   * Page offset continuation token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Page offset continuation token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsRequest.java new file mode 100644 index 000000000000..06a03d758538 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsRequest.java @@ -0,0 +1,1397 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Requesting a list of Skills inside a location.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListSkillsRequest} + */ +@com.google.protobuf.Generated +public final class ListSkillsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListSkillsRequest) + ListSkillsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSkillsRequest"); + } + + // Use ListSkillsRequest.newBuilder() to construct. + private ListSkillsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSkillsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListSkillsRequest.class, + com.google.cloud.agentregistry.v1.ListSkillsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value for ListSkillsRequest
+   * 
+ * + * + * 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. Parent value for ListSkillsRequest
+   * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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. Use this field to specify filter criteria on list results.
+   * Filter expressions can be used to restrict results based upon filterable
+   * fields, where equality operators can be used. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * | Field        | `=` | `<`, `>` |
+   * |--------------|-----|----------|
+   * | state        | Yes | No       |
+   * | targetState  | Yes | No       |
+   * | createTime   | Yes | Yes      |
+   * | updateTime   | Yes | Yes      |
+   *
+   * Examples:
+   *
+   * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+   * 
+ * + * 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. Use this field to specify filter criteria on list results.
+   * Filter expressions can be used to restrict results based upon filterable
+   * fields, where equality operators can be used. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * | Field        | `=` | `<`, `>` |
+   * |--------------|-----|----------|
+   * | state        | Yes | No       |
+   * | targetState  | Yes | No       |
+   * | createTime   | Yes | Yes      |
+   * | updateTime   | Yes | Yes      |
+   *
+   * Examples:
+   *
+   * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+   * 
+ * + * 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. Hint for how to order the results
+   * 
+ * + * 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. Hint for how to order the results
+   * 
+ * + * 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.agentregistry.v1.ListSkillsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListSkillsRequest other = + (com.google.cloud.agentregistry.v1.ListSkillsRequest) 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.agentregistry.v1.ListSkillsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsRequest 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.agentregistry.v1.ListSkillsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsRequest 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.agentregistry.v1.ListSkillsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsRequest 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.agentregistry.v1.ListSkillsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsRequest 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.agentregistry.v1.ListSkillsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsRequest 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.agentregistry.v1.ListSkillsRequest 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; + } + + /** + * + * + *
+   * Requesting a list of Skills inside a location.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListSkillsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListSkillsRequest) + com.google.cloud.agentregistry.v1.ListSkillsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListSkillsRequest.class, + com.google.cloud.agentregistry.v1.ListSkillsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListSkillsRequest.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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListSkillsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillsRequest build() { + com.google.cloud.agentregistry.v1.ListSkillsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListSkillsRequest result = + new com.google.cloud.agentregistry.v1.ListSkillsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListSkillsRequest 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.agentregistry.v1.ListSkillsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListSkillsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListSkillsRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListSkillsRequest.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. Parent value for ListSkillsRequest
+     * 
+ * + * + * 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. Parent value for ListSkillsRequest
+     * 
+ * + * + * 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. Parent value for ListSkillsRequest
+     * 
+ * + * + * 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. Parent value for ListSkillsRequest
+     * 
+ * + * + * 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. Parent value for ListSkillsRequest
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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. Use this field to specify filter criteria on list results.
+     * Filter expressions can be used to restrict results based upon filterable
+     * fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * 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. Use this field to specify filter criteria on list results.
+     * Filter expressions can be used to restrict results based upon filterable
+     * fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * 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. Use this field to specify filter criteria on list results.
+     * Filter expressions can be used to restrict results based upon filterable
+     * fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * 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. Use this field to specify filter criteria on list results.
+     * Filter expressions can be used to restrict results based upon filterable
+     * fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * 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. Use this field to specify filter criteria on list results.
+     * Filter expressions can be used to restrict results based upon filterable
+     * fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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.agentregistry.v1.ListSkillsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListSkillsRequest) + private static final com.google.cloud.agentregistry.v1.ListSkillsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListSkillsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkillsRequest 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.agentregistry.v1.ListSkillsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsRequestOrBuilder.java new file mode 100644 index 000000000000..d5565ff2e432 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListSkillsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListSkillsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListSkillsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent value for ListSkillsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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.
+   * 
+ * + * 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.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Use this field to specify filter criteria on list results.
+   * Filter expressions can be used to restrict results based upon filterable
+   * fields, where equality operators can be used. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * | Field        | `=` | `<`, `>` |
+   * |--------------|-----|----------|
+   * | state        | Yes | No       |
+   * | targetState  | Yes | No       |
+   * | createTime   | Yes | Yes      |
+   * | updateTime   | Yes | Yes      |
+   *
+   * Examples:
+   *
+   * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Use this field to specify filter criteria on list results.
+   * Filter expressions can be used to restrict results based upon filterable
+   * fields, where equality operators can be used. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * | Field        | `=` | `<`, `>` |
+   * |--------------|-----|----------|
+   * | state        | Yes | No       |
+   * | targetState  | Yes | No       |
+   * | createTime   | Yes | Yes      |
+   * | updateTime   | Yes | Yes      |
+   *
+   * Examples:
+   *
+   * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsResponse.java new file mode 100644 index 000000000000..2d4a22ee7e8b --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsResponse.java @@ -0,0 +1,1400 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Response structure listing logical Skills.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListSkillsResponse} + */ +@com.google.protobuf.Generated +public final class ListSkillsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListSkillsResponse) + ListSkillsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSkillsResponse"); + } + + // Use ListSkillsResponse.newBuilder() to construct. + private ListSkillsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSkillsResponse() { + skills_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListSkillsResponse.class, + com.google.cloud.agentregistry.v1.ListSkillsResponse.Builder.class); + } + + public static final int SKILLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List skills_; + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public java.util.List getSkillsList() { + return skills_; + } + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public java.util.List + getSkillsOrBuilderList() { + return skills_; + } + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public int getSkillsCount() { + return skills_.size(); + } + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill getSkills(int index) { + return skills_.get(index); + } + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillsOrBuilder(int index) { + return skills_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Page continuation continuation token.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * Page continuation continuation token.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unreachable locations or failures.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unreachable locations or failures.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unreachable locations or failures.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unreachable locations or failures.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < skills_.size(); i++) { + output.writeMessage(1, skills_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(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 < skills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skills_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.agentregistry.v1.ListSkillsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListSkillsResponse other = + (com.google.cloud.agentregistry.v1.ListSkillsResponse) obj; + + if (!getSkillsList().equals(other.getSkillsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) 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 (getSkillsCount() > 0) { + hash = (37 * hash) + SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getSkillsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse 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.agentregistry.v1.ListSkillsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse 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.agentregistry.v1.ListSkillsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse 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.agentregistry.v1.ListSkillsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse 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.agentregistry.v1.ListSkillsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse 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.agentregistry.v1.ListSkillsResponse 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 structure listing logical Skills.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ListSkillsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListSkillsResponse) + com.google.cloud.agentregistry.v1.ListSkillsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListSkillsResponse.class, + com.google.cloud.agentregistry.v1.ListSkillsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListSkillsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + } else { + skills_ = null; + skillsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListSkillsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillsResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListSkillsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillsResponse build() { + com.google.cloud.agentregistry.v1.ListSkillsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListSkillsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListSkillsResponse result = + new com.google.cloud.agentregistry.v1.ListSkillsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListSkillsResponse result) { + if (skillsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.skills_ = skills_; + } else { + result.skills_ = skillsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListSkillsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListSkillsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListSkillsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListSkillsResponse other) { + if (other == com.google.cloud.agentregistry.v1.ListSkillsResponse.getDefaultInstance()) + return this; + if (skillsBuilder_ == null) { + if (!other.skills_.isEmpty()) { + if (skills_.isEmpty()) { + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSkillsIsMutable(); + skills_.addAll(other.skills_); + } + onChanged(); + } + } else { + if (!other.skills_.isEmpty()) { + if (skillsBuilder_.isEmpty()) { + skillsBuilder_.dispose(); + skillsBuilder_ = null; + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00000001); + skillsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSkillsFieldBuilder() + : null; + } else { + skillsBuilder_.addAllMessages(other.skills_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.agentregistry.v1.Skill m = + input.readMessage( + com.google.cloud.agentregistry.v1.Skill.parser(), extensionRegistry); + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(m); + } else { + skillsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List skills_ = + java.util.Collections.emptyList(); + + private void ensureSkillsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + skills_ = new java.util.ArrayList(skills_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder> + skillsBuilder_; + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public java.util.List getSkillsList() { + if (skillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skills_); + } else { + return skillsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public int getSkillsCount() { + if (skillsBuilder_ == null) { + return skills_.size(); + } else { + return skillsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.Skill getSkills(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder setSkills(int index, com.google.cloud.agentregistry.v1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.set(index, value); + onChanged(); + } else { + skillsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder setSkills( + int index, com.google.cloud.agentregistry.v1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addSkills(com.google.cloud.agentregistry.v1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(value); + onChanged(); + } else { + skillsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addSkills(int index, com.google.cloud.agentregistry.v1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(index, value); + onChanged(); + } else { + skillsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addSkills(com.google.cloud.agentregistry.v1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addSkills( + int index, com.google.cloud.agentregistry.v1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addAllSkills( + java.lang.Iterable values) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); + onChanged(); + } else { + skillsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder clearSkills() { + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + skillsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder removeSkills(int index) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.remove(index); + onChanged(); + } else { + skillsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.Skill.Builder getSkillsBuilder(int index) { + return internalGetSkillsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillsOrBuilder(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public java.util.List + getSkillsOrBuilderList() { + if (skillsBuilder_ != null) { + return skillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skills_); + } + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.Skill.Builder addSkillsBuilder() { + return internalGetSkillsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Skill.getDefaultInstance()); + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.Skill.Builder addSkillsBuilder(int index) { + return internalGetSkillsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Skill.getDefaultInstance()); + } + + /** + * + * + *
+     * Returned container list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public java.util.List getSkillsBuilderList() { + return internalGetSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder> + internalGetSkillsFieldBuilder() { + if (skillsBuilder_ == null) { + skillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder>( + skills_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + skills_ = null; + } + return skillsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Page continuation continuation token.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Page continuation continuation token.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Page continuation continuation token.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Page continuation continuation token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Page continuation continuation token.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable locations or failures.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListSkillsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListSkillsResponse) + private static final com.google.cloud.agentregistry.v1.ListSkillsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListSkillsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListSkillsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkillsResponse 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.agentregistry.v1.ListSkillsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsResponseOrBuilder.java new file mode 100644 index 000000000000..7318ed02d8dc --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListSkillsResponseOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListSkillsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListSkillsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + java.util.List getSkillsList(); + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + com.google.cloud.agentregistry.v1.Skill getSkills(int index); + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + int getSkillsCount(); + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + java.util.List + getSkillsOrBuilderList(); + + /** + * + * + *
+   * Returned container list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillsOrBuilder(int index); + + /** + * + * + *
+   * Page continuation continuation token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Page continuation continuation token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unreachable locations or failures.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unreachable locations or failures.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unreachable locations or failures.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unreachable locations or failures.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServer.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServer.java index 61875d000a35..36ac93227a9e 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServer.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServer.java @@ -186,6 +186,52 @@ public interface ToolOrBuilder * */ com.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + * + * + *
+     * Output only. Protocol-level tool metadata conforming to MCP _meta
+     * specification. Output only.
+     * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the meta field is set. + */ + boolean hasMeta(); + + /** + * + * + *
+     * Output only. Protocol-level tool metadata conforming to MCP _meta
+     * specification. Output only.
+     * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The meta. + */ + com.google.protobuf.Struct getMeta(); + + /** + * + * + *
+     * Output only. Protocol-level tool metadata conforming to MCP _meta
+     * specification. Output only.
+     * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getMetaOrBuilder(); } /** @@ -1514,6 +1560,64 @@ public com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations getAnnotatio : annotations_; } + public static final int META_FIELD_NUMBER = 4; + private com.google.protobuf.Struct meta_; + + /** + * + * + *
+     * Output only. Protocol-level tool metadata conforming to MCP _meta
+     * specification. Output only.
+     * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Protocol-level tool metadata conforming to MCP _meta
+     * specification. Output only.
+     * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The meta. + */ + @java.lang.Override + public com.google.protobuf.Struct getMeta() { + return meta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : meta_; + } + + /** + * + * + *
+     * Output only. Protocol-level tool metadata conforming to MCP _meta
+     * specification. Output only.
+     * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetaOrBuilder() { + return meta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : meta_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1537,6 +1641,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getAnnotations()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getMeta()); + } getUnknownFields().writeTo(output); } @@ -1555,6 +1662,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnnotations()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMeta()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1577,6 +1687,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAnnotations()) { if (!getAnnotations().equals(other.getAnnotations())) return false; } + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta().equals(other.getMeta())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1596,6 +1710,10 @@ public int hashCode() { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getAnnotations().hashCode(); } + if (hasMeta()) { + hash = (37 * hash) + META_FIELD_NUMBER; + hash = (53 * hash) + getMeta().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1738,6 +1856,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetAnnotationsFieldBuilder(); + internalGetMetaFieldBuilder(); } } @@ -1752,6 +1871,11 @@ public Builder clear() { annotationsBuilder_.dispose(); annotationsBuilder_ = null; } + meta_ = null; + if (metaBuilder_ != null) { + metaBuilder_.dispose(); + metaBuilder_ = null; + } return this; } @@ -1800,6 +1924,10 @@ private void buildPartial0(com.google.cloud.agentregistry.v1.McpServer.Tool resu annotationsBuilder_ == null ? annotations_ : annotationsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.meta_ = metaBuilder_ == null ? meta_ : metaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -1829,6 +1957,9 @@ public Builder mergeFrom(com.google.cloud.agentregistry.v1.McpServer.Tool other) if (other.hasAnnotations()) { mergeAnnotations(other.getAnnotations()); } + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1874,6 +2005,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage(internalGetMetaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2334,6 +2471,223 @@ public Builder clearAnnotations() { return annotationsBuilder_; } + private com.google.protobuf.Struct meta_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metaBuilder_; + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The meta. + */ + public com.google.protobuf.Struct getMeta() { + if (metaBuilder_ == null) { + return meta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : meta_; + } else { + return metaBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMeta(com.google.protobuf.Struct value) { + if (metaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meta_ = value; + } else { + metaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMeta(com.google.protobuf.Struct.Builder builderForValue) { + if (metaBuilder_ == null) { + meta_ = builderForValue.build(); + } else { + metaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMeta(com.google.protobuf.Struct value) { + if (metaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && meta_ != null + && meta_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetaBuilder().mergeFrom(value); + } else { + meta_ = value; + } + } else { + metaBuilder_.mergeFrom(value); + } + if (meta_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMeta() { + bitField0_ = (bitField0_ & ~0x00000008); + meta_ = null; + if (metaBuilder_ != null) { + metaBuilder_.dispose(); + metaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getMetaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetMetaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getMetaOrBuilder() { + if (metaBuilder_ != null) { + return metaBuilder_.getMessageOrBuilder(); + } else { + return meta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : meta_; + } + } + + /** + * + * + *
+       * Output only. Protocol-level tool metadata conforming to MCP _meta
+       * specification. Output only.
+       * 
+ * + * + * .google.protobuf.Struct meta = 4 [json_name = "_meta", (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetaFieldBuilder() { + if (metaBuilder_ == null) { + metaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMeta(), getParentForChildren(), isClean()); + meta_ = null; + } + return metaBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.McpServer.Tool) } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java index 8b9225e92f06..3db0b33bf1f7 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java @@ -17,6 +17,7 @@ package com.google.cloud.agentregistry.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; @@ -35,22 +36,39 @@ public class McpServerName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_MCP_SERVER = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/mcpServers/{mcp_server}"); + private static final PathTemplate PROJECT_LOCATION_AI_APPLICATION_MCP_SERVER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String project; private final String location; private final String mcpServer; + private final String aiApplication; @Deprecated protected McpServerName() { project = null; location = null; mcpServer = null; + aiApplication = null; } private McpServerName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); mcpServer = Preconditions.checkNotNull(builder.getMcpServer()); + aiApplication = null; + pathTemplate = PROJECT_LOCATION_MCP_SERVER; + } + + private McpServerName(ProjectLocationAiApplicationMcpServerBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aiApplication = Preconditions.checkNotNull(builder.getAiApplication()); + mcpServer = Preconditions.checkNotNull(builder.getMcpServer()); + pathTemplate = PROJECT_LOCATION_AI_APPLICATION_MCP_SERVER; } public String getProject() { @@ -65,10 +83,23 @@ public String getMcpServer() { return mcpServer; } + public String getAiApplication() { + return aiApplication; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newProjectLocationMcpServerBuilder() { + return new Builder(); + } + + public static ProjectLocationAiApplicationMcpServerBuilder + newProjectLocationAiApplicationMcpServerBuilder() { + return new ProjectLocationAiApplicationMcpServerBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -77,6 +108,21 @@ public static McpServerName of(String project, String location, String mcpServer return newBuilder().setProject(project).setLocation(location).setMcpServer(mcpServer).build(); } + public static McpServerName ofProjectLocationMcpServerName( + String project, String location, String mcpServer) { + return newBuilder().setProject(project).setLocation(location).setMcpServer(mcpServer).build(); + } + + public static McpServerName ofProjectLocationAiApplicationMcpServerName( + String project, String location, String aiApplication, String mcpServer) { + return newProjectLocationAiApplicationMcpServerBuilder() + .setProject(project) + .setLocation(location) + .setAiApplication(aiApplication) + .setMcpServer(mcpServer) + .build(); + } + public static String format(String project, String location, String mcpServer) { return newBuilder() .setProject(project) @@ -86,14 +132,45 @@ public static String format(String project, String location, String mcpServer) { .toString(); } + public static String formatProjectLocationMcpServerName( + String project, String location, String mcpServer) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMcpServer(mcpServer) + .build() + .toString(); + } + + public static String formatProjectLocationAiApplicationMcpServerName( + String project, String location, String aiApplication, String mcpServer) { + return newProjectLocationAiApplicationMcpServerBuilder() + .setProject(project) + .setLocation(location) + .setAiApplication(aiApplication) + .setMcpServer(mcpServer) + .build() + .toString(); + } + public static @Nullable McpServerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - PROJECT_LOCATION_MCP_SERVER.validatedMatch( - formattedString, "McpServerName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("mcp_server")); + if (PROJECT_LOCATION_MCP_SERVER.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_MCP_SERVER.match(formattedString); + return ofProjectLocationMcpServerName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("mcp_server")); + } else if (PROJECT_LOCATION_AI_APPLICATION_MCP_SERVER.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_AI_APPLICATION_MCP_SERVER.match(formattedString); + return ofProjectLocationAiApplicationMcpServerName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("ai_application"), + matchMap.get("mcp_server")); + } + throw new ValidationException("McpServerName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -117,7 +194,8 @@ public static List toStringList(List<@Nullable McpServerName> values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_MCP_SERVER.matches(formattedString); + return PROJECT_LOCATION_MCP_SERVER.matches(formattedString) + || PROJECT_LOCATION_AI_APPLICATION_MCP_SERVER.matches(formattedString); } @Override @@ -135,6 +213,9 @@ public Map getFieldValuesMap() { if (mcpServer != null) { fieldMapBuilder.put("mcp_server", mcpServer); } + if (aiApplication != null) { + fieldMapBuilder.put("ai_application", aiApplication); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -148,8 +229,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_MCP_SERVER.instantiate( - "project", project, "location", location, "mcp_server", mcpServer); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -161,7 +241,8 @@ public boolean equals(@Nullable Object o) { McpServerName that = ((McpServerName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) - && Objects.equals(this.mcpServer, that.mcpServer); + && Objects.equals(this.mcpServer, that.mcpServer) + && Objects.equals(this.aiApplication, that.aiApplication); } return false; } @@ -170,11 +251,15 @@ public boolean equals(@Nullable Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(project); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(mcpServer); + h *= 1000003; + h ^= Objects.hashCode(aiApplication); return h; } @@ -214,6 +299,10 @@ public Builder setMcpServer(String mcpServer) { } private Builder(McpServerName mcpServerName) { + Preconditions.checkArgument( + Objects.equals(mcpServerName.pathTemplate, PROJECT_LOCATION_MCP_SERVER), + "toBuilder is only supported when McpServerName has the pattern of" + + " projects/{project}/locations/{location}/mcpServers/{mcp_server}"); this.project = mcpServerName.project; this.location = mcpServerName.location; this.mcpServer = mcpServerName.mcpServer; @@ -223,4 +312,57 @@ public McpServerName build() { return new McpServerName(this); } } + + /** + * Builder for + * projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}. + */ + public static class ProjectLocationAiApplicationMcpServerBuilder { + private String project; + private String location; + private String aiApplication; + private String mcpServer; + + protected ProjectLocationAiApplicationMcpServerBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAiApplication() { + return aiApplication; + } + + public String getMcpServer() { + return mcpServer; + } + + public ProjectLocationAiApplicationMcpServerBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationAiApplicationMcpServerBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationAiApplicationMcpServerBuilder setAiApplication(String aiApplication) { + this.aiApplication = aiApplication; + return this; + } + + public ProjectLocationAiApplicationMcpServerBuilder setMcpServer(String mcpServer) { + this.mcpServer = mcpServer; + return this; + } + + public McpServerName build() { + return new McpServerName(this); + } + } } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerProto.java index 565f43aceefe..60be2fd96ec9 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerProto.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerProto.java @@ -71,7 +71,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\032.google/cloud/agentr" + "egistry/v1/properties.proto\032\034google/prot" - + "obuf/struct.proto\032\037google/protobuf/timestamp.proto\"\277\007\n" + + "obuf/struct.proto\032\037google/protobuf/timestamp.proto\"\324\010\n" + "\tMcpServer\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\033\n\r" + "mcp_server_id\030\t \001(\tB\004\342A\001\003\022\032\n" @@ -86,12 +86,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022R\n\n" + "attributes\030\010 \003(\01328.goo" - + "gle.cloud.agentregistry.v1.McpServer.AttributesEntryB\004\342A\001\003\032\254\002\n" + + "gle.cloud.agentregistry.v1.McpServer.AttributesEntryB\004\342A\001\003\032\340\002\n" + "\004Tool\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\003\022T\n" + "\013annotations\030\003 \001(\01329.google.cloud.agentregi" - + "stry.v1.McpServer.Tool.AnnotationsB\004\342A\001\003\032\236\001\n" + + "stry.v1.McpServer.Tool.AnnotationsB\004\342A\001\003\0222\n" + + "\004meta\030\004" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\003R\005_meta\032\236\001\n" + "\013Annotations\022\023\n" + "\005title\030\001 \001(\tB\004\342A\001\003\022\036\n" + "\020destructive_hint\030\002 \001(\010B\004\342A\001\003\022\035\n" @@ -101,14 +103,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022&\n" + "\005value\030\002" - + " \001(\0132\027.google.protobuf.Struct:\0028\001:\204\001\352A\200\001\n" - + "&agentregistry.googleapis.com/McpSe" - + "rver\022?projects/{project}/locations/{location}/mcpServers/{mcp_server}*\n" + + " \001(\0132\027.google.protobuf.Struct:\0028\001:\345\001\352A\341\001\n" + + "&agentregistry.googleapis.com/McpServer\022?projects/{project}/loc" + + "ations/{location}/mcpServers/{mcp_server}\022_projects/{project}/locations/{locatio" + + "n}/aiApplications/{ai_application}/mcpServers/{mcp_server}*\n" + "mcpServers2\tmcpServerB\341\001\n" - + "!com.google.cloud.agentregistry.v1B\016McpServerProtoP\001ZGcloud.goog" - + "le.com/go/agentregistry/apiv1/agentregis" - + "trypb;agentregistrypb\252\002\035Google.Cloud.Age" - + "ntRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + "!com.google.cloud.agentregistry.v1B\016McpServerProtoP\001ZGcloud.google.com/go/a" + + "gentregistry/apiv1/agentregistrypb;agent" + + "registrypb\252\002\035Google.Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + " Google::Cloud::AgentRegistry::V1b\006proto3" }; descriptor = @@ -143,7 +145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor, new java.lang.String[] { - "Name", "Description", "Annotations", + "Name", "Description", "Annotations", "Meta", }); internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_descriptor = internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor.getNestedType(0); diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PropertiesProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PropertiesProto.java index 5446602621f3..f7e68bd949f0 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PropertiesProto.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PropertiesProto.java @@ -55,25 +55,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n.google/cloud/agentregistry/v1/properti" + "es.proto\022\035google.cloud.agentregistry.v1\032" - + "\037google/api/field_behavior.proto\"\323\001\n\tInt" - + "erface\022\021\n\003url\030\001 \001(\tB\004\342A\001\002\022X\n\020protocol_bi" - + "nding\030\002 \001(\01628.google.cloud.agentregistry" - + ".v1.Interface.ProtocolBindingB\004\342A\001\002\"Y\n\017P" - + "rotocolBinding\022 \n\034PROTOCOL_BINDING_UNSPE" - + "CIFIED\020\000\022\013\n\007JSONRPC\020\001\022\010\n\004GRPC\020\002\022\r\n\tHTTP_" - + "JSON\020\003B\342\001\n!com.google.cloud.agentregistr" - + "y.v1B\017PropertiesProtoP\001ZGcloud.google.co" - + "m/go/agentregistry/apiv1/agentregistrypb" - + ";agentregistrypb\252\002\035Google.Cloud.AgentReg" - + "istry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1" - + "\352\002 Google::Cloud::AgentRegistry::V1b\006pro" - + "to3" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\"\323\001\n\tInterface\022\021\n\003url" + + "\030\001 \001(\tB\004\342A\001\002\022X\n\020protocol_binding\030\002 \001(\01628" + + ".google.cloud.agentregistry.v1.Interface" + + ".ProtocolBindingB\004\342A\001\002\"Y\n\017ProtocolBindin" + + "g\022 \n\034PROTOCOL_BINDING_UNSPECIFIED\020\000\022\013\n\007J" + + "SONRPC\020\001\022\010\n\004GRPC\020\002\022\r\n\tHTTP_JSON\020\003B\342\001\n!co" + + "m.google.cloud.agentregistry.v1B\017Propert" + + "iesProtoP\001ZGcloud.google.com/go/agentreg" + + "istry/apiv1/agentregistrypb;agentregistr" + + "ypb\252\002\035Google.Cloud.AgentRegistry.V1\312\002\035Go" + + "ogle\\Cloud\\AgentRegistry\\V1\352\002 Google::Cl" + + "oud::AgentRegistry::V1b\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(), }); internal_static_google_cloud_agentregistry_v1_Interface_descriptor = getDescriptor().getMessageType(0); @@ -85,6 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Publisher.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Publisher.java new file mode 100644 index 000000000000..d92ca4a27734 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Publisher.java @@ -0,0 +1,1753 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Represents a verified Publisher of Skills.
+ * Prepopulated publishers include `publishers/cloud.google.com` and
+ * `publishers/workspace.google.com`.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Publisher} + */ +@com.google.protobuf.Generated +public final class Publisher extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Publisher) + PublisherOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Publisher"); + } + + // Use Publisher.newBuilder() to construct. + private Publisher(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Publisher() { + name_ = ""; + verifiedPrefix_ = ""; + displayName_ = ""; + publisherTier_ = 0; + documentationUri_ = ""; + supportUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Publisher_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Publisher_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Publisher.class, + com.google.cloud.agentregistry.v1.Publisher.Builder.class); + } + + /** + * + * + *
+   * Curation tier representing the publisher's level of verification.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.Publisher.PublisherTier} + */ + public enum PublisherTier implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Unspecified.
+     * 
+ * + * PUBLISHER_TIER_UNSPECIFIED = 0; + */ + PUBLISHER_TIER_UNSPECIFIED(0), + /** + * + * + *
+     * First-party Google-curated and verified global publishers.
+     * 
+ * + * FIRST_PARTY = 1; + */ + FIRST_PARTY(1), + /** + * + * + *
+     * Third-party verified enterprise partner publishers.
+     * 
+ * + * THIRD_PARTY = 2; + */ + THIRD_PARTY(2), + /** + * + * + *
+     * Private publishers within the developer's workspace/project.
+     * 
+ * + * PRIVATE = 3; + */ + PRIVATE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PublisherTier"); + } + + /** + * + * + *
+     * Default value. Unspecified.
+     * 
+ * + * PUBLISHER_TIER_UNSPECIFIED = 0; + */ + public static final int PUBLISHER_TIER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * First-party Google-curated and verified global publishers.
+     * 
+ * + * FIRST_PARTY = 1; + */ + public static final int FIRST_PARTY_VALUE = 1; + + /** + * + * + *
+     * Third-party verified enterprise partner publishers.
+     * 
+ * + * THIRD_PARTY = 2; + */ + public static final int THIRD_PARTY_VALUE = 2; + + /** + * + * + *
+     * Private publishers within the developer's workspace/project.
+     * 
+ * + * PRIVATE = 3; + */ + public static final int PRIVATE_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 PublisherTier 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 PublisherTier forNumber(int value) { + switch (value) { + case 0: + return PUBLISHER_TIER_UNSPECIFIED; + case 1: + return FIRST_PARTY; + case 2: + return THIRD_PARTY; + case 3: + return PRIVATE; + 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 PublisherTier findValueByNumber(int number) { + return PublisherTier.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.agentregistry.v1.Publisher.getDescriptor().getEnumTypes().get(0); + } + + private static final PublisherTier[] VALUES = values(); + + public static PublisherTier 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 PublisherTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.Publisher.PublisherTier) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of the publisher.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * 
+ * + * 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 the publisher.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * 
+ * + * 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 VERIFIED_PREFIX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object verifiedPrefix_ = ""; + + /** + * + * + *
+   * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+   * with this publisher. The system uses this prefix to enforce name-squatting
+   * rules during Skill registration. Must be globally unique across all
+   * publishers.
+   * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The verifiedPrefix. + */ + @java.lang.Override + public java.lang.String getVerifiedPrefix() { + java.lang.Object ref = verifiedPrefix_; + 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(); + verifiedPrefix_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+   * with this publisher. The system uses this prefix to enforce name-squatting
+   * rules during Skill registration. Must be globally unique across all
+   * publishers.
+   * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for verifiedPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerifiedPrefixBytes() { + java.lang.Object ref = verifiedPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verifiedPrefix_ = 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_ = ""; + + /** + * + * + *
+   * Optional. Human readable display name of the publisher.
+   * 
+ * + * string display_name = 3 [(.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 display name of the publisher.
+   * 
+ * + * string display_name = 3 [(.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 PUBLISHER_TIER_FIELD_NUMBER = 4; + private int publisherTier_ = 0; + + /** + * + * + *
+   * Output only. The curation tier of the publisher.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for publisherTier. + */ + @java.lang.Override + public int getPublisherTierValue() { + return publisherTier_; + } + + /** + * + * + *
+   * Output only. The curation tier of the publisher.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publisherTier. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Publisher.PublisherTier getPublisherTier() { + com.google.cloud.agentregistry.v1.Publisher.PublisherTier result = + com.google.cloud.agentregistry.v1.Publisher.PublisherTier.forNumber(publisherTier_); + return result == null + ? com.google.cloud.agentregistry.v1.Publisher.PublisherTier.UNRECOGNIZED + : result; + } + + public static final int DOCUMENTATION_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object documentationUri_ = ""; + + /** + * + * + *
+   * Optional. URI pointing to official publisher documentation.
+   * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentationUri. + */ + @java.lang.Override + public java.lang.String getDocumentationUri() { + java.lang.Object ref = documentationUri_; + 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(); + documentationUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. URI pointing to official publisher documentation.
+   * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentationUriBytes() { + java.lang.Object ref = documentationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORT_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object supportUri_ = ""; + + /** + * + * + *
+   * Optional. URI pointing to the support portal or email.
+   * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The supportUri. + */ + @java.lang.Override + public java.lang.String getSupportUri() { + java.lang.Object ref = supportUri_; + 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(); + supportUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. URI pointing to the support portal or email.
+   * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for supportUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSupportUriBytes() { + java.lang.Object ref = supportUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + supportUri_ = 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(verifiedPrefix_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, verifiedPrefix_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_); + } + if (publisherTier_ + != com.google.cloud.agentregistry.v1.Publisher.PublisherTier.PUBLISHER_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, publisherTier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentationUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, documentationUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(supportUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, supportUri_); + } + 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(verifiedPrefix_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, verifiedPrefix_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_); + } + if (publisherTier_ + != com.google.cloud.agentregistry.v1.Publisher.PublisherTier.PUBLISHER_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, publisherTier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentationUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, documentationUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(supportUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, supportUri_); + } + 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.agentregistry.v1.Publisher)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Publisher other = + (com.google.cloud.agentregistry.v1.Publisher) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVerifiedPrefix().equals(other.getVerifiedPrefix())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (publisherTier_ != other.publisherTier_) return false; + if (!getDocumentationUri().equals(other.getDocumentationUri())) return false; + if (!getSupportUri().equals(other.getSupportUri())) 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) + VERIFIED_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getVerifiedPrefix().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + PUBLISHER_TIER_FIELD_NUMBER; + hash = (53 * hash) + publisherTier_; + hash = (37 * hash) + DOCUMENTATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getDocumentationUri().hashCode(); + hash = (37 * hash) + SUPPORT_URI_FIELD_NUMBER; + hash = (53 * hash) + getSupportUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Publisher parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Publisher 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.agentregistry.v1.Publisher parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Publisher 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.agentregistry.v1.Publisher parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Publisher parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Publisher parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Publisher 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.agentregistry.v1.Publisher parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Publisher 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.agentregistry.v1.Publisher parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Publisher 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.agentregistry.v1.Publisher 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 verified Publisher of Skills.
+   * Prepopulated publishers include `publishers/cloud.google.com` and
+   * `publishers/workspace.google.com`.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Publisher} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Publisher) + com.google.cloud.agentregistry.v1.PublisherOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Publisher_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Publisher_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Publisher.class, + com.google.cloud.agentregistry.v1.Publisher.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Publisher.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + verifiedPrefix_ = ""; + displayName_ = ""; + publisherTier_ = 0; + documentationUri_ = ""; + supportUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Publisher_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Publisher getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Publisher.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Publisher build() { + com.google.cloud.agentregistry.v1.Publisher result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Publisher buildPartial() { + com.google.cloud.agentregistry.v1.Publisher result = + new com.google.cloud.agentregistry.v1.Publisher(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Publisher result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.verifiedPrefix_ = verifiedPrefix_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.publisherTier_ = publisherTier_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentationUri_ = documentationUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.supportUri_ = supportUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Publisher) { + return mergeFrom((com.google.cloud.agentregistry.v1.Publisher) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Publisher other) { + if (other == com.google.cloud.agentregistry.v1.Publisher.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVerifiedPrefix().isEmpty()) { + verifiedPrefix_ = other.verifiedPrefix_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.publisherTier_ != 0) { + setPublisherTierValue(other.getPublisherTierValue()); + } + if (!other.getDocumentationUri().isEmpty()) { + documentationUri_ = other.documentationUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getSupportUri().isEmpty()) { + supportUri_ = other.supportUri_; + bitField0_ |= 0x00000020; + 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: + { + verifiedPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + publisherTier_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + documentationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + supportUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + 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 name_ = ""; + + /** + * + * + *
+     * Identifier. Resource name of the publisher.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * 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 the publisher.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * 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 the publisher.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * 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 the publisher.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * 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 the publisher.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * 
+ * + * 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 verifiedPrefix_ = ""; + + /** + * + * + *
+     * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+     * with this publisher. The system uses this prefix to enforce name-squatting
+     * rules during Skill registration. Must be globally unique across all
+     * publishers.
+     * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The verifiedPrefix. + */ + public java.lang.String getVerifiedPrefix() { + java.lang.Object ref = verifiedPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verifiedPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+     * with this publisher. The system uses this prefix to enforce name-squatting
+     * rules during Skill registration. Must be globally unique across all
+     * publishers.
+     * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for verifiedPrefix. + */ + public com.google.protobuf.ByteString getVerifiedPrefixBytes() { + java.lang.Object ref = verifiedPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verifiedPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+     * with this publisher. The system uses this prefix to enforce name-squatting
+     * rules during Skill registration. Must be globally unique across all
+     * publishers.
+     * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The verifiedPrefix to set. + * @return This builder for chaining. + */ + public Builder setVerifiedPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + verifiedPrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+     * with this publisher. The system uses this prefix to enforce name-squatting
+     * rules during Skill registration. Must be globally unique across all
+     * publishers.
+     * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVerifiedPrefix() { + verifiedPrefix_ = getDefaultInstance().getVerifiedPrefix(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+     * with this publisher. The system uses this prefix to enforce name-squatting
+     * rules during Skill registration. Must be globally unique across all
+     * publishers.
+     * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for verifiedPrefix to set. + * @return This builder for chaining. + */ + public Builder setVerifiedPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verifiedPrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. Human readable display name of the publisher.
+     * 
+ * + * string display_name = 3 [(.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 display name of the publisher.
+     * 
+ * + * string display_name = 3 [(.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 display name of the publisher.
+     * 
+ * + * string display_name = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Human readable display name of the publisher.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Human readable display name of the publisher.
+     * 
+ * + * string display_name = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + private int publisherTier_ = 0; + + /** + * + * + *
+     * Output only. The curation tier of the publisher.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for publisherTier. + */ + @java.lang.Override + public int getPublisherTierValue() { + return publisherTier_; + } + + /** + * + * + *
+     * Output only. The curation tier of the publisher.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for publisherTier to set. + * @return This builder for chaining. + */ + public Builder setPublisherTierValue(int value) { + publisherTier_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The curation tier of the publisher.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publisherTier. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Publisher.PublisherTier getPublisherTier() { + com.google.cloud.agentregistry.v1.Publisher.PublisherTier result = + com.google.cloud.agentregistry.v1.Publisher.PublisherTier.forNumber(publisherTier_); + return result == null + ? com.google.cloud.agentregistry.v1.Publisher.PublisherTier.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The curation tier of the publisher.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The publisherTier to set. + * @return This builder for chaining. + */ + public Builder setPublisherTier( + com.google.cloud.agentregistry.v1.Publisher.PublisherTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + publisherTier_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The curation tier of the publisher.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPublisherTier() { + bitField0_ = (bitField0_ & ~0x00000008); + publisherTier_ = 0; + onChanged(); + return this; + } + + private java.lang.Object documentationUri_ = ""; + + /** + * + * + *
+     * Optional. URI pointing to official publisher documentation.
+     * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentationUri. + */ + public java.lang.String getDocumentationUri() { + java.lang.Object ref = documentationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. URI pointing to official publisher documentation.
+     * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentationUri. + */ + public com.google.protobuf.ByteString getDocumentationUriBytes() { + java.lang.Object ref = documentationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. URI pointing to official publisher documentation.
+     * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The documentationUri to set. + * @return This builder for chaining. + */ + public Builder setDocumentationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + documentationUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI pointing to official publisher documentation.
+     * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDocumentationUri() { + documentationUri_ = getDefaultInstance().getDocumentationUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI pointing to official publisher documentation.
+     * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for documentationUri to set. + * @return This builder for chaining. + */ + public Builder setDocumentationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentationUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object supportUri_ = ""; + + /** + * + * + *
+     * Optional. URI pointing to the support portal or email.
+     * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The supportUri. + */ + public java.lang.String getSupportUri() { + java.lang.Object ref = supportUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + supportUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. URI pointing to the support portal or email.
+     * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for supportUri. + */ + public com.google.protobuf.ByteString getSupportUriBytes() { + java.lang.Object ref = supportUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + supportUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. URI pointing to the support portal or email.
+     * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The supportUri to set. + * @return This builder for chaining. + */ + public Builder setSupportUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + supportUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI pointing to the support portal or email.
+     * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSupportUri() { + supportUri_ = getDefaultInstance().getSupportUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI pointing to the support portal or email.
+     * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for supportUri to set. + * @return This builder for chaining. + */ + public Builder setSupportUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + supportUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Publisher) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Publisher) + private static final com.google.cloud.agentregistry.v1.Publisher DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Publisher(); + } + + public static com.google.cloud.agentregistry.v1.Publisher getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Publisher 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.agentregistry.v1.Publisher getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PublisherName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PublisherName.java new file mode 100644 index 000000000000..efab795b8d9f --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PublisherName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class PublisherName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PUBLISHER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/publishers/{publisher}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String publisher; + + @Deprecated + protected PublisherName() { + project = null; + location = null; + publisher = null; + } + + private PublisherName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + publisher = Preconditions.checkNotNull(builder.getPublisher()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPublisher() { + return publisher; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PublisherName of(String project, String location, String publisher) { + return newBuilder().setProject(project).setLocation(location).setPublisher(publisher).build(); + } + + public static String format(String project, String location, String publisher) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPublisher(publisher) + .build() + .toString(); + } + + public static @Nullable PublisherName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PUBLISHER.validatedMatch( + formattedString, "PublisherName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("publisher")); + } + + 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<@Nullable PublisherName> values) { + List list = new ArrayList<>(values.size()); + for (PublisherName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PUBLISHER.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 (publisher != null) { + fieldMapBuilder.put("publisher", publisher); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PUBLISHER.instantiate( + "project", project, "location", location, "publisher", publisher); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + PublisherName that = ((PublisherName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.publisher, that.publisher); + } + 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(publisher); + return h; + } + + /** Builder for projects/{project}/locations/{location}/publishers/{publisher}. */ + public static class Builder { + private String project; + private String location; + private String publisher; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPublisher() { + return publisher; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPublisher(String publisher) { + this.publisher = publisher; + return this; + } + + private Builder(PublisherName publisherName) { + this.project = publisherName.project; + this.location = publisherName.location; + this.publisher = publisherName.publisher; + } + + public PublisherName build() { + return new PublisherName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PublisherOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PublisherOrBuilder.java new file mode 100644 index 000000000000..e348ba60403a --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PublisherOrBuilder.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface PublisherOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Publisher) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the publisher.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of the publisher.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+   * with this publisher. The system uses this prefix to enforce name-squatting
+   * rules during Skill registration. Must be globally unique across all
+   * publishers.
+   * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The verifiedPrefix. + */ + java.lang.String getVerifiedPrefix(); + + /** + * + * + *
+   * Required. The verified prefix (e.g. "snowflake-", "google-") associated
+   * with this publisher. The system uses this prefix to enforce name-squatting
+   * rules during Skill registration. Must be globally unique across all
+   * publishers.
+   * 
+ * + * string verified_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for verifiedPrefix. + */ + com.google.protobuf.ByteString getVerifiedPrefixBytes(); + + /** + * + * + *
+   * Optional. Human readable display name of the publisher.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. Human readable display name of the publisher.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The curation tier of the publisher.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for publisherTier. + */ + int getPublisherTierValue(); + + /** + * + * + *
+   * Output only. The curation tier of the publisher.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Publisher.PublisherTier publisher_tier = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publisherTier. + */ + com.google.cloud.agentregistry.v1.Publisher.PublisherTier getPublisherTier(); + + /** + * + * + *
+   * Optional. URI pointing to official publisher documentation.
+   * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentationUri. + */ + java.lang.String getDocumentationUri(); + + /** + * + * + *
+   * Optional. URI pointing to official publisher documentation.
+   * 
+ * + * string documentation_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentationUri. + */ + com.google.protobuf.ByteString getDocumentationUriBytes(); + + /** + * + * + *
+   * Optional. URI pointing to the support portal or email.
+   * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The supportUri. + */ + java.lang.String getSupportUri(); + + /** + * + * + *
+   * Optional. URI pointing to the support portal or email.
+   * 
+ * + * string support_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for supportUri. + */ + com.google.protobuf.ByteString getSupportUriBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ScanningConfig.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ScanningConfig.java new file mode 100644 index 000000000000..0c3cca500eb7 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ScanningConfig.java @@ -0,0 +1,778 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Configuration for scanning of the skill.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ScanningConfig} + */ +@com.google.protobuf.Generated +public final class ScanningConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ScanningConfig) + ScanningConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ScanningConfig"); + } + + // Use ScanningConfig.newBuilder() to construct. + private ScanningConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScanningConfig() { + policy_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ScanningConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ScanningConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ScanningConfig.class, + com.google.cloud.agentregistry.v1.ScanningConfig.Builder.class); + } + + /** + * + * + *
+   * Defines the policy for security scanning.
+   *
+   * This enum is not frozen; new values may be added in the future.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.ScanningConfig.Policy} + */ + public enum Policy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Inherits system default (ENABLED_BLOCKING).
+     * 
+ * + * POLICY_UNSPECIFIED = 0; + */ + POLICY_UNSPECIFIED(0), + /** + * + * + *
+     * Bypasses scanning.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * Scans the skill package and blocks download if security or safety issues
+     * are found.
+     * 
+ * + * ENABLED_BLOCKING = 2; + */ + ENABLED_BLOCKING(2), + /** + * + * + *
+     * Scans the skill package in audit mode without blocking downloads.
+     * 
+ * + * ENABLED_NONBLOCKING = 3; + */ + ENABLED_NONBLOCKING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Policy"); + } + + /** + * + * + *
+     * Default value. Inherits system default (ENABLED_BLOCKING).
+     * 
+ * + * POLICY_UNSPECIFIED = 0; + */ + public static final int POLICY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Bypasses scanning.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
+     * Scans the skill package and blocks download if security or safety issues
+     * are found.
+     * 
+ * + * ENABLED_BLOCKING = 2; + */ + public static final int ENABLED_BLOCKING_VALUE = 2; + + /** + * + * + *
+     * Scans the skill package in audit mode without blocking downloads.
+     * 
+ * + * ENABLED_NONBLOCKING = 3; + */ + public static final int ENABLED_NONBLOCKING_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 Policy 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 Policy forNumber(int value) { + switch (value) { + case 0: + return POLICY_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED_BLOCKING; + case 3: + return ENABLED_NONBLOCKING; + 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 Policy findValueByNumber(int number) { + return Policy.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.agentregistry.v1.ScanningConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Policy[] VALUES = values(); + + public static Policy 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 Policy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.ScanningConfig.Policy) + } + + public static final int POLICY_FIELD_NUMBER = 1; + private int policy_ = 0; + + /** + * + * + *
+   * Optional. The security scanning policy.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override + public int getPolicyValue() { + return policy_; + } + + /** + * + * + *
+   * Optional. The security scanning policy.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ScanningConfig.Policy getPolicy() { + com.google.cloud.agentregistry.v1.ScanningConfig.Policy result = + com.google.cloud.agentregistry.v1.ScanningConfig.Policy.forNumber(policy_); + return result == null + ? com.google.cloud.agentregistry.v1.ScanningConfig.Policy.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 (policy_ + != com.google.cloud.agentregistry.v1.ScanningConfig.Policy.POLICY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, policy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policy_ + != com.google.cloud.agentregistry.v1.ScanningConfig.Policy.POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, policy_); + } + 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.agentregistry.v1.ScanningConfig)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ScanningConfig other = + (com.google.cloud.agentregistry.v1.ScanningConfig) obj; + + if (policy_ != other.policy_) 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) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + policy_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig 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.agentregistry.v1.ScanningConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig 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.agentregistry.v1.ScanningConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig 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.agentregistry.v1.ScanningConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig 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.agentregistry.v1.ScanningConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig 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.agentregistry.v1.ScanningConfig 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 scanning of the skill.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.ScanningConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ScanningConfig) + com.google.cloud.agentregistry.v1.ScanningConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ScanningConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ScanningConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ScanningConfig.class, + com.google.cloud.agentregistry.v1.ScanningConfig.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ScanningConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_ScanningConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ScanningConfig getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ScanningConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ScanningConfig build() { + com.google.cloud.agentregistry.v1.ScanningConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ScanningConfig buildPartial() { + com.google.cloud.agentregistry.v1.ScanningConfig result = + new com.google.cloud.agentregistry.v1.ScanningConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ScanningConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ScanningConfig) { + return mergeFrom((com.google.cloud.agentregistry.v1.ScanningConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ScanningConfig other) { + if (other == com.google.cloud.agentregistry.v1.ScanningConfig.getDefaultInstance()) + return this; + if (other.policy_ != 0) { + setPolicyValue(other.getPolicyValue()); + } + 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: + { + policy_ = input.readEnum(); + 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 policy_ = 0; + + /** + * + * + *
+     * Optional. The security scanning policy.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override + public int getPolicyValue() { + return policy_; + } + + /** + * + * + *
+     * Optional. The security scanning policy.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyValue(int value) { + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The security scanning policy.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ScanningConfig.Policy getPolicy() { + com.google.cloud.agentregistry.v1.ScanningConfig.Policy result = + com.google.cloud.agentregistry.v1.ScanningConfig.Policy.forNumber(policy_); + return result == null + ? com.google.cloud.agentregistry.v1.ScanningConfig.Policy.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The security scanning policy.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(com.google.cloud.agentregistry.v1.ScanningConfig.Policy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + policy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The security scanning policy.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + policy_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ScanningConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ScanningConfig) + private static final com.google.cloud.agentregistry.v1.ScanningConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ScanningConfig(); + } + + public static com.google.cloud.agentregistry.v1.ScanningConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanningConfig 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.agentregistry.v1.ScanningConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ScanningConfigOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ScanningConfigOrBuilder.java new file mode 100644 index 000000000000..c64b4d67fd71 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ScanningConfigOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ScanningConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ScanningConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The security scanning policy.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for policy. + */ + int getPolicyValue(); + + /** + * + * + *
+   * Optional. The security scanning policy.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig.Policy policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The policy. + */ + com.google.cloud.agentregistry.v1.ScanningConfig.Policy getPolicy(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequest.java index 78ce75d66e73..b87eff310bb0 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequest.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequest.java @@ -168,7 +168,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. @@ -228,7 +228,7 @@ public java.lang.String getSearchString() { * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. @@ -879,7 +879,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. @@ -938,7 +938,7 @@ public java.lang.String getSearchString() { * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. @@ -997,7 +997,7 @@ public com.google.protobuf.ByteString getSearchStringBytes() { * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. @@ -1055,7 +1055,7 @@ public Builder setSearchString(java.lang.String value) { * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. @@ -1109,7 +1109,7 @@ public Builder clearSearchString() { * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequestOrBuilder.java index e74129d77e5f..04b530d06a1c 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequestOrBuilder.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequestOrBuilder.java @@ -90,7 +90,7 @@ public interface SearchAgentsRequestOrBuilder * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. @@ -139,7 +139,7 @@ public interface SearchAgentsRequestOrBuilder * * Examples: * - * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` * to find the agent with the specified agent ID. * * `name:important` to find agents whose name contains `important` as a * word. diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsRequest.java new file mode 100644 index 000000000000..fd21f32ec10f --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsRequest.java @@ -0,0 +1,1826 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Requesting a deep search of Skills.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchSkillsRequest} + */ +@com.google.protobuf.Generated +public final class SearchSkillsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SearchSkillsRequest) + SearchSkillsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchSkillsRequest"); + } + + // Use SearchSkillsRequest.newBuilder() to construct. + private SearchSkillsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchSkillsRequest() { + parent_ = ""; + searchType_ = 0; + searchString_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchSkillsRequest.class, + com.google.cloud.agentregistry.v1.SearchSkillsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value for SearchSkillsRequest. 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. Parent value for SearchSkillsRequest. 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 SEARCH_TYPE_FIELD_NUMBER = 6; + private int searchType_ = 0; + + /** + * + * + *
+   * Optional. The type of search.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for searchType. + */ + @java.lang.Override + public int getSearchTypeValue() { + return searchType_; + } + + /** + * + * + *
+   * Optional. The type of search.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchType. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchType getSearchType() { + com.google.cloud.agentregistry.v1.SearchType result = + com.google.cloud.agentregistry.v1.SearchType.forNumber(searchType_); + return result == null ? com.google.cloud.agentregistry.v1.SearchType.UNRECOGNIZED : result; + } + + public static final int SEARCH_STRING_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object searchString_ = ""; + + /** + * + * + *
+   * Optional. Search criteria used to select the Skills to return. If no search
+   * criteria is specified then all accessible Skills will be returned.
+   *
+   * Search expressions can be used to restrict results based upon searchable
+   * fields, where the operators can be used along with the suffix wildcard
+   * symbol `*`. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * Searchable fields:
+   *
+   * | Field                     | `=` | `:` | `*` | Keyword Search |
+   * |---------------------------|-----|-----|-----|----------------|
+   * | skillId                   | Yes | Yes | Yes | Included       |
+   * | name                      | No  | Yes | Yes | Included       |
+   * | displayName               | No  | Yes | Yes | Included       |
+   * | description               | No  | Yes | No  | Included       |
+   * | frontmatter.name          | No  | Yes | No  | Included       |
+   * | frontmatter.description   | No  | Yes | No  | Included       |
+   * | frontmatter.compatibility | No  | Yes | No  | Included       |
+   * | frontmatter.license       | No  | Yes | No  | Included       |
+   *
+   * Examples:
+   *
+   * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+   * to find the skill with the specified skill ID.
+   * * `name:important` to find skills whose name contains `important` as a
+   * word.
+   * * `displayName:works*` to find skills whose display name contains words
+   * that start with `works`.
+   * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + @java.lang.Override + public java.lang.String getSearchString() { + java.lang.Object ref = searchString_; + 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(); + searchString_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Search criteria used to select the Skills to return. If no search
+   * criteria is specified then all accessible Skills will be returned.
+   *
+   * Search expressions can be used to restrict results based upon searchable
+   * fields, where the operators can be used along with the suffix wildcard
+   * symbol `*`. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * Searchable fields:
+   *
+   * | Field                     | `=` | `:` | `*` | Keyword Search |
+   * |---------------------------|-----|-----|-----|----------------|
+   * | skillId                   | Yes | Yes | Yes | Included       |
+   * | name                      | No  | Yes | Yes | Included       |
+   * | displayName               | No  | Yes | Yes | Included       |
+   * | description               | No  | Yes | No  | Included       |
+   * | frontmatter.name          | No  | Yes | No  | Included       |
+   * | frontmatter.description   | No  | Yes | No  | Included       |
+   * | frontmatter.compatibility | No  | Yes | No  | Included       |
+   * | frontmatter.license       | No  | Yes | No  | Included       |
+   *
+   * Examples:
+   *
+   * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+   * to find the skill with the specified skill ID.
+   * * `name:important` to find skills whose name contains `important` as a
+   * word.
+   * * `displayName:works*` to find skills whose display name contains words
+   * that start with `works`.
+   * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSearchStringBytes() { + java.lang.Object ref = searchString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Use this field to specify additional filter criteria on search
+   * results. Filter expressions can be used to restrict results based upon
+   * filterable fields, where equality operators can be used. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * | Field        | `=` | `<`, `>` |
+   * |--------------|-----|----------|
+   * | state        | Yes | No       |
+   * | targetState  | Yes | No       |
+   * | createTime   | Yes | Yes      |
+   * | updateTime   | Yes | Yes      |
+   *
+   * Examples:
+   *
+   * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+   * 
+ * + * string filter = 5 [(.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. Use this field to specify additional filter criteria on search
+   * results. Filter expressions can be used to restrict results based upon
+   * filterable fields, where equality operators can be used. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * | Field        | `=` | `<`, `>` |
+   * |--------------|-----|----------|
+   * | state        | Yes | No       |
+   * | targetState  | Yes | No       |
+   * | createTime   | Yes | Yes      |
+   * | updateTime   | Yes | Yes      |
+   *
+   * Examples:
+   *
+   * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+   * 
+ * + * string filter = 5 [(.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 PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of search results to return per page. The page
+   * size is capped at `100`, even if a larger value is specified. A negative
+   * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
+   * `0`, a default value of `20` will be used. The server may return fewer
+   * results than requested.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. `page_token` must be the value of `next_page_token`
+   * from the previous response. The values of all other method parameters, must
+   * be identical to those in the previous call.
+   * 
+ * + * string page_token = 4 [(.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. If present, retrieve the next batch of results from the preceding
+   * call to this method. `page_token` must be the value of `next_page_token`
+   * from the previous response. The values of all other method parameters, must
+   * be identical to those in the previous call.
+   * 
+ * + * string page_token = 4 [(.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(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + if (searchType_ + != com.google.cloud.agentregistry.v1.SearchType.SEARCH_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, searchType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchString_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, searchString_); + } + 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(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + if (searchType_ + != com.google.cloud.agentregistry.v1.SearchType.SEARCH_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, searchType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchString_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, searchString_); + } + 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.agentregistry.v1.SearchSkillsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SearchSkillsRequest other = + (com.google.cloud.agentregistry.v1.SearchSkillsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (searchType_ != other.searchType_) return false; + if (!getSearchString().equals(other.getSearchString())) return false; + if (!getFilter().equals(other.getFilter())) 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) + SEARCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + searchType_; + hash = (37 * hash) + SEARCH_STRING_FIELD_NUMBER; + hash = (53 * hash) + getSearchString().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().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.cloud.agentregistry.v1.SearchSkillsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsRequest 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.agentregistry.v1.SearchSkillsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsRequest 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.agentregistry.v1.SearchSkillsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsRequest 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.agentregistry.v1.SearchSkillsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsRequest 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.agentregistry.v1.SearchSkillsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsRequest 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.agentregistry.v1.SearchSkillsRequest 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; + } + + /** + * + * + *
+   * Requesting a deep search of Skills.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchSkillsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SearchSkillsRequest) + com.google.cloud.agentregistry.v1.SearchSkillsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchSkillsRequest.class, + com.google.cloud.agentregistry.v1.SearchSkillsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SearchSkillsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + searchType_ = 0; + searchString_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchSkillsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SearchSkillsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchSkillsRequest build() { + com.google.cloud.agentregistry.v1.SearchSkillsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchSkillsRequest buildPartial() { + com.google.cloud.agentregistry.v1.SearchSkillsRequest result = + new com.google.cloud.agentregistry.v1.SearchSkillsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.SearchSkillsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchType_ = searchType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchString_ = searchString_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.SearchSkillsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.SearchSkillsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SearchSkillsRequest other) { + if (other == com.google.cloud.agentregistry.v1.SearchSkillsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.searchType_ != 0) { + setSearchTypeValue(other.getSearchTypeValue()); + } + if (!other.getSearchString().isEmpty()) { + searchString_ = other.searchString_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000020; + 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 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + searchType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 48 + case 58: + { + searchString_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Parent value for SearchSkillsRequest. 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. Parent value for SearchSkillsRequest. 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. Parent value for SearchSkillsRequest. 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. Parent value for SearchSkillsRequest. 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. Parent value for SearchSkillsRequest. 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 searchType_ = 0; + + /** + * + * + *
+     * Optional. The type of search.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for searchType. + */ + @java.lang.Override + public int getSearchTypeValue() { + return searchType_; + } + + /** + * + * + *
+     * Optional. The type of search.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for searchType to set. + * @return This builder for chaining. + */ + public Builder setSearchTypeValue(int value) { + searchType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of search.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchType. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchType getSearchType() { + com.google.cloud.agentregistry.v1.SearchType result = + com.google.cloud.agentregistry.v1.SearchType.forNumber(searchType_); + return result == null ? com.google.cloud.agentregistry.v1.SearchType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The type of search.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The searchType to set. + * @return This builder for chaining. + */ + public Builder setSearchType(com.google.cloud.agentregistry.v1.SearchType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + searchType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of search.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSearchType() { + bitField0_ = (bitField0_ & ~0x00000002); + searchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object searchString_ = ""; + + /** + * + * + *
+     * Optional. Search criteria used to select the Skills to return. If no search
+     * criteria is specified then all accessible Skills will be returned.
+     *
+     * Search expressions can be used to restrict results based upon searchable
+     * fields, where the operators can be used along with the suffix wildcard
+     * symbol `*`. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * Searchable fields:
+     *
+     * | Field                     | `=` | `:` | `*` | Keyword Search |
+     * |---------------------------|-----|-----|-----|----------------|
+     * | skillId                   | Yes | Yes | Yes | Included       |
+     * | name                      | No  | Yes | Yes | Included       |
+     * | displayName               | No  | Yes | Yes | Included       |
+     * | description               | No  | Yes | No  | Included       |
+     * | frontmatter.name          | No  | Yes | No  | Included       |
+     * | frontmatter.description   | No  | Yes | No  | Included       |
+     * | frontmatter.compatibility | No  | Yes | No  | Included       |
+     * | frontmatter.license       | No  | Yes | No  | Included       |
+     *
+     * Examples:
+     *
+     * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+     * to find the skill with the specified skill ID.
+     * * `name:important` to find skills whose name contains `important` as a
+     * word.
+     * * `displayName:works*` to find skills whose display name contains words
+     * that start with `works`.
+     * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + public java.lang.String getSearchString() { + java.lang.Object ref = searchString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Search criteria used to select the Skills to return. If no search
+     * criteria is specified then all accessible Skills will be returned.
+     *
+     * Search expressions can be used to restrict results based upon searchable
+     * fields, where the operators can be used along with the suffix wildcard
+     * symbol `*`. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * Searchable fields:
+     *
+     * | Field                     | `=` | `:` | `*` | Keyword Search |
+     * |---------------------------|-----|-----|-----|----------------|
+     * | skillId                   | Yes | Yes | Yes | Included       |
+     * | name                      | No  | Yes | Yes | Included       |
+     * | displayName               | No  | Yes | Yes | Included       |
+     * | description               | No  | Yes | No  | Included       |
+     * | frontmatter.name          | No  | Yes | No  | Included       |
+     * | frontmatter.description   | No  | Yes | No  | Included       |
+     * | frontmatter.compatibility | No  | Yes | No  | Included       |
+     * | frontmatter.license       | No  | Yes | No  | Included       |
+     *
+     * Examples:
+     *
+     * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+     * to find the skill with the specified skill ID.
+     * * `name:important` to find skills whose name contains `important` as a
+     * word.
+     * * `displayName:works*` to find skills whose display name contains words
+     * that start with `works`.
+     * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + public com.google.protobuf.ByteString getSearchStringBytes() { + java.lang.Object ref = searchString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Search criteria used to select the Skills to return. If no search
+     * criteria is specified then all accessible Skills will be returned.
+     *
+     * Search expressions can be used to restrict results based upon searchable
+     * fields, where the operators can be used along with the suffix wildcard
+     * symbol `*`. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * Searchable fields:
+     *
+     * | Field                     | `=` | `:` | `*` | Keyword Search |
+     * |---------------------------|-----|-----|-----|----------------|
+     * | skillId                   | Yes | Yes | Yes | Included       |
+     * | name                      | No  | Yes | Yes | Included       |
+     * | displayName               | No  | Yes | Yes | Included       |
+     * | description               | No  | Yes | No  | Included       |
+     * | frontmatter.name          | No  | Yes | No  | Included       |
+     * | frontmatter.description   | No  | Yes | No  | Included       |
+     * | frontmatter.compatibility | No  | Yes | No  | Included       |
+     * | frontmatter.license       | No  | Yes | No  | Included       |
+     *
+     * Examples:
+     *
+     * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+     * to find the skill with the specified skill ID.
+     * * `name:important` to find skills whose name contains `important` as a
+     * word.
+     * * `displayName:works*` to find skills whose display name contains words
+     * that start with `works`.
+     * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The searchString to set. + * @return This builder for chaining. + */ + public Builder setSearchString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + searchString_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Search criteria used to select the Skills to return. If no search
+     * criteria is specified then all accessible Skills will be returned.
+     *
+     * Search expressions can be used to restrict results based upon searchable
+     * fields, where the operators can be used along with the suffix wildcard
+     * symbol `*`. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * Searchable fields:
+     *
+     * | Field                     | `=` | `:` | `*` | Keyword Search |
+     * |---------------------------|-----|-----|-----|----------------|
+     * | skillId                   | Yes | Yes | Yes | Included       |
+     * | name                      | No  | Yes | Yes | Included       |
+     * | displayName               | No  | Yes | Yes | Included       |
+     * | description               | No  | Yes | No  | Included       |
+     * | frontmatter.name          | No  | Yes | No  | Included       |
+     * | frontmatter.description   | No  | Yes | No  | Included       |
+     * | frontmatter.compatibility | No  | Yes | No  | Included       |
+     * | frontmatter.license       | No  | Yes | No  | Included       |
+     *
+     * Examples:
+     *
+     * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+     * to find the skill with the specified skill ID.
+     * * `name:important` to find skills whose name contains `important` as a
+     * word.
+     * * `displayName:works*` to find skills whose display name contains words
+     * that start with `works`.
+     * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSearchString() { + searchString_ = getDefaultInstance().getSearchString(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Search criteria used to select the Skills to return. If no search
+     * criteria is specified then all accessible Skills will be returned.
+     *
+     * Search expressions can be used to restrict results based upon searchable
+     * fields, where the operators can be used along with the suffix wildcard
+     * symbol `*`. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * Searchable fields:
+     *
+     * | Field                     | `=` | `:` | `*` | Keyword Search |
+     * |---------------------------|-----|-----|-----|----------------|
+     * | skillId                   | Yes | Yes | Yes | Included       |
+     * | name                      | No  | Yes | Yes | Included       |
+     * | displayName               | No  | Yes | Yes | Included       |
+     * | description               | No  | Yes | No  | Included       |
+     * | frontmatter.name          | No  | Yes | No  | Included       |
+     * | frontmatter.description   | No  | Yes | No  | Included       |
+     * | frontmatter.compatibility | No  | Yes | No  | Included       |
+     * | frontmatter.license       | No  | Yes | No  | Included       |
+     *
+     * Examples:
+     *
+     * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+     * to find the skill with the specified skill ID.
+     * * `name:important` to find skills whose name contains `important` as a
+     * word.
+     * * `displayName:works*` to find skills whose display name contains words
+     * that start with `works`.
+     * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for searchString to set. + * @return This builder for chaining. + */ + public Builder setSearchStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchString_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Use this field to specify additional filter criteria on search
+     * results. Filter expressions can be used to restrict results based upon
+     * filterable fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * string filter = 5 [(.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. Use this field to specify additional filter criteria on search
+     * results. Filter expressions can be used to restrict results based upon
+     * filterable fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * string filter = 5 [(.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. Use this field to specify additional filter criteria on search
+     * results. Filter expressions can be used to restrict results based upon
+     * filterable fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * string filter = 5 [(.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. Use this field to specify additional filter criteria on search
+     * results. Filter expressions can be used to restrict results based upon
+     * filterable fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Use this field to specify additional filter criteria on search
+     * results. Filter expressions can be used to restrict results based upon
+     * filterable fields, where equality operators can be used. See
+     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+     * for more details.
+     *
+     * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+     *
+     * | Field        | `=` | `<`, `>` |
+     * |--------------|-----|----------|
+     * | state        | Yes | No       |
+     * | targetState  | Yes | No       |
+     * | createTime   | Yes | Yes      |
+     * | updateTime   | Yes | Yes      |
+     *
+     * Examples:
+     *
+     * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+     * 
+ * + * string filter = 5 [(.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 int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of search results to return per page. The page
+     * size is capped at `100`, even if a larger value is specified. A negative
+     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
+     * `0`, a default value of `20` will be used. The server may return fewer
+     * results than requested.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of search results to return per page. The page
+     * size is capped at `100`, even if a larger value is specified. A negative
+     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
+     * `0`, a default value of `20` will be used. The server may return fewer
+     * results than requested.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of search results to return per page. The page
+     * size is capped at `100`, even if a larger value is specified. A negative
+     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
+     * `0`, a default value of `20` will be used. The server may return fewer
+     * results than requested.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000010); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. If present, retrieve the next batch of results from the preceding
+     * call to this method. `page_token` must be the value of `next_page_token`
+     * from the previous response. The values of all other method parameters, must
+     * be identical to those in the previous call.
+     * 
+ * + * string page_token = 4 [(.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. If present, retrieve the next batch of results from the preceding
+     * call to this method. `page_token` must be the value of `next_page_token`
+     * from the previous response. The values of all other method parameters, must
+     * be identical to those in the previous call.
+     * 
+ * + * string page_token = 4 [(.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. If present, retrieve the next batch of results from the preceding
+     * call to this method. `page_token` must be the value of `next_page_token`
+     * from the previous response. The values of all other method parameters, must
+     * be identical to those in the previous call.
+     * 
+ * + * string page_token = 4 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If present, retrieve the next batch of results from the preceding
+     * call to this method. `page_token` must be the value of `next_page_token`
+     * from the previous response. The values of all other method parameters, must
+     * be identical to those in the previous call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If present, retrieve the next batch of results from the preceding
+     * call to this method. `page_token` must be the value of `next_page_token`
+     * from the previous response. The values of all other method parameters, must
+     * be identical to those in the previous call.
+     * 
+ * + * string page_token = 4 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.SearchSkillsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SearchSkillsRequest) + private static final com.google.cloud.agentregistry.v1.SearchSkillsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SearchSkillsRequest(); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchSkillsRequest 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.agentregistry.v1.SearchSkillsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsRequestOrBuilder.java new file mode 100644 index 000000000000..829d0e9e01f3 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsRequestOrBuilder.java @@ -0,0 +1,287 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SearchSkillsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SearchSkillsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for SearchSkillsRequest. 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. Parent value for SearchSkillsRequest. 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 type of search.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for searchType. + */ + int getSearchTypeValue(); + + /** + * + * + *
+   * Optional. The type of search.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SearchType search_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchType. + */ + com.google.cloud.agentregistry.v1.SearchType getSearchType(); + + /** + * + * + *
+   * Optional. Search criteria used to select the Skills to return. If no search
+   * criteria is specified then all accessible Skills will be returned.
+   *
+   * Search expressions can be used to restrict results based upon searchable
+   * fields, where the operators can be used along with the suffix wildcard
+   * symbol `*`. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * Searchable fields:
+   *
+   * | Field                     | `=` | `:` | `*` | Keyword Search |
+   * |---------------------------|-----|-----|-----|----------------|
+   * | skillId                   | Yes | Yes | Yes | Included       |
+   * | name                      | No  | Yes | Yes | Included       |
+   * | displayName               | No  | Yes | Yes | Included       |
+   * | description               | No  | Yes | No  | Included       |
+   * | frontmatter.name          | No  | Yes | No  | Included       |
+   * | frontmatter.description   | No  | Yes | No  | Included       |
+   * | frontmatter.compatibility | No  | Yes | No  | Included       |
+   * | frontmatter.license       | No  | Yes | No  | Included       |
+   *
+   * Examples:
+   *
+   * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+   * to find the skill with the specified skill ID.
+   * * `name:important` to find skills whose name contains `important` as a
+   * word.
+   * * `displayName:works*` to find skills whose display name contains words
+   * that start with `works`.
+   * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + java.lang.String getSearchString(); + + /** + * + * + *
+   * Optional. Search criteria used to select the Skills to return. If no search
+   * criteria is specified then all accessible Skills will be returned.
+   *
+   * Search expressions can be used to restrict results based upon searchable
+   * fields, where the operators can be used along with the suffix wildcard
+   * symbol `*`. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * Searchable fields:
+   *
+   * | Field                     | `=` | `:` | `*` | Keyword Search |
+   * |---------------------------|-----|-----|-----|----------------|
+   * | skillId                   | Yes | Yes | Yes | Included       |
+   * | name                      | No  | Yes | Yes | Included       |
+   * | displayName               | No  | Yes | Yes | Included       |
+   * | description               | No  | Yes | No  | Included       |
+   * | frontmatter.name          | No  | Yes | No  | Included       |
+   * | frontmatter.description   | No  | Yes | No  | Included       |
+   * | frontmatter.compatibility | No  | Yes | No  | Included       |
+   * | frontmatter.license       | No  | Yes | No  | Included       |
+   *
+   * Examples:
+   *
+   * * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"`
+   * to find the skill with the specified skill ID.
+   * * `name:important` to find skills whose name contains `important` as a
+   * word.
+   * * `displayName:works*` to find skills whose display name contains words
+   * that start with `works`.
+   * 
+ * + * string search_string = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + com.google.protobuf.ByteString getSearchStringBytes(); + + /** + * + * + *
+   * Optional. Use this field to specify additional filter criteria on search
+   * results. Filter expressions can be used to restrict results based upon
+   * filterable fields, where equality operators can be used. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * | Field        | `=` | `<`, `>` |
+   * |--------------|-----|----------|
+   * | state        | Yes | No       |
+   * | targetState  | Yes | No       |
+   * | createTime   | Yes | Yes      |
+   * | updateTime   | Yes | Yes      |
+   *
+   * Examples:
+   *
+   * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Use this field to specify additional filter criteria on search
+   * results. Filter expressions can be used to restrict results based upon
+   * filterable fields, where equality operators can be used. See
+   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+   * for more details.
+   *
+   * Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`.
+   *
+   * | Field        | `=` | `<`, `>` |
+   * |--------------|-----|----------|
+   * | state        | Yes | No       |
+   * | targetState  | Yes | No       |
+   * | createTime   | Yes | Yes      |
+   * | updateTime   | Yes | Yes      |
+   *
+   * Examples:
+   *
+   * * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The maximum number of search results to return per page. The page
+   * size is capped at `100`, even if a larger value is specified. A negative
+   * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
+   * `0`, a default value of `20` will be used. The server may return fewer
+   * results than requested.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. `page_token` must be the value of `next_page_token`
+   * from the previous response. The values of all other method parameters, must
+   * be identical to those in the previous call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. `page_token` must be the value of `next_page_token`
+   * from the previous response. The values of all other method parameters, must
+   * be identical to those in the previous call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsResponse.java new file mode 100644 index 000000000000..6349906e9857 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsResponse.java @@ -0,0 +1,1111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Response listing searched Skills.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchSkillsResponse} + */ +@com.google.protobuf.Generated +public final class SearchSkillsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SearchSkillsResponse) + SearchSkillsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchSkillsResponse"); + } + + // Use SearchSkillsResponse.newBuilder() to construct. + private SearchSkillsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchSkillsResponse() { + skills_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchSkillsResponse.class, + com.google.cloud.agentregistry.v1.SearchSkillsResponse.Builder.class); + } + + public static final int SKILLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List skills_; + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public java.util.List getSkillsList() { + return skills_; + } + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public java.util.List + getSkillsOrBuilderList() { + return skills_; + } + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public int getSkillsCount() { + return skills_.size(); + } + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill getSkills(int index) { + return skills_.get(index); + } + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillsOrBuilder(int index) { + return skills_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Query page offset continuation token.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * Query page offset continuation token.
+   * 
+ * + * 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 < skills_.size(); i++) { + output.writeMessage(1, skills_.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 < skills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skills_.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.agentregistry.v1.SearchSkillsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SearchSkillsResponse other = + (com.google.cloud.agentregistry.v1.SearchSkillsResponse) obj; + + if (!getSkillsList().equals(other.getSkillsList())) 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 (getSkillsCount() > 0) { + hash = (37 * hash) + SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getSkillsList().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.agentregistry.v1.SearchSkillsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsResponse 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.agentregistry.v1.SearchSkillsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsResponse 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.agentregistry.v1.SearchSkillsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsResponse 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.agentregistry.v1.SearchSkillsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsResponse 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.agentregistry.v1.SearchSkillsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsResponse 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.agentregistry.v1.SearchSkillsResponse 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 listing searched Skills.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchSkillsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SearchSkillsResponse) + com.google.cloud.agentregistry.v1.SearchSkillsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchSkillsResponse.class, + com.google.cloud.agentregistry.v1.SearchSkillsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SearchSkillsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + } else { + skills_ = null; + skillsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchSkillsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchSkillsResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SearchSkillsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchSkillsResponse build() { + com.google.cloud.agentregistry.v1.SearchSkillsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchSkillsResponse buildPartial() { + com.google.cloud.agentregistry.v1.SearchSkillsResponse result = + new com.google.cloud.agentregistry.v1.SearchSkillsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.SearchSkillsResponse result) { + if (skillsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.skills_ = skills_; + } else { + result.skills_ = skillsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.SearchSkillsResponse 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.agentregistry.v1.SearchSkillsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.SearchSkillsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SearchSkillsResponse other) { + if (other == com.google.cloud.agentregistry.v1.SearchSkillsResponse.getDefaultInstance()) + return this; + if (skillsBuilder_ == null) { + if (!other.skills_.isEmpty()) { + if (skills_.isEmpty()) { + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSkillsIsMutable(); + skills_.addAll(other.skills_); + } + onChanged(); + } + } else { + if (!other.skills_.isEmpty()) { + if (skillsBuilder_.isEmpty()) { + skillsBuilder_.dispose(); + skillsBuilder_ = null; + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00000001); + skillsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSkillsFieldBuilder() + : null; + } else { + skillsBuilder_.addAllMessages(other.skills_); + } + } + } + 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.agentregistry.v1.Skill m = + input.readMessage( + com.google.cloud.agentregistry.v1.Skill.parser(), extensionRegistry); + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(m); + } else { + skillsBuilder_.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 skills_ = + java.util.Collections.emptyList(); + + private void ensureSkillsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + skills_ = new java.util.ArrayList(skills_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder> + skillsBuilder_; + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public java.util.List getSkillsList() { + if (skillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skills_); + } else { + return skillsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public int getSkillsCount() { + if (skillsBuilder_ == null) { + return skills_.size(); + } else { + return skillsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.Skill getSkills(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder setSkills(int index, com.google.cloud.agentregistry.v1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.set(index, value); + onChanged(); + } else { + skillsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder setSkills( + int index, com.google.cloud.agentregistry.v1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addSkills(com.google.cloud.agentregistry.v1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(value); + onChanged(); + } else { + skillsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addSkills(int index, com.google.cloud.agentregistry.v1.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(index, value); + onChanged(); + } else { + skillsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addSkills(com.google.cloud.agentregistry.v1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addSkills( + int index, com.google.cloud.agentregistry.v1.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder addAllSkills( + java.lang.Iterable values) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); + onChanged(); + } else { + skillsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder clearSkills() { + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + skillsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public Builder removeSkills(int index) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.remove(index); + onChanged(); + } else { + skillsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.Skill.Builder getSkillsBuilder(int index) { + return internalGetSkillsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillsOrBuilder(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public java.util.List + getSkillsOrBuilderList() { + if (skillsBuilder_ != null) { + return skillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skills_); + } + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.Skill.Builder addSkillsBuilder() { + return internalGetSkillsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Skill.getDefaultInstance()); + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public com.google.cloud.agentregistry.v1.Skill.Builder addSkillsBuilder(int index) { + return internalGetSkillsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Skill.getDefaultInstance()); + } + + /** + * + * + *
+     * Matched Skills list.
+     * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + public java.util.List getSkillsBuilderList() { + return internalGetSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder> + internalGetSkillsFieldBuilder() { + if (skillsBuilder_ == null) { + skillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder>( + skills_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + skills_ = null; + } + return skillsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Query page offset continuation token.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Query page offset continuation token.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Query page offset continuation token.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Query page offset continuation token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Query page offset continuation token.
+     * 
+ * + * 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.agentregistry.v1.SearchSkillsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SearchSkillsResponse) + private static final com.google.cloud.agentregistry.v1.SearchSkillsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SearchSkillsResponse(); + } + + public static com.google.cloud.agentregistry.v1.SearchSkillsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchSkillsResponse 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.agentregistry.v1.SearchSkillsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsResponseOrBuilder.java new file mode 100644 index 000000000000..2b9c6de766ec --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchSkillsResponseOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SearchSkillsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SearchSkillsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + java.util.List getSkillsList(); + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + com.google.cloud.agentregistry.v1.Skill getSkills(int index); + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + int getSkillsCount(); + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + java.util.List + getSkillsOrBuilderList(); + + /** + * + * + *
+   * Matched Skills list.
+   * 
+ * + * repeated .google.cloud.agentregistry.v1.Skill skills = 1; + */ + com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillsOrBuilder(int index); + + /** + * + * + *
+   * Query page offset continuation token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Query page offset continuation token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchType.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchType.java new file mode 100644 index 000000000000..f105253fcccc --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchType.java @@ -0,0 +1,194 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * The type of search to perform. Additional search types may be supported in
+ * the future.
+ * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.SearchType} + */ +@com.google.protobuf.Generated +public enum SearchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Invalid search type.
+   * 
+ * + * SEARCH_TYPE_UNSPECIFIED = 0; + */ + SEARCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Search for a keyword across all searchable fields.
+   * 
+ * + * KEYWORD = 1; + */ + KEYWORD(1), + /** + * + * + *
+   * Search based on the meaning and intent of a natural language query.
+   * 
+ * + * SEMANTIC = 2; + */ + SEMANTIC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchType"); + } + + /** + * + * + *
+   * Invalid search type.
+   * 
+ * + * SEARCH_TYPE_UNSPECIFIED = 0; + */ + public static final int SEARCH_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Search for a keyword across all searchable fields.
+   * 
+ * + * KEYWORD = 1; + */ + public static final int KEYWORD_VALUE = 1; + + /** + * + * + *
+   * Search based on the meaning and intent of a natural language query.
+   * 
+ * + * SEMANTIC = 2; + */ + public static final int SEMANTIC_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 SearchType 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 SearchType forNumber(int value) { + switch (value) { + case 0: + return SEARCH_TYPE_UNSPECIFIED; + case 1: + return KEYWORD; + case 2: + return SEMANTIC; + 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 SearchType findValueByNumber(int number) { + return SearchType.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.agentregistry.v1.AgentRegistryServiceProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SearchType[] VALUES = values(); + + public static SearchType 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 SearchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.SearchType) +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Service.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Service.java index f35c7b22cb73..3bf7929d0f57 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Service.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Service.java @@ -83,11 +83,11 @@ public interface AgentSpecOrBuilder * * *
-     * Required. The type of the agent spec content.
+     * Required. Immutable. The type of the agent spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -98,11 +98,11 @@ public interface AgentSpecOrBuilder * * *
-     * Required. The type of the agent spec content.
+     * Required. Immutable. The type of the agent spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -383,11 +383,11 @@ private Type(int value) { * * *
-     * Required. The type of the agent spec content.
+     * Required. Immutable. The type of the agent spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -401,11 +401,11 @@ public int getTypeValue() { * * *
-     * Required. The type of the agent spec content.
+     * Required. Immutable. The type of the agent spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -837,11 +837,11 @@ public Builder mergeFrom( * * *
-       * Required. The type of the agent spec content.
+       * Required. Immutable. The type of the agent spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -855,11 +855,11 @@ public int getTypeValue() { * * *
-       * Required. The type of the agent spec content.
+       * Required. Immutable. The type of the agent spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The enum numeric value on the wire for type to set. @@ -876,11 +876,11 @@ public Builder setTypeValue(int value) { * * *
-       * Required. The type of the agent spec content.
+       * Required. Immutable. The type of the agent spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -898,11 +898,11 @@ public com.google.cloud.agentregistry.v1.Service.AgentSpec.Type getType() { * * *
-       * Required. The type of the agent spec content.
+       * Required. Immutable. The type of the agent spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The type to set. @@ -922,11 +922,11 @@ public Builder setType(com.google.cloud.agentregistry.v1.Service.AgentSpec.Type * * *
-       * Required. The type of the agent spec content.
+       * Required. Immutable. The type of the agent spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. @@ -1207,11 +1207,11 @@ public interface McpServerSpecOrBuilder * * *
-     * Required. The type of the MCP Server spec content.
+     * Required. Immutable. The type of the MCP Server spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -1222,11 +1222,11 @@ public interface McpServerSpecOrBuilder * * *
-     * Required. The type of the MCP Server spec content.
+     * Required. Immutable. The type of the MCP Server spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -1330,7 +1330,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The type of the MCP Server spec.
+     * The type of the MCP Server spec. Additional values may be added in the
+     * future.
      * 
* * Protobuf enum {@code google.cloud.agentregistry.v1.Service.McpServerSpec.Type} @@ -1507,11 +1508,11 @@ private Type(int value) { * * *
-     * Required. The type of the MCP Server spec content.
+     * Required. Immutable. The type of the MCP Server spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -1525,11 +1526,11 @@ public int getTypeValue() { * * *
-     * Required. The type of the MCP Server spec content.
+     * Required. Immutable. The type of the MCP Server spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -1961,11 +1962,11 @@ public Builder mergeFrom( * * *
-       * Required. The type of the MCP Server spec content.
+       * Required. Immutable. The type of the MCP Server spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -1979,11 +1980,11 @@ public int getTypeValue() { * * *
-       * Required. The type of the MCP Server spec content.
+       * Required. Immutable. The type of the MCP Server spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The enum numeric value on the wire for type to set. @@ -2000,11 +2001,11 @@ public Builder setTypeValue(int value) { * * *
-       * Required. The type of the MCP Server spec content.
+       * Required. Immutable. The type of the MCP Server spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -2022,11 +2023,11 @@ public com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type getType() { * * *
-       * Required. The type of the MCP Server spec content.
+       * Required. Immutable. The type of the MCP Server spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The type to set. @@ -2046,11 +2047,11 @@ public Builder setType(com.google.cloud.agentregistry.v1.Service.McpServerSpec.T * * *
-       * Required. The type of the MCP Server spec content.
+       * Required. Immutable. The type of the MCP Server spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. @@ -2331,11 +2332,11 @@ public interface EndpointSpecOrBuilder * * *
-     * Required. The type of the endpoint spec content.
+     * Required. Immutable. The type of the endpoint spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -2346,11 +2347,11 @@ public interface EndpointSpecOrBuilder * * *
-     * Required. The type of the endpoint spec content.
+     * Required. Immutable. The type of the endpoint spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -2451,7 +2452,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The type of the endpoint spec.
+     * The type of the endpoint spec. Additional values may be added in the
+     * future.
      * 
* * Protobuf enum {@code google.cloud.agentregistry.v1.Service.EndpointSpec.Type} @@ -2603,11 +2605,11 @@ private Type(int value) { * * *
-     * Required. The type of the endpoint spec content.
+     * Required. Immutable. The type of the endpoint spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -2621,11 +2623,11 @@ public int getTypeValue() { * * *
-     * Required. The type of the endpoint spec content.
+     * Required. Immutable. The type of the endpoint spec content.
      * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -3054,11 +3056,11 @@ public Builder mergeFrom( * * *
-       * Required. The type of the endpoint spec content.
+       * Required. Immutable. The type of the endpoint spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. @@ -3072,11 +3074,11 @@ public int getTypeValue() { * * *
-       * Required. The type of the endpoint spec content.
+       * Required. Immutable. The type of the endpoint spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The enum numeric value on the wire for type to set. @@ -3093,11 +3095,11 @@ public Builder setTypeValue(int value) { * * *
-       * Required. The type of the endpoint spec content.
+       * Required. Immutable. The type of the endpoint spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. @@ -3115,11 +3117,11 @@ public com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type getType() { * * *
-       * Required. The type of the endpoint spec content.
+       * Required. Immutable. The type of the endpoint spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The type to set. @@ -3139,11 +3141,11 @@ public Builder setType(com.google.cloud.agentregistry.v1.Service.EndpointSpec.Ty * * *
-       * Required. The type of the endpoint spec content.
+       * Required. Immutable. The type of the endpoint spec content.
        * 
* * - * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceProto.java index 11b5a5a22249..a45803d500ec 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceProto.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceProto.java @@ -71,7 +71,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/api/field_behavior.proto\032\031google/ap" + "i/resource.proto\032.google/cloud/agentregi" + "stry/v1/properties.proto\032\034google/protobu" - + "f/struct.proto\032\037google/protobuf/timestamp.proto\"\357\t\n" + + "f/struct.proto\032\037google/protobuf/timestamp.proto\"\362\t\n" + "\007Service\022L\n\n" + "agent_spec\030\005 \001(\0132" + "0.google.cloud.agentregistry.v1.Service.AgentSpecB\004\342A\001\001H\000\022U\n" @@ -89,36 +89,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\t" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\032\305\001\n" - + "\tAgentSpec\022I\n" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\032\306\001\n" + + "\tAgentSpec\022J\n" + "\004type\030\001 \001(\01625.google.cloud.ag" - + "entregistry.v1.Service.AgentSpec.TypeB\004\342A\001\002\022.\n" + + "entregistry.v1.Service.AgentSpec.TypeB\005\342A\002\002\005\022.\n" + "\007content\030\002 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"=\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + "\007NO_SPEC\020\001\022\022\n" - + "\016A2A_AGENT_CARD\020\002\032\310\001\n\r" - + "McpServerSpec\022M\n" - + "\004type\030\001 \001(\01629.google.clou" - + "d.agentregistry.v1.Service.McpServerSpec.TypeB\004\342A\001\002\022.\n" + + "\016A2A_AGENT_CARD\020\002\032\311\001\n\r" + + "McpServerSpec\022N\n" + + "\004type\030\001 \001(\01629.google.clo" + + "ud.agentregistry.v1.Service.McpServerSpec.TypeB\005\342A\002\002\005\022.\n" + "\007content\030\002 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"8\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + "\007NO_SPEC\020\001\022\r\n" - + "\tTOOL_SPEC\020\002\032\267\001\n" - + "\014EndpointSpec\022L\n" - + "\004type\030\001 \001(\01628.google.cl" - + "oud.agentregistry.v1.Service.EndpointSpec.TypeB\004\342A\001\002\022.\n" + + "\tTOOL_SPEC\020\002\032\270\001\n" + + "\014EndpointSpec\022M\n" + + "\004type\030\001 \001(\01628.google." + + "cloud.agentregistry.v1.Service.EndpointSpec.TypeB\005\342A\002\002\005\022.\n" + "\007content\030\002 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\")\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + "\007NO_SPEC\020\001:x\352Au\n" - + "$agentregistry.googleapis.com/Service\022:projects/{pr" - + "oject}/locations/{location}/services/{service}*\010services2\007serviceB\006\n" + + "$agentregistry.googleapis.com/Service\022:projects/" + + "{project}/locations/{location}/services/{service}*\010services2\007serviceB\006\n" + "\004specB\337\001\n" - + "!com.google.cloud.agentregistry.v1B\014Service" - + "ProtoP\001ZGcloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb" - + "\252\002\035Google.Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + "!com.google.cloud.agentregistry.v1B\014ServiceProtoP\001ZGcloud.google.com/go/agentreg" + + "istry/apiv1/agentregistrypb;agentregistr" + + "ypb\252\002\035Google.Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + " Google::Cloud::AgentRegistry::V1b\006proto3" }; descriptor = diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Severity.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Severity.java new file mode 100644 index 000000000000..f359f950e58a --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Severity.java @@ -0,0 +1,239 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/finding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * The severity of the finding.
+ * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.Severity} + */ +@com.google.protobuf.Generated +public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * This value is used for findings when a source doesn't write a severity
+   * value.
+   * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
+   * Critical severity.
+   * 
+ * + * SEVERITY_CRITICAL = 1; + */ + SEVERITY_CRITICAL(1), + /** + * + * + *
+   * High severity.
+   * 
+ * + * SEVERITY_HIGH = 2; + */ + SEVERITY_HIGH(2), + /** + * + * + *
+   * Medium severity.
+   * 
+ * + * SEVERITY_MEDIUM = 3; + */ + SEVERITY_MEDIUM(3), + /** + * + * + *
+   * Low severity.
+   * 
+ * + * SEVERITY_LOW = 4; + */ + SEVERITY_LOW(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Severity"); + } + + /** + * + * + *
+   * This value is used for findings when a source doesn't write a severity
+   * value.
+   * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Critical severity.
+   * 
+ * + * SEVERITY_CRITICAL = 1; + */ + public static final int SEVERITY_CRITICAL_VALUE = 1; + + /** + * + * + *
+   * High severity.
+   * 
+ * + * SEVERITY_HIGH = 2; + */ + public static final int SEVERITY_HIGH_VALUE = 2; + + /** + * + * + *
+   * Medium severity.
+   * 
+ * + * SEVERITY_MEDIUM = 3; + */ + public static final int SEVERITY_MEDIUM_VALUE = 3; + + /** + * + * + *
+   * Low severity.
+   * 
+ * + * SEVERITY_LOW = 4; + */ + public static final int SEVERITY_LOW_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 Severity 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 Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return SEVERITY_CRITICAL; + case 2: + return SEVERITY_HIGH; + case 3: + return SEVERITY_MEDIUM; + case 4: + return SEVERITY_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 Severity findValueByNumber(int number) { + return Severity.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.agentregistry.v1.FindingProto.getDescriptor().getEnumTypes().get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity 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 Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.Severity) +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Skill.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Skill.java new file mode 100644 index 000000000000..04bf681cd383 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Skill.java @@ -0,0 +1,4654 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Represents an Executable Agent Skill or a Composite Tool Suite (Bundle).
+ * Sibling resource with Agent and McpServer under agentregistry.googleapis.com.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Skill} + */ +@com.google.protobuf.Generated +public final class Skill extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Skill) + SkillOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Skill"); + } + + // Use Skill.newBuilder() to construct. + private Skill(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Skill() { + name_ = ""; + uid_ = ""; + displayName_ = ""; + description_ = ""; + type_ = 0; + state_ = 0; + targetState_ = 0; + defaultRevision_ = ""; + skillId_ = ""; + publisher_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Skill.class, + com.google.cloud.agentregistry.v1.Skill.Builder.class); + } + + /** + * + * + *
+   * The structural type of the Skill.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.Skill.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A standard, leaf executable skill containing natural language and code.
+     * 
+ * + * SIMPLE = 1; + */ + SIMPLE(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * A standard, leaf executable skill containing natural language and code.
+     * 
+ * + * SIMPLE = 1; + */ + public static final int SIMPLE_VALUE = 1; + + 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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return SIMPLE; + 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 Type findValueByNumber(int number) { + return Type.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.agentregistry.v1.Skill.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.Skill.Type) + } + + /** + * + * + *
+   * System-managed state.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.Skill.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The skill is being created. It is not served.
+     * 
+ * + * STATE_CREATING = 1; + */ + STATE_CREATING(1), + /** + * + * + *
+     * The skill is in draft, or lacks a valid payload. It is not served.
+     * 
+ * + * STATE_DRAFT = 2; + */ + STATE_DRAFT(2), + /** + * + * + *
+     * The skill is active and is served.
+     * 
+ * + * STATE_ACTIVE = 3; + */ + STATE_ACTIVE(3), + /** + * + * + *
+     * The skill is disabled and is not served.
+     * 
+ * + * STATE_DISABLED = 4; + */ + STATE_DISABLED(4), + /** + * + * + *
+     * The skill is deprecated. It is served, but emits warnings.
+     * 
+ * + * STATE_DEPRECATED = 5; + */ + STATE_DEPRECATED(5), + /** + * + * + *
+     * The skill is decommissioned and is not served.
+     * 
+ * + * STATE_DECOMMISSIONED = 6; + */ + STATE_DECOMMISSIONED(6), + /** + * + * + *
+     * The skill is being deleted. It is not served.
+     * 
+ * + * STATE_DELETING = 7; + */ + STATE_DELETING(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The skill is being created. It is not served.
+     * 
+ * + * STATE_CREATING = 1; + */ + public static final int STATE_CREATING_VALUE = 1; + + /** + * + * + *
+     * The skill is in draft, or lacks a valid payload. It is not served.
+     * 
+ * + * STATE_DRAFT = 2; + */ + public static final int STATE_DRAFT_VALUE = 2; + + /** + * + * + *
+     * The skill is active and is served.
+     * 
+ * + * STATE_ACTIVE = 3; + */ + public static final int STATE_ACTIVE_VALUE = 3; + + /** + * + * + *
+     * The skill is disabled and is not served.
+     * 
+ * + * STATE_DISABLED = 4; + */ + public static final int STATE_DISABLED_VALUE = 4; + + /** + * + * + *
+     * The skill is deprecated. It is served, but emits warnings.
+     * 
+ * + * STATE_DEPRECATED = 5; + */ + public static final int STATE_DEPRECATED_VALUE = 5; + + /** + * + * + *
+     * The skill is decommissioned and is not served.
+     * 
+ * + * STATE_DECOMMISSIONED = 6; + */ + public static final int STATE_DECOMMISSIONED_VALUE = 6; + + /** + * + * + *
+     * The skill is being deleted. It is not served.
+     * 
+ * + * STATE_DELETING = 7; + */ + public static final int STATE_DELETING_VALUE = 7; + + 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 STATE_CREATING; + case 2: + return STATE_DRAFT; + case 3: + return STATE_ACTIVE; + case 4: + return STATE_DISABLED; + case 5: + return STATE_DEPRECATED; + case 6: + return STATE_DECOMMISSIONED; + case 7: + return STATE_DELETING; + 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.agentregistry.v1.Skill.getDescriptor().getEnumTypes().get(1); + } + + 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.agentregistry.v1.Skill.State) + } + + /** + * + * + *
+   * User-configurable target state.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.Skill.TargetState} + */ + public enum TargetState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TARGET_STATE_UNSPECIFIED = 0; + */ + TARGET_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The skill is in draft and cannot be served.
+     * 
+ * + * TARGET_STATE_DRAFT = 1; + */ + TARGET_STATE_DRAFT(1), + /** + * + * + *
+     * The skill is active and can be served.
+     * 
+ * + * TARGET_STATE_ACTIVE = 2; + */ + TARGET_STATE_ACTIVE(2), + /** + * + * + *
+     * The skill is disabled and cannot be served.
+     * 
+ * + * TARGET_STATE_DISABLED = 3; + */ + TARGET_STATE_DISABLED(3), + /** + * + * + *
+     * The skill is deprecated. It can still be served, but emits warnings.
+     * 
+ * + * TARGET_STATE_DEPRECATED = 4; + */ + TARGET_STATE_DEPRECATED(4), + /** + * + * + *
+     * The skill is decommissioned and cannot be served.
+     * 
+ * + * TARGET_STATE_DECOMMISSIONED = 5; + */ + TARGET_STATE_DECOMMISSIONED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TargetState"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TARGET_STATE_UNSPECIFIED = 0; + */ + public static final int TARGET_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The skill is in draft and cannot be served.
+     * 
+ * + * TARGET_STATE_DRAFT = 1; + */ + public static final int TARGET_STATE_DRAFT_VALUE = 1; + + /** + * + * + *
+     * The skill is active and can be served.
+     * 
+ * + * TARGET_STATE_ACTIVE = 2; + */ + public static final int TARGET_STATE_ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The skill is disabled and cannot be served.
+     * 
+ * + * TARGET_STATE_DISABLED = 3; + */ + public static final int TARGET_STATE_DISABLED_VALUE = 3; + + /** + * + * + *
+     * The skill is deprecated. It can still be served, but emits warnings.
+     * 
+ * + * TARGET_STATE_DEPRECATED = 4; + */ + public static final int TARGET_STATE_DEPRECATED_VALUE = 4; + + /** + * + * + *
+     * The skill is decommissioned and cannot be served.
+     * 
+ * + * TARGET_STATE_DECOMMISSIONED = 5; + */ + public static final int TARGET_STATE_DECOMMISSIONED_VALUE = 5; + + 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 TargetState 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 TargetState forNumber(int value) { + switch (value) { + case 0: + return TARGET_STATE_UNSPECIFIED; + case 1: + return TARGET_STATE_DRAFT; + case 2: + return TARGET_STATE_ACTIVE; + case 3: + return TARGET_STATE_DISABLED; + case 4: + return TARGET_STATE_DEPRECATED; + case 5: + return TARGET_STATE_DECOMMISSIONED; + 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 TargetState findValueByNumber(int number) { + return TargetState.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.agentregistry.v1.Skill.getDescriptor().getEnumTypes().get(2); + } + + private static final TargetState[] VALUES = values(); + + public static TargetState 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 TargetState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.Skill.TargetState) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of the Skill.
+   * Format: `projects/{project}/locations/{location}/skills/{skill}`
+   * The `{skill}` segment acts as the resource ID. If the skill is associated
+   * with a Publisher, this segment typically uses a hyphenated namespace prefix
+   * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+   * 
+ * + * 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 the Skill.
+   * Format: `projects/{project}/locations/{location}/skills/{skill}`
+   * The `{skill}` segment acts as the resource ID. If the skill is associated
+   * with a Publisher, this segment typically uses a hyphenated namespace prefix
+   * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+   * 
+ * + * 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. Universally unique identifier (UUID4) for the logical
+   * container.
+   * 
+ * + * + * 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. Universally unique identifier (UUID4) for the logical
+   * container.
+   * 
+ * + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. Human-readable display name of the skill.
+   * Maximum length is 128 characters.
+   * 
+ * + * string display_name = 3 [(.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 display name of the skill.
+   * Maximum length is 128 characters.
+   * 
+ * + * string display_name = 3 [(.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 DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Brief summary describing the capabilities of the skill.
+   * Maximum length is 2048 characters.
+   * 
+ * + * 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. Brief summary describing the capabilities of the skill.
+   * Maximum length is 2048 characters.
+   * 
+ * + * 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; + } + } + + public static final int TYPE_FIELD_NUMBER = 5; + private int type_ = 0; + + /** + * + * + *
+   * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill.Type getType() { + com.google.cloud.agentregistry.v1.Skill.Type result = + com.google.cloud.agentregistry.v1.Skill.Type.forNumber(type_); + return result == null ? com.google.cloud.agentregistry.v1.Skill.Type.UNRECOGNIZED : result; + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The system-managed state of the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.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 system-managed state of the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill.State getState() { + com.google.cloud.agentregistry.v1.Skill.State result = + com.google.cloud.agentregistry.v1.Skill.State.forNumber(state_); + return result == null ? com.google.cloud.agentregistry.v1.Skill.State.UNRECOGNIZED : result; + } + + public static final int TARGET_STATE_FIELD_NUMBER = 7; + private int targetState_ = 0; + + /** + * + * + *
+   * Required. User-managed target state of the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for targetState. + */ + @java.lang.Override + public int getTargetStateValue() { + return targetState_; + } + + /** + * + * + *
+   * Required. User-managed target state of the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetState. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill.TargetState getTargetState() { + com.google.cloud.agentregistry.v1.Skill.TargetState result = + com.google.cloud.agentregistry.v1.Skill.TargetState.forNumber(targetState_); + return result == null + ? com.google.cloud.agentregistry.v1.Skill.TargetState.UNRECOGNIZED + : result; + } + + public static final int DEFAULT_REVISION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultRevision_ = ""; + + /** + * + * + *
+   * Optional. The full resource name of the revision currently served by
+   * default (floating track).
+   * Format:
+   * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+   * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultRevision. + */ + @java.lang.Override + public java.lang.String getDefaultRevision() { + java.lang.Object ref = defaultRevision_; + 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(); + defaultRevision_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The full resource name of the revision currently served by
+   * default (floating track).
+   * Format:
+   * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+   * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultRevisionBytes() { + java.lang.Object ref = defaultRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FRONTMATTER_FIELD_NUMBER = 9; + private com.google.cloud.agentregistry.v1.Frontmatter frontmatter_; + + /** + * + * + *
+   * Output only. Lightweight frontmatter metadata attributes copied from the
+   * default revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the frontmatter field is set. + */ + @java.lang.Override + public boolean hasFrontmatter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Lightweight frontmatter metadata attributes copied from the
+   * default revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The frontmatter. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Frontmatter getFrontmatter() { + return frontmatter_ == null + ? com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance() + : frontmatter_; + } + + /** + * + * + *
+   * Output only. Lightweight frontmatter metadata attributes copied from the
+   * default revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.FrontmatterOrBuilder getFrontmatterOrBuilder() { + return frontmatter_ == null + ? com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance() + : frontmatter_; + } + + public static final int SKILL_ID_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object skillId_ = ""; + + /** + * + * + *
+   * Output only. A stable, globally unique logical identifier for the skill.
+   * It is securely constructed by the backend by combining the associated
+   * `publisher`'s verified namespace and the skill's resource ID to enforce
+   * strict ownership. For example, the prefix `google-` is reserved exclusively
+   * for first-party Google publishers to prevent namespace squatting.
+   * Example: `urn:skill:google-workspace:create-docs`
+   * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The skillId. + */ + @java.lang.Override + public java.lang.String getSkillId() { + java.lang.Object ref = skillId_; + 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(); + skillId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. A stable, globally unique logical identifier for the skill.
+   * It is securely constructed by the backend by combining the associated
+   * `publisher`'s verified namespace and the skill's resource ID to enforce
+   * strict ownership. For example, the prefix `google-` is reserved exclusively
+   * for first-party Google publishers to prevent namespace squatting.
+   * Example: `urn:skill:google-workspace:create-docs`
+   * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for skillId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSkillIdBytes() { + java.lang.Object ref = skillId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.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. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.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. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.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 = 12; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.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. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.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. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.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 PUBLISHER_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object publisher_ = ""; + + /** + * + * + *
+   * Optional. The publisher resource associated with this skill.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * The publisher dictates the allowed namespace prefixes for the skill's name
+   * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+   * prefix).
+   * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The publisher. + */ + @java.lang.Override + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + 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(); + publisher_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The publisher resource associated with this skill.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * The publisher dictates the allowed namespace prefixes for the skill's name
+   * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+   * prefix).
+   * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for publisher. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_REVISION_FIELD_NUMBER = 14; + private com.google.cloud.agentregistry.v1.SkillRevision initialRevision_; + + /** + * + * + *
+   * Optional. Input only. Optional nested initial revision payload to support
+   * standard one-shot creation. The server processes this field on input during
+   * creation but must never return it in responses.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the initialRevision field is set. + */ + @java.lang.Override + public boolean hasInitialRevision() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Input only. Optional nested initial revision payload to support
+   * standard one-shot creation. The server processes this field on input during
+   * creation but must never return it in responses.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialRevision. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision getInitialRevision() { + return initialRevision_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance() + : initialRevision_; + } + + /** + * + * + *
+   * Optional. Input only. Optional nested initial revision payload to support
+   * standard one-shot creation. The server processes this field on input during
+   * creation but must never return it in responses.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getInitialRevisionOrBuilder() { + return initialRevision_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance() + : initialRevision_; + } + + public static final int SCANNING_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.agentregistry.v1.ScanningConfig scanningConfig_; + + /** + * + * + *
+   * Optional. Optional. Scanning configuration for the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scanningConfig field is set. + */ + @java.lang.Override + public boolean hasScanningConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. Optional. Scanning configuration for the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scanningConfig. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ScanningConfig getScanningConfig() { + return scanningConfig_ == null + ? com.google.cloud.agentregistry.v1.ScanningConfig.getDefaultInstance() + : scanningConfig_; + } + + /** + * + * + *
+   * Optional. Optional. Scanning configuration for the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ScanningConfigOrBuilder getScanningConfigOrBuilder() { + return scanningConfig_ == null + ? com.google.cloud.agentregistry.v1.ScanningConfig.getDefaultInstance() + : scanningConfig_; + } + + 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(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 (type_ != com.google.cloud.agentregistry.v1.Skill.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, type_); + } + if (state_ != com.google.cloud.agentregistry.v1.Skill.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (targetState_ + != com.google.cloud.agentregistry.v1.Skill.TargetState.TARGET_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, targetState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, defaultRevision_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getFrontmatter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(11, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getUpdateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(14, getInitialRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publisher_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, publisher_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(skillId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, skillId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(20, getScanningConfig()); + } + 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(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 (type_ != com.google.cloud.agentregistry.v1.Skill.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); + } + if (state_ != com.google.cloud.agentregistry.v1.Skill.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (targetState_ + != com.google.cloud.agentregistry.v1.Skill.TargetState.TARGET_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, targetState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, defaultRevision_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getFrontmatter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getInitialRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(publisher_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, publisher_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(skillId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(17, skillId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getScanningConfig()); + } + 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.agentregistry.v1.Skill)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Skill other = (com.google.cloud.agentregistry.v1.Skill) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (type_ != other.type_) return false; + if (state_ != other.state_) return false; + if (targetState_ != other.targetState_) return false; + if (!getDefaultRevision().equals(other.getDefaultRevision())) return false; + if (hasFrontmatter() != other.hasFrontmatter()) return false; + if (hasFrontmatter()) { + if (!getFrontmatter().equals(other.getFrontmatter())) return false; + } + if (!getSkillId().equals(other.getSkillId())) 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 (!getPublisher().equals(other.getPublisher())) return false; + if (hasInitialRevision() != other.hasInitialRevision()) return false; + if (hasInitialRevision()) { + if (!getInitialRevision().equals(other.getInitialRevision())) return false; + } + if (hasScanningConfig() != other.hasScanningConfig()) return false; + if (hasScanningConfig()) { + if (!getScanningConfig().equals(other.getScanningConfig())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + TARGET_STATE_FIELD_NUMBER; + hash = (53 * hash) + targetState_; + hash = (37 * hash) + DEFAULT_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultRevision().hashCode(); + if (hasFrontmatter()) { + hash = (37 * hash) + FRONTMATTER_FIELD_NUMBER; + hash = (53 * hash) + getFrontmatter().hashCode(); + } + hash = (37 * hash) + SKILL_ID_FIELD_NUMBER; + hash = (53 * hash) + getSkillId().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) + PUBLISHER_FIELD_NUMBER; + hash = (53 * hash) + getPublisher().hashCode(); + if (hasInitialRevision()) { + hash = (37 * hash) + INITIAL_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getInitialRevision().hashCode(); + } + if (hasScanningConfig()) { + hash = (37 * hash) + SCANNING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getScanningConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Skill parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Skill 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.agentregistry.v1.Skill parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Skill 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.agentregistry.v1.Skill parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Skill parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Skill parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Skill 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.agentregistry.v1.Skill parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Skill 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.agentregistry.v1.Skill parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Skill 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.agentregistry.v1.Skill 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 an Executable Agent Skill or a Composite Tool Suite (Bundle).
+   * Sibling resource with Agent and McpServer under agentregistry.googleapis.com.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.Skill} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Skill) + com.google.cloud.agentregistry.v1.SkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Skill.class, + com.google.cloud.agentregistry.v1.Skill.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Skill.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFrontmatterFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetInitialRevisionFieldBuilder(); + internalGetScanningConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + displayName_ = ""; + description_ = ""; + type_ = 0; + state_ = 0; + targetState_ = 0; + defaultRevision_ = ""; + frontmatter_ = null; + if (frontmatterBuilder_ != null) { + frontmatterBuilder_.dispose(); + frontmatterBuilder_ = null; + } + skillId_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + publisher_ = ""; + initialRevision_ = null; + if (initialRevisionBuilder_ != null) { + initialRevisionBuilder_.dispose(); + initialRevisionBuilder_ = null; + } + scanningConfig_ = null; + if (scanningConfigBuilder_ != null) { + scanningConfigBuilder_.dispose(); + scanningConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_Skill_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Skill.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill build() { + com.google.cloud.agentregistry.v1.Skill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill buildPartial() { + com.google.cloud.agentregistry.v1.Skill result = + new com.google.cloud.agentregistry.v1.Skill(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Skill 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.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.targetState_ = targetState_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.defaultRevision_ = defaultRevision_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.frontmatter_ = + frontmatterBuilder_ == null ? frontmatter_ : frontmatterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.skillId_ = skillId_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.publisher_ = publisher_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.initialRevision_ = + initialRevisionBuilder_ == null ? initialRevision_ : initialRevisionBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.scanningConfig_ = + scanningConfigBuilder_ == null ? scanningConfig_ : scanningConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Skill) { + return mergeFrom((com.google.cloud.agentregistry.v1.Skill) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Skill other) { + if (other == com.google.cloud.agentregistry.v1.Skill.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.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.targetState_ != 0) { + setTargetStateValue(other.getTargetStateValue()); + } + if (!other.getDefaultRevision().isEmpty()) { + defaultRevision_ = other.defaultRevision_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasFrontmatter()) { + mergeFrontmatter(other.getFrontmatter()); + } + if (!other.getSkillId().isEmpty()) { + skillId_ = other.skillId_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getPublisher().isEmpty()) { + publisher_ = other.publisher_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasInitialRevision()) { + mergeInitialRevision(other.getInitialRevision()); + } + if (other.hasScanningConfig()) { + mergeScanningConfig(other.getScanningConfig()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + targetState_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + defaultRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetFrontmatterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 90: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 114: + { + input.readMessage( + internalGetInitialRevisionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + publisher_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 122 + case 138: + { + skillId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 138 + case 162: + { + input.readMessage( + internalGetScanningConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 162 + 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 the Skill.
+     * Format: `projects/{project}/locations/{location}/skills/{skill}`
+     * The `{skill}` segment acts as the resource ID. If the skill is associated
+     * with a Publisher, this segment typically uses a hyphenated namespace prefix
+     * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+     * 
+ * + * 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 the Skill.
+     * Format: `projects/{project}/locations/{location}/skills/{skill}`
+     * The `{skill}` segment acts as the resource ID. If the skill is associated
+     * with a Publisher, this segment typically uses a hyphenated namespace prefix
+     * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+     * 
+ * + * 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 the Skill.
+     * Format: `projects/{project}/locations/{location}/skills/{skill}`
+     * The `{skill}` segment acts as the resource ID. If the skill is associated
+     * with a Publisher, this segment typically uses a hyphenated namespace prefix
+     * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+     * 
+ * + * 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 the Skill.
+     * Format: `projects/{project}/locations/{location}/skills/{skill}`
+     * The `{skill}` segment acts as the resource ID. If the skill is associated
+     * with a Publisher, this segment typically uses a hyphenated namespace prefix
+     * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+     * 
+ * + * 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 the Skill.
+     * Format: `projects/{project}/locations/{location}/skills/{skill}`
+     * The `{skill}` segment acts as the resource ID. If the skill is associated
+     * with a Publisher, this segment typically uses a hyphenated namespace prefix
+     * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+     * 
+ * + * 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. Universally unique identifier (UUID4) for the logical
+     * container.
+     * 
+ * + * + * 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. Universally unique identifier (UUID4) for the logical
+     * container.
+     * 
+ * + * + * 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. Universally unique identifier (UUID4) for the logical
+     * container.
+     * 
+ * + * + * 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. Universally unique identifier (UUID4) for the logical
+     * container.
+     * 
+ * + * + * 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. Universally unique identifier (UUID4) for the logical
+     * container.
+     * 
+ * + * + * 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 displayName_ = ""; + + /** + * + * + *
+     * Optional. Human-readable display name of the skill.
+     * Maximum length is 128 characters.
+     * 
+ * + * string display_name = 3 [(.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 display name of the skill.
+     * Maximum length is 128 characters.
+     * 
+ * + * string display_name = 3 [(.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 display name of the skill.
+     * Maximum length is 128 characters.
+     * 
+ * + * string display_name = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Human-readable display name of the skill.
+     * Maximum length is 128 characters.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Human-readable display name of the skill.
+     * Maximum length is 128 characters.
+     * 
+ * + * string display_name = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Brief summary describing the capabilities of the skill.
+     * Maximum length is 2048 characters.
+     * 
+ * + * 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. Brief summary describing the capabilities of the skill.
+     * Maximum length is 2048 characters.
+     * 
+ * + * 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. Brief summary describing the capabilities of the skill.
+     * Maximum length is 2048 characters.
+     * 
+ * + * 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. Brief summary describing the capabilities of the skill.
+     * Maximum length is 2048 characters.
+     * 
+ * + * 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. Brief summary describing the capabilities of the skill.
+     * Maximum length is 2048 characters.
+     * 
+ * + * 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; + } + + private int type_ = 0; + + /** + * + * + *
+     * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill.Type getType() { + com.google.cloud.agentregistry.v1.Skill.Type result = + com.google.cloud.agentregistry.v1.Skill.Type.forNumber(type_); + return result == null ? com.google.cloud.agentregistry.v1.Skill.Type.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.agentregistry.v1.Skill.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The system-managed state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.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 system-managed state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.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 system-managed state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill.State getState() { + com.google.cloud.agentregistry.v1.Skill.State result = + com.google.cloud.agentregistry.v1.Skill.State.forNumber(state_); + return result == null ? com.google.cloud.agentregistry.v1.Skill.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. The system-managed state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.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.agentregistry.v1.Skill.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The system-managed state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.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 int targetState_ = 0; + + /** + * + * + *
+     * Required. User-managed target state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for targetState. + */ + @java.lang.Override + public int getTargetStateValue() { + return targetState_; + } + + /** + * + * + *
+     * Required. User-managed target state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for targetState to set. + * @return This builder for chaining. + */ + public Builder setTargetStateValue(int value) { + targetState_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. User-managed target state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetState. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill.TargetState getTargetState() { + com.google.cloud.agentregistry.v1.Skill.TargetState result = + com.google.cloud.agentregistry.v1.Skill.TargetState.forNumber(targetState_); + return result == null + ? com.google.cloud.agentregistry.v1.Skill.TargetState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. User-managed target state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The targetState to set. + * @return This builder for chaining. + */ + public Builder setTargetState(com.google.cloud.agentregistry.v1.Skill.TargetState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + targetState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. User-managed target state of the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearTargetState() { + bitField0_ = (bitField0_ & ~0x00000040); + targetState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object defaultRevision_ = ""; + + /** + * + * + *
+     * Optional. The full resource name of the revision currently served by
+     * default (floating track).
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultRevision. + */ + public java.lang.String getDefaultRevision() { + java.lang.Object ref = defaultRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The full resource name of the revision currently served by
+     * default (floating track).
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultRevision. + */ + public com.google.protobuf.ByteString getDefaultRevisionBytes() { + java.lang.Object ref = defaultRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The full resource name of the revision currently served by
+     * default (floating track).
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The defaultRevision to set. + * @return This builder for chaining. + */ + public Builder setDefaultRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultRevision_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The full resource name of the revision currently served by
+     * default (floating track).
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultRevision() { + defaultRevision_ = getDefaultInstance().getDefaultRevision(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The full resource name of the revision currently served by
+     * default (floating track).
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for defaultRevision to set. + * @return This builder for chaining. + */ + public Builder setDefaultRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultRevision_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.Frontmatter frontmatter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Frontmatter, + com.google.cloud.agentregistry.v1.Frontmatter.Builder, + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder> + frontmatterBuilder_; + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the frontmatter field is set. + */ + public boolean hasFrontmatter() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The frontmatter. + */ + public com.google.cloud.agentregistry.v1.Frontmatter getFrontmatter() { + if (frontmatterBuilder_ == null) { + return frontmatter_ == null + ? com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance() + : frontmatter_; + } else { + return frontmatterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFrontmatter(com.google.cloud.agentregistry.v1.Frontmatter value) { + if (frontmatterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + frontmatter_ = value; + } else { + frontmatterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFrontmatter( + com.google.cloud.agentregistry.v1.Frontmatter.Builder builderForValue) { + if (frontmatterBuilder_ == null) { + frontmatter_ = builderForValue.build(); + } else { + frontmatterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeFrontmatter(com.google.cloud.agentregistry.v1.Frontmatter value) { + if (frontmatterBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && frontmatter_ != null + && frontmatter_ != com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance()) { + getFrontmatterBuilder().mergeFrom(value); + } else { + frontmatter_ = value; + } + } else { + frontmatterBuilder_.mergeFrom(value); + } + if (frontmatter_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFrontmatter() { + bitField0_ = (bitField0_ & ~0x00000100); + frontmatter_ = null; + if (frontmatterBuilder_ != null) { + frontmatterBuilder_.dispose(); + frontmatterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Frontmatter.Builder getFrontmatterBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetFrontmatterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.FrontmatterOrBuilder getFrontmatterOrBuilder() { + if (frontmatterBuilder_ != null) { + return frontmatterBuilder_.getMessageOrBuilder(); + } else { + return frontmatter_ == null + ? com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance() + : frontmatter_; + } + } + + /** + * + * + *
+     * Output only. Lightweight frontmatter metadata attributes copied from the
+     * default revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Frontmatter, + com.google.cloud.agentregistry.v1.Frontmatter.Builder, + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder> + internalGetFrontmatterFieldBuilder() { + if (frontmatterBuilder_ == null) { + frontmatterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Frontmatter, + com.google.cloud.agentregistry.v1.Frontmatter.Builder, + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder>( + getFrontmatter(), getParentForChildren(), isClean()); + frontmatter_ = null; + } + return frontmatterBuilder_; + } + + private java.lang.Object skillId_ = ""; + + /** + * + * + *
+     * Output only. A stable, globally unique logical identifier for the skill.
+     * It is securely constructed by the backend by combining the associated
+     * `publisher`'s verified namespace and the skill's resource ID to enforce
+     * strict ownership. For example, the prefix `google-` is reserved exclusively
+     * for first-party Google publishers to prevent namespace squatting.
+     * Example: `urn:skill:google-workspace:create-docs`
+     * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The skillId. + */ + public java.lang.String getSkillId() { + java.lang.Object ref = skillId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skillId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. A stable, globally unique logical identifier for the skill.
+     * It is securely constructed by the backend by combining the associated
+     * `publisher`'s verified namespace and the skill's resource ID to enforce
+     * strict ownership. For example, the prefix `google-` is reserved exclusively
+     * for first-party Google publishers to prevent namespace squatting.
+     * Example: `urn:skill:google-workspace:create-docs`
+     * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for skillId. + */ + public com.google.protobuf.ByteString getSkillIdBytes() { + java.lang.Object ref = skillId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skillId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. A stable, globally unique logical identifier for the skill.
+     * It is securely constructed by the backend by combining the associated
+     * `publisher`'s verified namespace and the skill's resource ID to enforce
+     * strict ownership. For example, the prefix `google-` is reserved exclusively
+     * for first-party Google publishers to prevent namespace squatting.
+     * Example: `urn:skill:google-workspace:create-docs`
+     * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The skillId to set. + * @return This builder for chaining. + */ + public Builder setSkillId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + skillId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. A stable, globally unique logical identifier for the skill.
+     * It is securely constructed by the backend by combining the associated
+     * `publisher`'s verified namespace and the skill's resource ID to enforce
+     * strict ownership. For example, the prefix `google-` is reserved exclusively
+     * for first-party Google publishers to prevent namespace squatting.
+     * Example: `urn:skill:google-workspace:create-docs`
+     * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSkillId() { + skillId_ = getDefaultInstance().getSkillId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. A stable, globally unique logical identifier for the skill.
+     * It is securely constructed by the backend by combining the associated
+     * `publisher`'s verified namespace and the skill's resource ID to enforce
+     * strict ownership. For example, the prefix `google-` is reserved exclusively
+     * for first-party Google publishers to prevent namespace squatting.
+     * Example: `urn:skill:google-workspace:create-docs`
+     * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for skillId to set. + * @return This builder for chaining. + */ + public Builder setSkillIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + skillId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + 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. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. Create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000800); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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. Update time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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 publisher_ = ""; + + /** + * + * + *
+     * Optional. The publisher resource associated with this skill.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * The publisher dictates the allowed namespace prefixes for the skill's name
+     * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+     * prefix).
+     * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The publisher. + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The publisher resource associated with this skill.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * The publisher dictates the allowed namespace prefixes for the skill's name
+     * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+     * prefix).
+     * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for publisher. + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The publisher resource associated with this skill.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * The publisher dictates the allowed namespace prefixes for the skill's name
+     * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+     * prefix).
+     * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + publisher_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The publisher resource associated with this skill.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * The publisher dictates the allowed namespace prefixes for the skill's name
+     * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+     * prefix).
+     * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPublisher() { + publisher_ = getDefaultInstance().getPublisher(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The publisher resource associated with this skill.
+     * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+     * The publisher dictates the allowed namespace prefixes for the skill's name
+     * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+     * prefix).
+     * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publisher_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.SkillRevision initialRevision_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder> + initialRevisionBuilder_; + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the initialRevision field is set. + */ + public boolean hasInitialRevision() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialRevision. + */ + public com.google.cloud.agentregistry.v1.SkillRevision getInitialRevision() { + if (initialRevisionBuilder_ == null) { + return initialRevision_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance() + : initialRevision_; + } else { + return initialRevisionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setInitialRevision(com.google.cloud.agentregistry.v1.SkillRevision value) { + if (initialRevisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialRevision_ = value; + } else { + initialRevisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setInitialRevision( + com.google.cloud.agentregistry.v1.SkillRevision.Builder builderForValue) { + if (initialRevisionBuilder_ == null) { + initialRevision_ = builderForValue.build(); + } else { + initialRevisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeInitialRevision(com.google.cloud.agentregistry.v1.SkillRevision value) { + if (initialRevisionBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && initialRevision_ != null + && initialRevision_ + != com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance()) { + getInitialRevisionBuilder().mergeFrom(value); + } else { + initialRevision_ = value; + } + } else { + initialRevisionBuilder_.mergeFrom(value); + } + if (initialRevision_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearInitialRevision() { + bitField0_ = (bitField0_ & ~0x00002000); + initialRevision_ = null; + if (initialRevisionBuilder_ != null) { + initialRevisionBuilder_.dispose(); + initialRevisionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.SkillRevision.Builder getInitialRevisionBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetInitialRevisionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getInitialRevisionOrBuilder() { + if (initialRevisionBuilder_ != null) { + return initialRevisionBuilder_.getMessageOrBuilder(); + } else { + return initialRevision_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance() + : initialRevision_; + } + } + + /** + * + * + *
+     * Optional. Input only. Optional nested initial revision payload to support
+     * standard one-shot creation. The server processes this field on input during
+     * creation but must never return it in responses.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder> + internalGetInitialRevisionFieldBuilder() { + if (initialRevisionBuilder_ == null) { + initialRevisionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision, + com.google.cloud.agentregistry.v1.SkillRevision.Builder, + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder>( + getInitialRevision(), getParentForChildren(), isClean()); + initialRevision_ = null; + } + return initialRevisionBuilder_; + } + + private com.google.cloud.agentregistry.v1.ScanningConfig scanningConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.ScanningConfig, + com.google.cloud.agentregistry.v1.ScanningConfig.Builder, + com.google.cloud.agentregistry.v1.ScanningConfigOrBuilder> + scanningConfigBuilder_; + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scanningConfig field is set. + */ + public boolean hasScanningConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scanningConfig. + */ + public com.google.cloud.agentregistry.v1.ScanningConfig getScanningConfig() { + if (scanningConfigBuilder_ == null) { + return scanningConfig_ == null + ? com.google.cloud.agentregistry.v1.ScanningConfig.getDefaultInstance() + : scanningConfig_; + } else { + return scanningConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScanningConfig(com.google.cloud.agentregistry.v1.ScanningConfig value) { + if (scanningConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scanningConfig_ = value; + } else { + scanningConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScanningConfig( + com.google.cloud.agentregistry.v1.ScanningConfig.Builder builderForValue) { + if (scanningConfigBuilder_ == null) { + scanningConfig_ = builderForValue.build(); + } else { + scanningConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScanningConfig(com.google.cloud.agentregistry.v1.ScanningConfig value) { + if (scanningConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && scanningConfig_ != null + && scanningConfig_ + != com.google.cloud.agentregistry.v1.ScanningConfig.getDefaultInstance()) { + getScanningConfigBuilder().mergeFrom(value); + } else { + scanningConfig_ = value; + } + } else { + scanningConfigBuilder_.mergeFrom(value); + } + if (scanningConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScanningConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + scanningConfig_ = null; + if (scanningConfigBuilder_ != null) { + scanningConfigBuilder_.dispose(); + scanningConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.ScanningConfig.Builder getScanningConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetScanningConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.ScanningConfigOrBuilder getScanningConfigOrBuilder() { + if (scanningConfigBuilder_ != null) { + return scanningConfigBuilder_.getMessageOrBuilder(); + } else { + return scanningConfig_ == null + ? com.google.cloud.agentregistry.v1.ScanningConfig.getDefaultInstance() + : scanningConfig_; + } + } + + /** + * + * + *
+     * Optional. Optional. Scanning configuration for the skill.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.ScanningConfig, + com.google.cloud.agentregistry.v1.ScanningConfig.Builder, + com.google.cloud.agentregistry.v1.ScanningConfigOrBuilder> + internalGetScanningConfigFieldBuilder() { + if (scanningConfigBuilder_ == null) { + scanningConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.ScanningConfig, + com.google.cloud.agentregistry.v1.ScanningConfig.Builder, + com.google.cloud.agentregistry.v1.ScanningConfigOrBuilder>( + getScanningConfig(), getParentForChildren(), isClean()); + scanningConfig_ = null; + } + return scanningConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Skill) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Skill) + private static final com.google.cloud.agentregistry.v1.Skill DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Skill(); + } + + public static com.google.cloud.agentregistry.v1.Skill getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Skill 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.agentregistry.v1.Skill getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpec.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpec.java new file mode 100644 index 000000000000..ef86da018def --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpec.java @@ -0,0 +1,1466 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill_encryption_spec.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Once the SkillEncryptionSpec is configured, new Skill payloads are protected
+ * using the provided customer-managed encryption key instead of a
+ * Google-managed encryption key.
+ *
+ * SkillEncryptionSpec cannot be set if any Skills have already been created
+ * in the project and location.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SkillEncryptionSpec} + */ +@com.google.protobuf.Generated +public final class SkillEncryptionSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SkillEncryptionSpec) + SkillEncryptionSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SkillEncryptionSpec"); + } + + // Use SkillEncryptionSpec.newBuilder() to construct. + private SkillEncryptionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SkillEncryptionSpec() { + name_ = ""; + cryptoKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillEncryptionSpecProto + .internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillEncryptionSpecProto + .internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SkillEncryptionSpec.class, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of the SkillEncryptionSpec.
+   * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+   * 
+ * + * 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 the SkillEncryptionSpec.
+   * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+   * 
+ * + * 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 CRYPTO_KEY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cryptoKeyName_ = ""; + + /** + * + * + *
+   * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+   * payloads in this project and location.
+   * This field can be set or updated only when no Skills exist in the target
+   * project and location. Once any Skill exists in the location, updating this
+   * field is rejected with `FAILED_PRECONDITION`.
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+   * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cryptoKeyName. + */ + @java.lang.Override + public java.lang.String getCryptoKeyName() { + java.lang.Object ref = cryptoKeyName_; + 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(); + cryptoKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+   * payloads in this project and location.
+   * This field can be set or updated only when no Skills exist in the target
+   * project and location. Once any Skill exists in the location, updating this
+   * field is rejected with `FAILED_PRECONDITION`.
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+   * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cryptoKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCryptoKeyNameBytes() { + java.lang.Object ref = cryptoKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cryptoKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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. Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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. Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Most recent update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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. Most recent update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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. Most recent update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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(cryptoKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, cryptoKeyName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + 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(cryptoKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, cryptoKeyName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + 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.agentregistry.v1.SkillEncryptionSpec)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SkillEncryptionSpec other = + (com.google.cloud.agentregistry.v1.SkillEncryptionSpec) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCryptoKeyName().equals(other.getCryptoKeyName())) 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 (!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) + CRYPTO_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCryptoKeyName().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec 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.agentregistry.v1.SkillEncryptionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec 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.agentregistry.v1.SkillEncryptionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec 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.agentregistry.v1.SkillEncryptionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec 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.agentregistry.v1.SkillEncryptionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec 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.agentregistry.v1.SkillEncryptionSpec 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; + } + + /** + * + * + *
+   * Once the SkillEncryptionSpec is configured, new Skill payloads are protected
+   * using the provided customer-managed encryption key instead of a
+   * Google-managed encryption key.
+   *
+   * SkillEncryptionSpec cannot be set if any Skills have already been created
+   * in the project and location.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SkillEncryptionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SkillEncryptionSpec) + com.google.cloud.agentregistry.v1.SkillEncryptionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillEncryptionSpecProto + .internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillEncryptionSpecProto + .internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SkillEncryptionSpec.class, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SkillEncryptionSpec.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + cryptoKeyName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillEncryptionSpecProto + .internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillEncryptionSpec getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SkillEncryptionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillEncryptionSpec build() { + com.google.cloud.agentregistry.v1.SkillEncryptionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillEncryptionSpec buildPartial() { + com.google.cloud.agentregistry.v1.SkillEncryptionSpec result = + new com.google.cloud.agentregistry.v1.SkillEncryptionSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.SkillEncryptionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cryptoKeyName_ = cryptoKeyName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.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.agentregistry.v1.SkillEncryptionSpec) { + return mergeFrom((com.google.cloud.agentregistry.v1.SkillEncryptionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SkillEncryptionSpec other) { + if (other == com.google.cloud.agentregistry.v1.SkillEncryptionSpec.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCryptoKeyName().isEmpty()) { + cryptoKeyName_ = other.cryptoKeyName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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: + { + cryptoKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Resource name of the SkillEncryptionSpec.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+     * 
+ * + * 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 the SkillEncryptionSpec.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+     * 
+ * + * 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 the SkillEncryptionSpec.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+     * 
+ * + * 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 the SkillEncryptionSpec.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+     * 
+ * + * 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 the SkillEncryptionSpec.
+     * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+     * 
+ * + * 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 cryptoKeyName_ = ""; + + /** + * + * + *
+     * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+     * payloads in this project and location.
+     * This field can be set or updated only when no Skills exist in the target
+     * project and location. Once any Skill exists in the location, updating this
+     * field is rejected with `FAILED_PRECONDITION`.
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+     * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cryptoKeyName. + */ + public java.lang.String getCryptoKeyName() { + java.lang.Object ref = cryptoKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cryptoKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+     * payloads in this project and location.
+     * This field can be set or updated only when no Skills exist in the target
+     * project and location. Once any Skill exists in the location, updating this
+     * field is rejected with `FAILED_PRECONDITION`.
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+     * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cryptoKeyName. + */ + public com.google.protobuf.ByteString getCryptoKeyNameBytes() { + java.lang.Object ref = cryptoKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cryptoKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+     * payloads in this project and location.
+     * This field can be set or updated only when no Skills exist in the target
+     * project and location. Once any Skill exists in the location, updating this
+     * field is rejected with `FAILED_PRECONDITION`.
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+     * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The cryptoKeyName to set. + * @return This builder for chaining. + */ + public Builder setCryptoKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cryptoKeyName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+     * payloads in this project and location.
+     * This field can be set or updated only when no Skills exist in the target
+     * project and location. Once any Skill exists in the location, updating this
+     * field is rejected with `FAILED_PRECONDITION`.
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+     * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCryptoKeyName() { + cryptoKeyName_ = getDefaultInstance().getCryptoKeyName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+     * payloads in this project and location.
+     * This field can be set or updated only when no Skills exist in the target
+     * project and location. Once any Skill exists in the location, updating this
+     * field is rejected with `FAILED_PRECONDITION`.
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+     * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cryptoKeyName to set. + * @return This builder for chaining. + */ + public Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cryptoKeyName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Most recent update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.SkillEncryptionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SkillEncryptionSpec) + private static final com.google.cloud.agentregistry.v1.SkillEncryptionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SkillEncryptionSpec(); + } + + public static com.google.cloud.agentregistry.v1.SkillEncryptionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkillEncryptionSpec 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.agentregistry.v1.SkillEncryptionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecName.java new file mode 100644 index 000000000000..f06d734291ad --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecName.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class SkillEncryptionSpecName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/skillEncryptionSpec"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected SkillEncryptionSpecName() { + project = null; + location = null; + } + + private SkillEncryptionSpecName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SkillEncryptionSpecName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static @Nullable SkillEncryptionSpecName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "SkillEncryptionSpecName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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<@Nullable SkillEncryptionSpecName> values) { + List list = new ArrayList<>(values.size()); + for (SkillEncryptionSpecName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SkillEncryptionSpecName that = ((SkillEncryptionSpecName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}/skillEncryptionSpec. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(SkillEncryptionSpecName skillEncryptionSpecName) { + this.project = skillEncryptionSpecName.project; + this.location = skillEncryptionSpecName.location; + } + + public SkillEncryptionSpecName build() { + return new SkillEncryptionSpecName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecOrBuilder.java new file mode 100644 index 000000000000..85e090053847 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecOrBuilder.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/agentregistry/v1/skill_encryption_spec.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SkillEncryptionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SkillEncryptionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the SkillEncryptionSpec.
+   * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of the SkillEncryptionSpec.
+   * Format: `projects/{project}/locations/{location}/skillEncryptionSpec`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+   * payloads in this project and location.
+   * This field can be set or updated only when no Skills exist in the target
+   * project and location. Once any Skill exists in the location, updating this
+   * field is rejected with `FAILED_PRECONDITION`.
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+   * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cryptoKeyName. + */ + java.lang.String getCryptoKeyName(); + + /** + * + * + *
+   * Required. The Cloud KMS CryptoKey resource name used to protect Skill
+   * payloads in this project and location.
+   * This field can be set or updated only when no Skills exist in the target
+   * project and location. Once any Skill exists in the location, updating this
+   * field is rejected with `FAILED_PRECONDITION`.
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}`
+   * 
+ * + * + * string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cryptoKeyName. + */ + com.google.protobuf.ByteString getCryptoKeyNameBytes(); + + /** + * + * + *
+   * Output only. Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Most recent update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Most recent update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Most recent update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecProto.java new file mode 100644 index 000000000000..f6333b99d3e1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillEncryptionSpecProto.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/cloud/agentregistry/v1/skill_encryption_spec.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class SkillEncryptionSpecProto extends com.google.protobuf.GeneratedFile { + private SkillEncryptionSpecProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SkillEncryptionSpecProto"); + } + + 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_agentregistry_v1_SkillEncryptionSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/agentregistry/v1/skill_en" + + "cryption_spec.proto\022\035google.cloud.agentr" + + "egistry.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\375\002\n\023SkillEncrypt" + + "ionSpec\022\022\n\004name\030\001 \001(\tB\004\342A\001\010\022C\n\017crypto_ke" + + "y_name\030\002 \001(\tB*\342A\001\002\372A#\n!cloudkms.googleap" + + "is.com/CryptoKey\0225\n\013create_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\004\342A\001\003\0225\n\013updat" + + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003:\236\001\352A\232\001\n0agentregistry.googleapis." + + "com/SkillEncryptionSpec\022;projects/{proje" + + "ct}/locations/{location}/skillEncryption" + + "Spec*\024skillEncryptionSpecs2\023skillEncrypt" + + "ionSpecB\346\002\n!com.google.cloud.agentregist" + + "ry.v1B\030SkillEncryptionSpecProtoP\001ZGcloud" + + ".google.com/go/agentregistry/apiv1/agent" + + "registrypb;agentregistrypb\252\002\035Google.Clou" + + "d.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentR" + + "egistry\\V1\352\002 Google::Cloud::AgentRegistr" + + "y::V1\352Ax\n!cloudkms.googleapis.com/Crypto" + + "Key\022Sprojects/{project}/locations/{locat" + + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" + + "pto_key}b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SkillEncryptionSpec_descriptor, + new java.lang.String[] { + "Name", "CryptoKeyName", "CreateTime", "UpdateTime", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.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); + registry.add(com.google.api.ResourceProto.resourceDefinition); + 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillName.java new file mode 100644 index 000000000000..fc13c52425f7 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class SkillName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SKILL = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/skills/{skill}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String skill; + + @Deprecated + protected SkillName() { + project = null; + location = null; + skill = null; + } + + private SkillName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + skill = Preconditions.checkNotNull(builder.getSkill()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSkill() { + return skill; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SkillName of(String project, String location, String skill) { + return newBuilder().setProject(project).setLocation(location).setSkill(skill).build(); + } + + public static String format(String project, String location, String skill) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSkill(skill) + .build() + .toString(); + } + + public static @Nullable SkillName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SKILL.validatedMatch( + formattedString, "SkillName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("skill")); + } + + 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<@Nullable SkillName> values) { + List list = new ArrayList<>(values.size()); + for (SkillName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SKILL.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 (skill != null) { + fieldMapBuilder.put("skill", skill); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SKILL.instantiate( + "project", project, "location", location, "skill", skill); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SkillName that = ((SkillName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.skill, that.skill); + } + 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(skill); + return h; + } + + /** Builder for projects/{project}/locations/{location}/skills/{skill}. */ + public static class Builder { + private String project; + private String location; + private String skill; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSkill() { + return skill; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSkill(String skill) { + this.skill = skill; + return this; + } + + private Builder(SkillName skillName) { + this.project = skillName.project; + this.location = skillName.location; + this.skill = skillName.skill; + } + + public SkillName build() { + return new SkillName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillOrBuilder.java new file mode 100644 index 000000000000..970bff945aac --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillOrBuilder.java @@ -0,0 +1,568 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SkillOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Skill) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the Skill.
+   * Format: `projects/{project}/locations/{location}/skills/{skill}`
+   * The `{skill}` segment acts as the resource ID. If the skill is associated
+   * with a Publisher, this segment typically uses a hyphenated namespace prefix
+   * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of the Skill.
+   * Format: `projects/{project}/locations/{location}/skills/{skill}`
+   * The `{skill}` segment acts as the resource ID. If the skill is associated
+   * with a Publisher, this segment typically uses a hyphenated namespace prefix
+   * corresponding to the publisher (e.g., `google-workspace-create-docs`).
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the logical
+   * container.
+   * 
+ * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the logical
+   * container.
+   * 
+ * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Optional. Human-readable display name of the skill.
+   * Maximum length is 128 characters.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. Human-readable display name of the skill.
+   * Maximum length is 128 characters.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Brief summary describing the capabilities of the skill.
+   * Maximum length is 2048 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Brief summary describing the capabilities of the skill.
+   * Maximum length is 2048 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.Type type = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.agentregistry.v1.Skill.Type getType(); + + /** + * + * + *
+   * Output only. The system-managed state of the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The system-managed state of the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.agentregistry.v1.Skill.State getState(); + + /** + * + * + *
+   * Required. User-managed target state of the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for targetState. + */ + int getTargetStateValue(); + + /** + * + * + *
+   * Required. User-managed target state of the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Skill.TargetState target_state = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetState. + */ + com.google.cloud.agentregistry.v1.Skill.TargetState getTargetState(); + + /** + * + * + *
+   * Optional. The full resource name of the revision currently served by
+   * default (floating track).
+   * Format:
+   * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+   * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultRevision. + */ + java.lang.String getDefaultRevision(); + + /** + * + * + *
+   * Optional. The full resource name of the revision currently served by
+   * default (floating track).
+   * Format:
+   * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+   * 
+ * + * + * string default_revision = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultRevision. + */ + com.google.protobuf.ByteString getDefaultRevisionBytes(); + + /** + * + * + *
+   * Output only. Lightweight frontmatter metadata attributes copied from the
+   * default revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the frontmatter field is set. + */ + boolean hasFrontmatter(); + + /** + * + * + *
+   * Output only. Lightweight frontmatter metadata attributes copied from the
+   * default revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The frontmatter. + */ + com.google.cloud.agentregistry.v1.Frontmatter getFrontmatter(); + + /** + * + * + *
+   * Output only. Lightweight frontmatter metadata attributes copied from the
+   * default revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder getFrontmatterOrBuilder(); + + /** + * + * + *
+   * Output only. A stable, globally unique logical identifier for the skill.
+   * It is securely constructed by the backend by combining the associated
+   * `publisher`'s verified namespace and the skill's resource ID to enforce
+   * strict ownership. For example, the prefix `google-` is reserved exclusively
+   * for first-party Google publishers to prevent namespace squatting.
+   * Example: `urn:skill:google-workspace:create-docs`
+   * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The skillId. + */ + java.lang.String getSkillId(); + + /** + * + * + *
+   * Output only. A stable, globally unique logical identifier for the skill.
+   * It is securely constructed by the backend by combining the associated
+   * `publisher`'s verified namespace and the skill's resource ID to enforce
+   * strict ownership. For example, the prefix `google-` is reserved exclusively
+   * for first-party Google publishers to prevent namespace squatting.
+   * Example: `urn:skill:google-workspace:create-docs`
+   * 
+ * + * string skill_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for skillId. + */ + com.google.protobuf.ByteString getSkillIdBytes(); + + /** + * + * + *
+   * Output only. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Update time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The publisher resource associated with this skill.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * The publisher dictates the allowed namespace prefixes for the skill's name
+   * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+   * prefix).
+   * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The publisher. + */ + java.lang.String getPublisher(); + + /** + * + * + *
+   * Optional. The publisher resource associated with this skill.
+   * Format: `projects/{project}/locations/{location}/publishers/{publisher}`
+   * The publisher dictates the allowed namespace prefixes for the skill's name
+   * and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*`
+   * prefix).
+   * 
+ * + * + * string publisher = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for publisher. + */ + com.google.protobuf.ByteString getPublisherBytes(); + + /** + * + * + *
+   * Optional. Input only. Optional nested initial revision payload to support
+   * standard one-shot creation. The server processes this field on input during
+   * creation but must never return it in responses.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the initialRevision field is set. + */ + boolean hasInitialRevision(); + + /** + * + * + *
+   * Optional. Input only. Optional nested initial revision payload to support
+   * standard one-shot creation. The server processes this field on input during
+   * creation but must never return it in responses.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialRevision. + */ + com.google.cloud.agentregistry.v1.SkillRevision getInitialRevision(); + + /** + * + * + *
+   * Optional. Input only. Optional nested initial revision payload to support
+   * standard one-shot creation. The server processes this field on input during
+   * creation but must never return it in responses.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision initial_revision = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder getInitialRevisionOrBuilder(); + + /** + * + * + *
+   * Optional. Optional. Scanning configuration for the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scanningConfig field is set. + */ + boolean hasScanningConfig(); + + /** + * + * + *
+   * Optional. Optional. Scanning configuration for the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scanningConfig. + */ + com.google.cloud.agentregistry.v1.ScanningConfig getScanningConfig(); + + /** + * + * + *
+   * Optional. Optional. Scanning configuration for the skill.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ScanningConfig scanning_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.ScanningConfigOrBuilder getScanningConfigOrBuilder(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillProto.java new file mode 100644 index 000000000000..0b070f08a272 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillProto.java @@ -0,0 +1,353 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class SkillProto extends com.google.protobuf.GeneratedFile { + private SkillProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SkillProto"); + } + + 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_agentregistry_v1_Skill_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Skill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ScanningConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ScanningConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Frontmatter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Frontmatter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Frontmatter_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Frontmatter_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_SkillRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SkillRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Publisher_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Publisher_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/agentregistry/v1/skill.pr" + + "oto\022\035google.cloud.agentregistry.v1\032\037goog" + + "le/api/field_behavior.proto\032\033google/api/" + + "field_info.proto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\272\n\n" + + "\005Skill\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\031\n" + + "\003uid\030\002 \001(\tB\014\342A\001\003\342\214\317\327\010\002\010\001\022\032\n" + + "\014display_name\030\003 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\004 \001(\tB\004\342A\001\001\022=\n" + + "\004type\030\005 \001" + + "(\0162).google.cloud.agentregistry.v1.Skill.TypeB\004\342A\001\002\022?\n" + + "\005state\030\006" + + " \001(\0162*.google.cloud.agentregistry.v1.Skill.StateB\004\342A\001\003\022L\n" + + "\014target_state\030\007" + + " \001(\01620.google.cloud.agentregistry.v1.Skill.TargetStateB\004\342A\001\002\022M\n" + + "\020default_revision\030\010 \001(\tB3\342A\001\001\372A,\n" + + "*agentregistry.googleapis.com/SkillRevision\022E\n" + + "\013frontmatter\030\t" + + " \001(\0132*.google.cloud.agentregistry.v1.FrontmatterB\004\342A\001\003\022\026\n" + + "\010skill_id\030\021 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\014" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022B\n" + + "\tpublisher\030\017 \001(\tB/\342A\001\001\372A(\n" + + "&agentregistry.googleapis.com/Publisher\022M\n" + + "\020initial_revision\030\016" + + " \001(\0132,.google.cloud.agentregistry.v1.SkillRevisionB\005\342A\002\001\004\022L\n" + + "\017scanning_config\030\024" + + " \001(\0132-.google.cloud.agentregistry.v1.ScanningConfigB\004\342A\001\001\"(\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006SIMPLE\020\001\"\255\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\022\n" + + "\016STATE_CREATING\020\001\022\017\n" + + "\013STATE_DRAFT\020\002\022\020\n" + + "\014STATE_ACTIVE\020\003\022\022\n" + + "\016STATE_DISABLED\020\004\022\024\n" + + "\020STATE_DEPRECATED\020\005\022\030\n" + + "\024STATE_DECOMMISSIONED\020\006\022\022\n" + + "\016STATE_DELETING\020\007\"\265\001\n" + + "\013TargetState\022\034\n" + + "\030TARGET_STATE_UNSPECIFIED\020\000\022\026\n" + + "\022TARGET_STATE_DRAFT\020\001\022\027\n" + + "\023TARGET_STATE_ACTIVE\020\002\022\031\n" + + "\025TARGET_STATE_DISABLED\020\003\022\033\n" + + "\027TARGET_STATE_DEPRECATED\020\004\022\037\n" + + "\033TARGET_STATE_DECOMMISSIONED\020\005:n\352Ak\n" + + "\"agentregistry.googleapis.com/Skill\0226projects/{pr" + + "oject}/locations/{location}/skills/{skill}*\006skills2\005skill\"\273\001\n" + + "\016ScanningConfig\022J\n" + + "\006policy\030\001" + + " \001(\01624.google.cloud.agentregistry.v1.ScanningConfig.PolicyB\004\342A\001\001\"]\n" + + "\006Policy\022\026\n" + + "\022POLICY_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\024\n" + + "\020ENABLED_BLOCKING\020\002\022\027\n" + + "\023ENABLED_NONBLOCKING\020\003\"\363\001\n" + + "\013Frontmatter\022\022\n" + + "\004name\030\005 \001(\tB\004\342A\001\002\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\002\022\025\n" + + "\007license\030\006 \001(\tB\004\342A\001\001\022\033\n\r" + + "compatibility\030\003 \001(\tB\004\342A\001\001\022P\n" + + "\010metadata\030\004 \003(\01328.google.cloud.agen" + + "tregistry.v1.Frontmatter.MetadataEntryB\004\342A\001\001\032/\n\r" + + "MetadataEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"5\n" + + "\023ArchiveUploadSource\022\036\n" + + "\017archive_content\030\001 \001(\014B\005\342A\002\002\004\"\244\t\n\r" + + "SkillRevision\022E\n\n" + + "gcs_source\030\t" + + " \001(\0132(.google.cloud.agentregistry.v1.GcsSourceB\005\342A\002\005\001H\000\022Z\n" + + "\025archive_upload_source\030\014 \001(\01322.google.cl" + + "oud.agentregistry.v1.ArchiveUploadSourceB\005\342A\002\005\001H\000\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022G\n" + + "\005state\030\002" + + " \001(\01622.google.cloud.agentregistry.v1.SkillRevision.StateB\004\342A\001\003\022\031\n" + + "\013sha256_hash\030\003 \001(\tB\004\342A\001\003\022E\n" + + "\013frontmatter\030\004 \001(\0132*.google." + + "cloud.agentregistry.v1.FrontmatterB\004\342A\001\003\0225\n" + + "\013create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\030\n\n" + + "size_bytes\030\013 \001(\003B\004\342A\001\003\022\031\n" + + "\003uid\030\016 \001(\tB\014\342A\001\003\342\214\317\327\010\002\010\001\022R\n" + + "\013scan_result\030\017" + + " \001(\01327.google.cloud.agentregistry.v1.SkillRevision.ScanResultB\004\342A\001\003\032\363\002\n\n" + + "ScanResult\022[\n\n" + + "scan_state\030\001 \001(\0162A.google.clo" + + "ud.agentregistry.v1.SkillRevision.ScanResult.ScanStateB\004\342A\001\003\0223\n" + + "\tscan_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\033\n\r" + + "error_message\030\003 \001(\tB\004\342A\001\003\022?\n" + + "\010findings\030\004 \003(\tB-\342A\001\003\372A&\n" + + "$agentregistry.googleapis.com/Finding\"u\n" + + "\tScanState\022\032\n" + + "\026SCAN_STATE_UNSPECIFIED\020\000\022\n\n" + + "\006FAILED\020\001\022\026\n" + + "\022UNSUPPORTED_FORMAT\020\002\022\r\n" + + "\tSUCCEEDED\020\003\022\014\n" + + "\010DISABLED\020\004\022\013\n" + + "\007RUNNING\020\005\"R\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\n\n" + + "\006FAILED\020\003\022\014\n" + + "\010DELETING\020\004:\234\001\352A\230\001\n" + + "*agentregistry.googleapis.com/SkillRevision\022Kprojects/{project" + + "}/locations/{location}/skills/{skill}/revisions/{revision}*\016skillRevisions2\r" + + "skillRevisionB\010\n" + + "\006source\"8\n" + + "\tGcsSource\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\002\022\030\n\n" + + "generation\030\002 \001(\003B\004\342A\001\001\"\321\003\n" + + "\tPublisher\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\035\n" + + "\017verified_prefix\030\002 \001(\tB\004\342A\001\002\022\032\n" + + "\014display_name\030\003 \001(\tB\004\342A\001\001\022T\n" + + "\016publisher_tier\030\004 \001(\01626.goo" + + "gle.cloud.agentregistry.v1.Publisher.PublisherTierB\004\342A\001\003\022\037\n" + + "\021documentation_uri\030\005 \001(\tB\004\342A\001\001\022\031\n" + + "\013support_uri\030\006 \001(\tB\004\342A\001\001\"^\n\r" + + "PublisherTier\022\036\n" + + "\032PUBLISHER_TIER_UNSPECIFIED\020\000\022\017\n" + + "\013FIRST_PARTY\020\001\022\017\n" + + "\013THIRD_PARTY\020\002\022\013\n" + + "\007PRIVATE\020\003:\202\001\352A\177\n" + + "&agentregistry.googleapis.com/Publisher\022>projects/{project}/l" + + "ocations/{location}/publishers/{publisher}*\n" + + "publishers2\tpublisherB\335\001\n" + + "!com.google.cloud.agentregistry.v1B\n" + + "SkillProtoP\001ZGcloud.google.com/go/agentregistry/apiv1/a" + + "gentregistrypb;agentregistrypb\252\002\035Google." + + "Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::V1b\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(), + }); + internal_static_google_cloud_agentregistry_v1_Skill_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_Skill_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Skill_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "DisplayName", + "Description", + "Type", + "State", + "TargetState", + "DefaultRevision", + "Frontmatter", + "SkillId", + "CreateTime", + "UpdateTime", + "Publisher", + "InitialRevision", + "ScanningConfig", + }); + internal_static_google_cloud_agentregistry_v1_ScanningConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_agentregistry_v1_ScanningConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ScanningConfig_descriptor, + new java.lang.String[] { + "Policy", + }); + internal_static_google_cloud_agentregistry_v1_Frontmatter_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_agentregistry_v1_Frontmatter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Frontmatter_descriptor, + new java.lang.String[] { + "Name", "Description", "License", "Compatibility", "Metadata", + }); + internal_static_google_cloud_agentregistry_v1_Frontmatter_MetadataEntry_descriptor = + internal_static_google_cloud_agentregistry_v1_Frontmatter_descriptor.getNestedType(0); + internal_static_google_cloud_agentregistry_v1_Frontmatter_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Frontmatter_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ArchiveUploadSource_descriptor, + new java.lang.String[] { + "ArchiveContent", + }); + internal_static_google_cloud_agentregistry_v1_SkillRevision_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_agentregistry_v1_SkillRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SkillRevision_descriptor, + new java.lang.String[] { + "GcsSource", + "ArchiveUploadSource", + "Name", + "State", + "Sha256Hash", + "Frontmatter", + "CreateTime", + "SizeBytes", + "Uid", + "ScanResult", + "Source", + }); + internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_descriptor = + internal_static_google_cloud_agentregistry_v1_SkillRevision_descriptor.getNestedType(0); + internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_descriptor, + new java.lang.String[] { + "ScanState", "ScanTime", "ErrorMessage", "Findings", + }); + internal_static_google_cloud_agentregistry_v1_GcsSource_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_agentregistry_v1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GcsSource_descriptor, + new java.lang.String[] { + "Uri", "Generation", + }); + internal_static_google_cloud_agentregistry_v1_Publisher_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_agentregistry_v1_Publisher_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Publisher_descriptor, + new java.lang.String[] { + "Name", + "VerifiedPrefix", + "DisplayName", + "PublisherTier", + "DocumentationUri", + "SupportUri", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.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.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ResourceProto.resource); + 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevision.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevision.java new file mode 100644 index 000000000000..e11850ae2ad3 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevision.java @@ -0,0 +1,4966 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Represents an immutable, versioned snapshot of a Skill package.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SkillRevision} + */ +@com.google.protobuf.Generated +public final class SkillRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SkillRevision) + SkillRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SkillRevision"); + } + + // Use SkillRevision.newBuilder() to construct. + private SkillRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SkillRevision() { + name_ = ""; + state_ = 0; + sha256Hash_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SkillRevision.class, + com.google.cloud.agentregistry.v1.SkillRevision.Builder.class); + } + + /** + * + * + *
+   * System-managed computed state.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.SkillRevision.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The revision is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The revision is active.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The revision failed to compile or ingest.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + /** + * + * + *
+     * The revision is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The revision is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * The revision is active.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The revision failed to compile or ingest.
+     * 
+ * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + /** + * + * + *
+     * The revision is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_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 CREATING; + case 2: + return ACTIVE; + case 3: + return FAILED; + case 4: + return DELETING; + 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.agentregistry.v1.SkillRevision.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.agentregistry.v1.SkillRevision.State) + } + + public interface ScanResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SkillRevision.ScanResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The state of the vulnerability check.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for scanState. + */ + int getScanStateValue(); + + /** + * + * + *
+     * Output only. The state of the vulnerability check.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanState. + */ + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState getScanState(); + + /** + * + * + *
+     * Output only. The time when the scan was completed.
+     * 
+ * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the scanTime field is set. + */ + boolean hasScanTime(); + + /** + * + * + *
+     * Output only. The time when the scan was completed.
+     * 
+ * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanTime. + */ + com.google.protobuf.Timestamp getScanTime(); + + /** + * + * + *
+     * Output only. The time when the scan was completed.
+     * 
+ * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getScanTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The error message if the scan failed.
+     * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
+     * Output only. The error message if the scan failed.
+     * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); + + /** + * + * + *
+     * Output only. The finding resource names for the skill revision.
+     * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the findings. + */ + java.util.List getFindingsList(); + + /** + * + * + *
+     * Output only. The finding resource names for the skill revision.
+     * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of findings. + */ + int getFindingsCount(); + + /** + * + * + *
+     * Output only. The finding resource names for the skill revision.
+     * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The findings at the given index. + */ + java.lang.String getFindings(int index); + + /** + * + * + *
+     * Output only. The finding resource names for the skill revision.
+     * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the findings at the given index. + */ + com.google.protobuf.ByteString getFindingsBytes(int index); + } + + /** + * + * + *
+   * Scan result of the skill revision.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SkillRevision.ScanResult} + */ + public static final class ScanResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SkillRevision.ScanResult) + ScanResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ScanResult"); + } + + // Use ScanResult.newBuilder() to construct. + private ScanResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScanResult() { + scanState_ = 0; + errorMessage_ = ""; + findings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.class, + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.Builder.class); + } + + /** + * + * + *
+     * Represents the lifecycle state of the vulnerability scan.
+     * 
+ * + * Protobuf enum {@code google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState} + */ + public enum ScanState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Should not be used.
+       * 
+ * + * SCAN_STATE_UNSPECIFIED = 0; + */ + SCAN_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * The underlying scanning system failed to execute the scan.
+       * 
+ * + * FAILED = 1; + */ + FAILED(1), + /** + * + * + *
+       * The uploaded artifact format is unsupported by the scanning system.
+       * 
+ * + * UNSUPPORTED_FORMAT = 2; + */ + UNSUPPORTED_FORMAT(2), + /** + * + * + *
+       * The scan has completed successfully.
+       * 
+ * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
+       * The scan was disabled.
+       * 
+ * + * DISABLED = 4; + */ + DISABLED(4), + /** + * + * + *
+       * The scan is running.
+       * 
+ * + * RUNNING = 5; + */ + RUNNING(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ScanState"); + } + + /** + * + * + *
+       * Should not be used.
+       * 
+ * + * SCAN_STATE_UNSPECIFIED = 0; + */ + public static final int SCAN_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The underlying scanning system failed to execute the scan.
+       * 
+ * + * FAILED = 1; + */ + public static final int FAILED_VALUE = 1; + + /** + * + * + *
+       * The uploaded artifact format is unsupported by the scanning system.
+       * 
+ * + * UNSUPPORTED_FORMAT = 2; + */ + public static final int UNSUPPORTED_FORMAT_VALUE = 2; + + /** + * + * + *
+       * The scan has completed successfully.
+       * 
+ * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
+       * The scan was disabled.
+       * 
+ * + * DISABLED = 4; + */ + public static final int DISABLED_VALUE = 4; + + /** + * + * + *
+       * The scan is running.
+       * 
+ * + * RUNNING = 5; + */ + public static final int RUNNING_VALUE = 5; + + 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 ScanState 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 ScanState forNumber(int value) { + switch (value) { + case 0: + return SCAN_STATE_UNSPECIFIED; + case 1: + return FAILED; + case 2: + return UNSUPPORTED_FORMAT; + case 3: + return SUCCEEDED; + case 4: + return DISABLED; + case 5: + return RUNNING; + 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 ScanState findValueByNumber(int number) { + return ScanState.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.agentregistry.v1.SkillRevision.ScanResult.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ScanState[] VALUES = values(); + + public static ScanState 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 ScanState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState) + } + + private int bitField0_; + public static final int SCAN_STATE_FIELD_NUMBER = 1; + private int scanState_ = 0; + + /** + * + * + *
+     * Output only. The state of the vulnerability check.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for scanState. + */ + @java.lang.Override + public int getScanStateValue() { + return scanState_; + } + + /** + * + * + *
+     * Output only. The state of the vulnerability check.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanState. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState getScanState() { + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState result = + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState.forNumber( + scanState_); + return result == null + ? com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState.UNRECOGNIZED + : result; + } + + public static final int SCAN_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp scanTime_; + + /** + * + * + *
+     * Output only. The time when the scan was completed.
+     * 
+ * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the scanTime field is set. + */ + @java.lang.Override + public boolean hasScanTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The time when the scan was completed.
+     * 
+ * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getScanTime() { + return scanTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scanTime_; + } + + /** + * + * + *
+     * Output only. The time when the scan was completed.
+     * 
+ * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getScanTimeOrBuilder() { + return scanTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scanTime_; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+     * Output only. The error message if the scan failed.
+     * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The error message if the scan failed.
+     * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FINDINGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList findings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Output only. The finding resource names for the skill revision.
+     * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the findings. + */ + public com.google.protobuf.ProtocolStringList getFindingsList() { + return findings_; + } + + /** + * + * + *
+     * Output only. The finding resource names for the skill revision.
+     * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of findings. + */ + public int getFindingsCount() { + return findings_.size(); + } + + /** + * + * + *
+     * Output only. The finding resource names for the skill revision.
+     * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The findings at the given index. + */ + public java.lang.String getFindings(int index) { + return findings_.get(index); + } + + /** + * + * + *
+     * Output only. The finding resource names for the skill revision.
+     * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the findings at the given index. + */ + public com.google.protobuf.ByteString getFindingsBytes(int index) { + return findings_.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 (scanState_ + != com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState + .SCAN_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, scanState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getScanTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, errorMessage_); + } + for (int i = 0; i < findings_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, findings_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scanState_ + != com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState + .SCAN_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scanState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, errorMessage_); + } + { + int dataSize = 0; + for (int i = 0; i < findings_.size(); i++) { + dataSize += computeStringSizeNoTag(findings_.getRaw(i)); + } + size += dataSize; + size += 1 * getFindingsList().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.agentregistry.v1.SkillRevision.ScanResult)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult other = + (com.google.cloud.agentregistry.v1.SkillRevision.ScanResult) obj; + + if (scanState_ != other.scanState_) return false; + if (hasScanTime() != other.hasScanTime()) return false; + if (hasScanTime()) { + if (!getScanTime().equals(other.getScanTime())) return false; + } + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getFindingsList().equals(other.getFindingsList())) 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) + SCAN_STATE_FIELD_NUMBER; + hash = (53 * hash) + scanState_; + if (hasScanTime()) { + hash = (37 * hash) + SCAN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getScanTime().hashCode(); + } + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + if (getFindingsCount() > 0) { + hash = (37 * hash) + FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getFindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult 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.agentregistry.v1.SkillRevision.ScanResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult 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.agentregistry.v1.SkillRevision.ScanResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult 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.agentregistry.v1.SkillRevision.ScanResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult 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.agentregistry.v1.SkillRevision.ScanResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult 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.agentregistry.v1.SkillRevision.ScanResult 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; + } + + /** + * + * + *
+     * Scan result of the skill revision.
+     * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SkillRevision.ScanResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SkillRevision.ScanResult) + com.google.cloud.agentregistry.v1.SkillRevision.ScanResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.class, + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScanTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scanState_ = 0; + scanTime_ = null; + if (scanTimeBuilder_ != null) { + scanTimeBuilder_.dispose(); + scanTimeBuilder_ = null; + } + errorMessage_ = ""; + findings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_ScanResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResult + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResult build() { + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResult buildPartial() { + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult result = + new com.google.cloud.agentregistry.v1.SkillRevision.ScanResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scanState_ = scanState_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scanTime_ = scanTimeBuilder_ == null ? scanTime_ : scanTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.errorMessage_ = errorMessage_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + findings_.makeImmutable(); + result.findings_ = findings_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.SkillRevision.ScanResult) { + return mergeFrom((com.google.cloud.agentregistry.v1.SkillRevision.ScanResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SkillRevision.ScanResult other) { + if (other + == com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.getDefaultInstance()) + return this; + if (other.scanState_ != 0) { + setScanStateValue(other.getScanStateValue()); + } + if (other.hasScanTime()) { + mergeScanTime(other.getScanTime()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.findings_.isEmpty()) { + if (findings_.isEmpty()) { + findings_ = other.findings_; + bitField0_ |= 0x00000008; + } else { + ensureFindingsIsMutable(); + findings_.addAll(other.findings_); + } + 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: + { + scanState_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetScanTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFindingsIsMutable(); + findings_.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 bitField0_; + + private int scanState_ = 0; + + /** + * + * + *
+       * Output only. The state of the vulnerability check.
+       * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for scanState. + */ + @java.lang.Override + public int getScanStateValue() { + return scanState_; + } + + /** + * + * + *
+       * Output only. The state of the vulnerability check.
+       * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for scanState to set. + * @return This builder for chaining. + */ + public Builder setScanStateValue(int value) { + scanState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The state of the vulnerability check.
+       * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanState. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState getScanState() { + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState result = + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState.forNumber( + scanState_); + return result == null + ? com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The state of the vulnerability check.
+       * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The scanState to set. + * @return This builder for chaining. + */ + public Builder setScanState( + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + scanState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The state of the vulnerability check.
+       * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult.ScanState scan_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearScanState() { + bitField0_ = (bitField0_ & ~0x00000001); + scanState_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp scanTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scanTimeBuilder_; + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the scanTime field is set. + */ + public boolean hasScanTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanTime. + */ + public com.google.protobuf.Timestamp getScanTime() { + if (scanTimeBuilder_ == null) { + return scanTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scanTime_; + } else { + return scanTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setScanTime(com.google.protobuf.Timestamp value) { + if (scanTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scanTime_ = value; + } else { + scanTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setScanTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (scanTimeBuilder_ == null) { + scanTime_ = builderForValue.build(); + } else { + scanTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeScanTime(com.google.protobuf.Timestamp value) { + if (scanTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && scanTime_ != null + && scanTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getScanTimeBuilder().mergeFrom(value); + } else { + scanTime_ = value; + } + } else { + scanTimeBuilder_.mergeFrom(value); + } + if (scanTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearScanTime() { + bitField0_ = (bitField0_ & ~0x00000002); + scanTime_ = null; + if (scanTimeBuilder_ != null) { + scanTimeBuilder_.dispose(); + scanTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getScanTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetScanTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getScanTimeOrBuilder() { + if (scanTimeBuilder_ != null) { + return scanTimeBuilder_.getMessageOrBuilder(); + } else { + return scanTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scanTime_; + } + } + + /** + * + * + *
+       * Output only. The time when the scan was completed.
+       * 
+ * + * + * .google.protobuf.Timestamp scan_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetScanTimeFieldBuilder() { + if (scanTimeBuilder_ == null) { + scanTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScanTime(), getParentForChildren(), isClean()); + scanTime_ = null; + } + return scanTimeBuilder_; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+       * Output only. The error message if the scan failed.
+       * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The error message if the scan failed.
+       * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The error message if the scan failed.
+       * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The error message if the scan failed.
+       * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The error message if the scan failed.
+       * 
+ * + * string error_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList findings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFindingsIsMutable() { + if (!findings_.isModifiable()) { + findings_ = new com.google.protobuf.LazyStringArrayList(findings_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the findings. + */ + public com.google.protobuf.ProtocolStringList getFindingsList() { + findings_.makeImmutable(); + return findings_; + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of findings. + */ + public int getFindingsCount() { + return findings_.size(); + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The findings at the given index. + */ + public java.lang.String getFindings(int index) { + return findings_.get(index); + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the findings at the given index. + */ + public com.google.protobuf.ByteString getFindingsBytes(int index) { + return findings_.getByteString(index); + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The findings to set. + * @return This builder for chaining. + */ + public Builder setFindings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The findings to add. + * @return This builder for chaining. + */ + public Builder addFindings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The findings to add. + * @return This builder for chaining. + */ + public Builder addAllFindings(java.lang.Iterable values) { + ensureFindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFindings() { + findings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The finding resource names for the skill revision.
+       * 
+ * + * + * repeated string findings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the findings to add. + * @return This builder for chaining. + */ + public Builder addFindingsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFindingsIsMutable(); + findings_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.SkillRevision.ScanResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SkillRevision.ScanResult) + private static final com.google.cloud.agentregistry.v1.SkillRevision.ScanResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SkillRevision.ScanResult(); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision.ScanResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanResult 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.agentregistry.v1.SkillRevision.ScanResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_SOURCE(9), + ARCHIVE_UPLOAD_SOURCE(12), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 9: + return GCS_SOURCE; + case 12: + return ARCHIVE_UPLOAD_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 9; + + /** + * + * + *
+   * Optional. Immutable. Cloud Storage object generation URI.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 9; + } + + /** + * + * + *
+   * Optional. Immutable. Cloud Storage object generation URI.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.GcsSource getGcsSource() { + if (sourceCase_ == 9) { + return (com.google.cloud.agentregistry.v1.GcsSource) source_; + } + return com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Immutable. Cloud Storage object generation URI.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 9) { + return (com.google.cloud.agentregistry.v1.GcsSource) source_; + } + return com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance(); + } + + public static final int ARCHIVE_UPLOAD_SOURCE_FIELD_NUMBER = 12; + + /** + * + * + *
+   * Optional. Immutable. Direct write-only raw archive upload source.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the archiveUploadSource field is set. + */ + @java.lang.Override + public boolean hasArchiveUploadSource() { + return sourceCase_ == 12; + } + + /** + * + * + *
+   * Optional. Immutable. Direct write-only raw archive upload source.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The archiveUploadSource. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ArchiveUploadSource getArchiveUploadSource() { + if (sourceCase_ == 12) { + return (com.google.cloud.agentregistry.v1.ArchiveUploadSource) source_; + } + return com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Immutable. Direct write-only raw archive upload source.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ArchiveUploadSourceOrBuilder + getArchiveUploadSourceOrBuilder() { + if (sourceCase_ == 12) { + return (com.google.cloud.agentregistry.v1.ArchiveUploadSource) source_; + } + return com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of the SkillRevision.
+   * Format:
+   * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+   * 
+ * + * 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 the SkillRevision.
+   * Format:
+   * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+   * 
+ * + * 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 STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The system-managed lifecycle state of this revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.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 system-managed lifecycle state of this revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.State getState() { + com.google.cloud.agentregistry.v1.SkillRevision.State result = + com.google.cloud.agentregistry.v1.SkillRevision.State.forNumber(state_); + return result == null + ? com.google.cloud.agentregistry.v1.SkillRevision.State.UNRECOGNIZED + : result; + } + + public static final int SHA256_HASH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sha256Hash_ = ""; + + /** + * + * + *
+   * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+   * the payload zip.
+   * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sha256Hash. + */ + @java.lang.Override + public java.lang.String getSha256Hash() { + java.lang.Object ref = sha256Hash_; + 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(); + sha256Hash_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+   * the payload zip.
+   * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sha256Hash. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSha256HashBytes() { + java.lang.Object ref = sha256Hash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sha256Hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FRONTMATTER_FIELD_NUMBER = 4; + private com.google.cloud.agentregistry.v1.Frontmatter frontmatter_; + + /** + * + * + *
+   * Output only. Extracted YAML frontmatter configuration snapshot.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the frontmatter field is set. + */ + @java.lang.Override + public boolean hasFrontmatter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Extracted YAML frontmatter configuration snapshot.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The frontmatter. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Frontmatter getFrontmatter() { + return frontmatter_ == null + ? com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance() + : frontmatter_; + } + + /** + * + * + *
+   * Output only. Extracted YAML frontmatter configuration snapshot.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.FrontmatterOrBuilder getFrontmatterOrBuilder() { + return frontmatter_ == null + ? com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance() + : frontmatter_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Revision creation timestamp.
+   * 
+ * + * .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_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Revision creation timestamp.
+   * 
+ * + * .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. Revision creation timestamp.
+   * 
+ * + * .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 SIZE_BYTES_FIELD_NUMBER = 11; + private long sizeBytes_ = 0L; + + /** + * + * + *
+   * Output only. Size of the compiled zip payload in bytes (assists client
+   * download progress).
+   * 
+ * + * int64 size_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + public static final int UID_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the skill revision.
+   * 
+ * + * + * string uid = 14 [(.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. Universally unique identifier (UUID4) for the skill revision.
+   * 
+ * + * + * string uid = 14 [(.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 SCAN_RESULT_FIELD_NUMBER = 15; + private com.google.cloud.agentregistry.v1.SkillRevision.ScanResult scanResult_; + + /** + * + * + *
+   * Output only. Scan result of the skill revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the scanResult field is set. + */ + @java.lang.Override + public boolean hasScanResult() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Scan result of the skill revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanResult. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResult getScanResult() { + return scanResult_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.getDefaultInstance() + : scanResult_; + } + + /** + * + * + *
+   * Output only. Scan result of the skill revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResultOrBuilder + getScanResultOrBuilder() { + return scanResult_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.getDefaultInstance() + : scanResult_; + } + + 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 (state_ + != com.google.cloud.agentregistry.v1.SkillRevision.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sha256Hash_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, sha256Hash_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getFrontmatter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (sourceCase_ == 9) { + output.writeMessage(9, (com.google.cloud.agentregistry.v1.GcsSource) source_); + } + if (sizeBytes_ != 0L) { + output.writeInt64(11, sizeBytes_); + } + if (sourceCase_ == 12) { + output.writeMessage(12, (com.google.cloud.agentregistry.v1.ArchiveUploadSource) source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, uid_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getScanResult()); + } + 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 (state_ + != com.google.cloud.agentregistry.v1.SkillRevision.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sha256Hash_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, sha256Hash_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFrontmatter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (sourceCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.agentregistry.v1.GcsSource) source_); + } + if (sizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, sizeBytes_); + } + if (sourceCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.agentregistry.v1.ArchiveUploadSource) source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, uid_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getScanResult()); + } + 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.agentregistry.v1.SkillRevision)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SkillRevision other = + (com.google.cloud.agentregistry.v1.SkillRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getSha256Hash().equals(other.getSha256Hash())) return false; + if (hasFrontmatter() != other.hasFrontmatter()) return false; + if (hasFrontmatter()) { + if (!getFrontmatter().equals(other.getFrontmatter())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getSizeBytes() != other.getSizeBytes()) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasScanResult() != other.hasScanResult()) return false; + if (hasScanResult()) { + if (!getScanResult().equals(other.getScanResult())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 9: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 12: + if (!getArchiveUploadSource().equals(other.getArchiveUploadSource())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + SHA256_HASH_FIELD_NUMBER; + hash = (53 * hash) + getSha256Hash().hashCode(); + if (hasFrontmatter()) { + hash = (37 * hash) + FRONTMATTER_FIELD_NUMBER; + hash = (53 * hash) + getFrontmatter().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasScanResult()) { + hash = (37 * hash) + SCAN_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getScanResult().hashCode(); + } + switch (sourceCase_) { + case 9: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 12: + hash = (37 * hash) + ARCHIVE_UPLOAD_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getArchiveUploadSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.SkillRevision parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision 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.agentregistry.v1.SkillRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision 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.agentregistry.v1.SkillRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision 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.agentregistry.v1.SkillRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision 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.agentregistry.v1.SkillRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision 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.agentregistry.v1.SkillRevision 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 an immutable, versioned snapshot of a Skill package.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.SkillRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SkillRevision) + com.google.cloud.agentregistry.v1.SkillRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SkillRevision.class, + com.google.cloud.agentregistry.v1.SkillRevision.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SkillRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFrontmatterFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetScanResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (archiveUploadSourceBuilder_ != null) { + archiveUploadSourceBuilder_.clear(); + } + name_ = ""; + state_ = 0; + sha256Hash_ = ""; + frontmatter_ = null; + if (frontmatterBuilder_ != null) { + frontmatterBuilder_.dispose(); + frontmatterBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + sizeBytes_ = 0L; + uid_ = ""; + scanResult_ = null; + if (scanResultBuilder_ != null) { + scanResultBuilder_.dispose(); + scanResultBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.SkillProto + .internal_static_google_cloud_agentregistry_v1_SkillRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision build() { + com.google.cloud.agentregistry.v1.SkillRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision buildPartial() { + com.google.cloud.agentregistry.v1.SkillRevision result = + new com.google.cloud.agentregistry.v1.SkillRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.SkillRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sha256Hash_ = sha256Hash_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.frontmatter_ = + frontmatterBuilder_ == null ? frontmatter_ : frontmatterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.sizeBytes_ = sizeBytes_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.scanResult_ = scanResultBuilder_ == null ? scanResult_ : scanResultBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.agentregistry.v1.SkillRevision result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 9 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 12 && archiveUploadSourceBuilder_ != null) { + result.source_ = archiveUploadSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.SkillRevision) { + return mergeFrom((com.google.cloud.agentregistry.v1.SkillRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SkillRevision other) { + if (other == com.google.cloud.agentregistry.v1.SkillRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getSha256Hash().isEmpty()) { + sha256Hash_ = other.sha256Hash_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasFrontmatter()) { + mergeFrontmatter(other.getFrontmatter()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getSizeBytes() != 0L) { + setSizeBytes(other.getSizeBytes()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasScanResult()) { + mergeScanResult(other.getScanResult()); + } + switch (other.getSourceCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case ARCHIVE_UPLOAD_SOURCE: + { + mergeArchiveUploadSource(other.getArchiveUploadSource()); + break; + } + case SOURCE_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_ |= 0x00000004; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 16 + case 26: + { + sha256Hash_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetFrontmatterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 74: + { + input.readMessage( + internalGetGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 9; + break; + } // case 74 + case 88: + { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 88 + case 98: + { + input.readMessage( + internalGetArchiveUploadSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 12; + break; + } // case 98 + case 114: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 114 + case 122: + { + input.readMessage( + internalGetScanResultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 122 + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.GcsSource, + com.google.cloud.agentregistry.v1.GcsSource.Builder, + com.google.cloud.agentregistry.v1.GcsSourceOrBuilder> + gcsSourceBuilder_; + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 9; + } + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 9) { + return (com.google.cloud.agentregistry.v1.GcsSource) source_; + } + return com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 9) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcsSource(com.google.cloud.agentregistry.v1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 9; + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcsSource( + com.google.cloud.agentregistry.v1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 9; + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGcsSource(com.google.cloud.agentregistry.v1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 9 + && source_ != com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.agentregistry.v1.GcsSource.newBuilder( + (com.google.cloud.agentregistry.v1.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 9) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 9; + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 9) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 9) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.GcsSource.Builder getGcsSourceBuilder() { + return internalGetGcsSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 9) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 9) { + return (com.google.cloud.agentregistry.v1.GcsSource) source_; + } + return com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Immutable. Cloud Storage object generation URI.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.GcsSource, + com.google.cloud.agentregistry.v1.GcsSource.Builder, + com.google.cloud.agentregistry.v1.GcsSourceOrBuilder> + internalGetGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 9)) { + source_ = com.google.cloud.agentregistry.v1.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.GcsSource, + com.google.cloud.agentregistry.v1.GcsSource.Builder, + com.google.cloud.agentregistry.v1.GcsSourceOrBuilder>( + (com.google.cloud.agentregistry.v1.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 9; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.ArchiveUploadSource, + com.google.cloud.agentregistry.v1.ArchiveUploadSource.Builder, + com.google.cloud.agentregistry.v1.ArchiveUploadSourceOrBuilder> + archiveUploadSourceBuilder_; + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the archiveUploadSource field is set. + */ + @java.lang.Override + public boolean hasArchiveUploadSource() { + return sourceCase_ == 12; + } + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The archiveUploadSource. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ArchiveUploadSource getArchiveUploadSource() { + if (archiveUploadSourceBuilder_ == null) { + if (sourceCase_ == 12) { + return (com.google.cloud.agentregistry.v1.ArchiveUploadSource) source_; + } + return com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance(); + } else { + if (sourceCase_ == 12) { + return archiveUploadSourceBuilder_.getMessage(); + } + return com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArchiveUploadSource( + com.google.cloud.agentregistry.v1.ArchiveUploadSource value) { + if (archiveUploadSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + archiveUploadSourceBuilder_.setMessage(value); + } + sourceCase_ = 12; + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArchiveUploadSource( + com.google.cloud.agentregistry.v1.ArchiveUploadSource.Builder builderForValue) { + if (archiveUploadSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + archiveUploadSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 12; + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArchiveUploadSource( + com.google.cloud.agentregistry.v1.ArchiveUploadSource value) { + if (archiveUploadSourceBuilder_ == null) { + if (sourceCase_ == 12 + && source_ + != com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance()) { + source_ = + com.google.cloud.agentregistry.v1.ArchiveUploadSource.newBuilder( + (com.google.cloud.agentregistry.v1.ArchiveUploadSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 12) { + archiveUploadSourceBuilder_.mergeFrom(value); + } else { + archiveUploadSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 12; + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArchiveUploadSource() { + if (archiveUploadSourceBuilder_ == null) { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + } + archiveUploadSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.ArchiveUploadSource.Builder + getArchiveUploadSourceBuilder() { + return internalGetArchiveUploadSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ArchiveUploadSourceOrBuilder + getArchiveUploadSourceOrBuilder() { + if ((sourceCase_ == 12) && (archiveUploadSourceBuilder_ != null)) { + return archiveUploadSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 12) { + return (com.google.cloud.agentregistry.v1.ArchiveUploadSource) source_; + } + return com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Immutable. Direct write-only raw archive upload source.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.ArchiveUploadSource, + com.google.cloud.agentregistry.v1.ArchiveUploadSource.Builder, + com.google.cloud.agentregistry.v1.ArchiveUploadSourceOrBuilder> + internalGetArchiveUploadSourceFieldBuilder() { + if (archiveUploadSourceBuilder_ == null) { + if (!(sourceCase_ == 12)) { + source_ = com.google.cloud.agentregistry.v1.ArchiveUploadSource.getDefaultInstance(); + } + archiveUploadSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.ArchiveUploadSource, + com.google.cloud.agentregistry.v1.ArchiveUploadSource.Builder, + com.google.cloud.agentregistry.v1.ArchiveUploadSourceOrBuilder>( + (com.google.cloud.agentregistry.v1.ArchiveUploadSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 12; + onChanged(); + return archiveUploadSourceBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Resource name of the SkillRevision.
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * 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 the SkillRevision.
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * 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 the SkillRevision.
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of the SkillRevision.
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of the SkillRevision.
+     * Format:
+     * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+     * 
+ * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The system-managed lifecycle state of this revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.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 system-managed lifecycle state of this revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The system-managed lifecycle state of this revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillRevision.State getState() { + com.google.cloud.agentregistry.v1.SkillRevision.State result = + com.google.cloud.agentregistry.v1.SkillRevision.State.forNumber(state_); + return result == null + ? com.google.cloud.agentregistry.v1.SkillRevision.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The system-managed lifecycle state of this revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.agentregistry.v1.SkillRevision.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The system-managed lifecycle state of this revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sha256Hash_ = ""; + + /** + * + * + *
+     * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+     * the payload zip.
+     * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sha256Hash. + */ + public java.lang.String getSha256Hash() { + java.lang.Object ref = sha256Hash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sha256Hash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+     * the payload zip.
+     * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sha256Hash. + */ + public com.google.protobuf.ByteString getSha256HashBytes() { + java.lang.Object ref = sha256Hash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sha256Hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+     * the payload zip.
+     * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sha256Hash to set. + * @return This builder for chaining. + */ + public Builder setSha256Hash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sha256Hash_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+     * the payload zip.
+     * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSha256Hash() { + sha256Hash_ = getDefaultInstance().getSha256Hash(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+     * the payload zip.
+     * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sha256Hash to set. + * @return This builder for chaining. + */ + public Builder setSha256HashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha256Hash_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.Frontmatter frontmatter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Frontmatter, + com.google.cloud.agentregistry.v1.Frontmatter.Builder, + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder> + frontmatterBuilder_; + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the frontmatter field is set. + */ + public boolean hasFrontmatter() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The frontmatter. + */ + public com.google.cloud.agentregistry.v1.Frontmatter getFrontmatter() { + if (frontmatterBuilder_ == null) { + return frontmatter_ == null + ? com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance() + : frontmatter_; + } else { + return frontmatterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFrontmatter(com.google.cloud.agentregistry.v1.Frontmatter value) { + if (frontmatterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + frontmatter_ = value; + } else { + frontmatterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFrontmatter( + com.google.cloud.agentregistry.v1.Frontmatter.Builder builderForValue) { + if (frontmatterBuilder_ == null) { + frontmatter_ = builderForValue.build(); + } else { + frontmatterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeFrontmatter(com.google.cloud.agentregistry.v1.Frontmatter value) { + if (frontmatterBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && frontmatter_ != null + && frontmatter_ != com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance()) { + getFrontmatterBuilder().mergeFrom(value); + } else { + frontmatter_ = value; + } + } else { + frontmatterBuilder_.mergeFrom(value); + } + if (frontmatter_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFrontmatter() { + bitField0_ = (bitField0_ & ~0x00000020); + frontmatter_ = null; + if (frontmatterBuilder_ != null) { + frontmatterBuilder_.dispose(); + frontmatterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Frontmatter.Builder getFrontmatterBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetFrontmatterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.FrontmatterOrBuilder getFrontmatterOrBuilder() { + if (frontmatterBuilder_ != null) { + return frontmatterBuilder_.getMessageOrBuilder(); + } else { + return frontmatter_ == null + ? com.google.cloud.agentregistry.v1.Frontmatter.getDefaultInstance() + : frontmatter_; + } + } + + /** + * + * + *
+     * Output only. Extracted YAML frontmatter configuration snapshot.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Frontmatter, + com.google.cloud.agentregistry.v1.Frontmatter.Builder, + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder> + internalGetFrontmatterFieldBuilder() { + if (frontmatterBuilder_ == null) { + frontmatterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Frontmatter, + com.google.cloud.agentregistry.v1.Frontmatter.Builder, + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder>( + getFrontmatter(), getParentForChildren(), isClean()); + frontmatter_ = null; + } + return frontmatterBuilder_; + } + + 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. Revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Revision creation timestamp.
+     * 
+ * + * + * .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. Revision creation timestamp.
+     * 
+ * + * + * .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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Revision creation timestamp.
+     * 
+ * + * + * .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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Revision creation timestamp.
+     * 
+ * + * + * .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_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Revision creation timestamp.
+     * 
+ * + * + * .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. Revision creation timestamp.
+     * 
+ * + * + * .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 long sizeBytes_; + + /** + * + * + *
+     * Output only. Size of the compiled zip payload in bytes (assists client
+     * download progress).
+     * 
+ * + * int64 size_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + /** + * + * + *
+     * Output only. Size of the compiled zip payload in bytes (assists client
+     * download progress).
+     * 
+ * + * int64 size_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeBytes to set. + * @return This builder for chaining. + */ + public Builder setSizeBytes(long value) { + + sizeBytes_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Size of the compiled zip payload in bytes (assists client
+     * download progress).
+     * 
+ * + * int64 size_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000080); + sizeBytes_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. Universally unique identifier (UUID4) for the skill revision.
+     * 
+ * + * + * string uid = 14 [(.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. Universally unique identifier (UUID4) for the skill revision.
+     * 
+ * + * + * string uid = 14 [(.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. Universally unique identifier (UUID4) for the skill revision.
+     * 
+ * + * + * string uid = 14 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Universally unique identifier (UUID4) for the skill revision.
+     * 
+ * + * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Universally unique identifier (UUID4) for the skill revision.
+     * 
+ * + * + * string uid = 14 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.SkillRevision.ScanResult scanResult_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult, + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.Builder, + com.google.cloud.agentregistry.v1.SkillRevision.ScanResultOrBuilder> + scanResultBuilder_; + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the scanResult field is set. + */ + public boolean hasScanResult() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanResult. + */ + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResult getScanResult() { + if (scanResultBuilder_ == null) { + return scanResult_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.getDefaultInstance() + : scanResult_; + } else { + return scanResultBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setScanResult(com.google.cloud.agentregistry.v1.SkillRevision.ScanResult value) { + if (scanResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scanResult_ = value; + } else { + scanResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setScanResult( + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.Builder builderForValue) { + if (scanResultBuilder_ == null) { + scanResult_ = builderForValue.build(); + } else { + scanResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeScanResult( + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult value) { + if (scanResultBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && scanResult_ != null + && scanResult_ + != com.google.cloud.agentregistry.v1.SkillRevision.ScanResult + .getDefaultInstance()) { + getScanResultBuilder().mergeFrom(value); + } else { + scanResult_ = value; + } + } else { + scanResultBuilder_.mergeFrom(value); + } + if (scanResult_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearScanResult() { + bitField0_ = (bitField0_ & ~0x00000200); + scanResult_ = null; + if (scanResultBuilder_ != null) { + scanResultBuilder_.dispose(); + scanResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.Builder + getScanResultBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetScanResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.SkillRevision.ScanResultOrBuilder + getScanResultOrBuilder() { + if (scanResultBuilder_ != null) { + return scanResultBuilder_.getMessageOrBuilder(); + } else { + return scanResult_ == null + ? com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.getDefaultInstance() + : scanResult_; + } + } + + /** + * + * + *
+     * Output only. Scan result of the skill revision.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult, + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.Builder, + com.google.cloud.agentregistry.v1.SkillRevision.ScanResultOrBuilder> + internalGetScanResultFieldBuilder() { + if (scanResultBuilder_ == null) { + scanResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult, + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult.Builder, + com.google.cloud.agentregistry.v1.SkillRevision.ScanResultOrBuilder>( + getScanResult(), getParentForChildren(), isClean()); + scanResult_ = null; + } + return scanResultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.SkillRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SkillRevision) + private static final com.google.cloud.agentregistry.v1.SkillRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SkillRevision(); + } + + public static com.google.cloud.agentregistry.v1.SkillRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkillRevision 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.agentregistry.v1.SkillRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevisionName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevisionName.java new file mode 100644 index 000000000000..c5bde155c3c5 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevisionName.java @@ -0,0 +1,261 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class SkillRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SKILL_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String skill; + private final String revision; + + @Deprecated + protected SkillRevisionName() { + project = null; + location = null; + skill = null; + revision = null; + } + + private SkillRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + skill = Preconditions.checkNotNull(builder.getSkill()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSkill() { + return skill; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SkillRevisionName of( + String project, String location, String skill, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSkill(skill) + .setRevision(revision) + .build(); + } + + public static String format(String project, String location, String skill, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSkill(skill) + .setRevision(revision) + .build() + .toString(); + } + + public static @Nullable SkillRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SKILL_REVISION.validatedMatch( + formattedString, "SkillRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("skill"), + matchMap.get("revision")); + } + + 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<@Nullable SkillRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (SkillRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SKILL_REVISION.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 (skill != null) { + fieldMapBuilder.put("skill", skill); + } + if (revision != null) { + fieldMapBuilder.put("revision", revision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SKILL_REVISION.instantiate( + "project", project, "location", location, "skill", skill, "revision", revision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SkillRevisionName that = ((SkillRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.skill, that.skill) + && Objects.equals(this.revision, that.revision); + } + 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(skill); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** Builder for projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}. */ + public static class Builder { + private String project; + private String location; + private String skill; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSkill() { + return skill; + } + + public String getRevision() { + return revision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSkill(String skill) { + this.skill = skill; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(SkillRevisionName skillRevisionName) { + this.project = skillRevisionName.project; + this.location = skillRevisionName.location; + this.skill = skillRevisionName.skill; + this.revision = skillRevisionName.revision; + } + + public SkillRevisionName build() { + return new SkillRevisionName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevisionOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevisionOrBuilder.java new file mode 100644 index 000000000000..c6bc5a6a31be --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SkillRevisionOrBuilder.java @@ -0,0 +1,374 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/skill.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SkillRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SkillRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Immutable. Cloud Storage object generation URI.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + + /** + * + * + *
+   * Optional. Immutable. Cloud Storage object generation URI.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + com.google.cloud.agentregistry.v1.GcsSource getGcsSource(); + + /** + * + * + *
+   * Optional. Immutable. Cloud Storage object generation URI.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.GcsSource gcs_source = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. Direct write-only raw archive upload source.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the archiveUploadSource field is set. + */ + boolean hasArchiveUploadSource(); + + /** + * + * + *
+   * Optional. Immutable. Direct write-only raw archive upload source.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The archiveUploadSource. + */ + com.google.cloud.agentregistry.v1.ArchiveUploadSource getArchiveUploadSource(); + + /** + * + * + *
+   * Optional. Immutable. Direct write-only raw archive upload source.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.ArchiveUploadSource archive_upload_source = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.ArchiveUploadSourceOrBuilder getArchiveUploadSourceOrBuilder(); + + /** + * + * + *
+   * Identifier. Resource name of the SkillRevision.
+   * Format:
+   * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of the SkillRevision.
+   * Format:
+   * `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The system-managed lifecycle state of this revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The system-managed lifecycle state of this revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.agentregistry.v1.SkillRevision.State getState(); + + /** + * + * + *
+   * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+   * the payload zip.
+   * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sha256Hash. + */ + java.lang.String getSha256Hash(); + + /** + * + * + *
+   * Output only. Cryptographic SHA-256 integrity and deduplication digest of
+   * the payload zip.
+   * 
+ * + * string sha256_hash = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sha256Hash. + */ + com.google.protobuf.ByteString getSha256HashBytes(); + + /** + * + * + *
+   * Output only. Extracted YAML frontmatter configuration snapshot.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the frontmatter field is set. + */ + boolean hasFrontmatter(); + + /** + * + * + *
+   * Output only. Extracted YAML frontmatter configuration snapshot.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The frontmatter. + */ + com.google.cloud.agentregistry.v1.Frontmatter getFrontmatter(); + + /** + * + * + *
+   * Output only. Extracted YAML frontmatter configuration snapshot.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.Frontmatter frontmatter = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.FrontmatterOrBuilder getFrontmatterOrBuilder(); + + /** + * + * + *
+   * Output only. Revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Size of the compiled zip payload in bytes (assists client
+   * download progress).
+   * 
+ * + * int64 size_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + long getSizeBytes(); + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the skill revision.
+   * 
+ * + * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. Universally unique identifier (UUID4) for the skill revision.
+   * 
+ * + * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. Scan result of the skill revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the scanResult field is set. + */ + boolean hasScanResult(); + + /** + * + * + *
+   * Output only. Scan result of the skill revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The scanResult. + */ + com.google.cloud.agentregistry.v1.SkillRevision.ScanResult getScanResult(); + + /** + * + * + *
+   * Output only. Scan result of the skill revision.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillRevision.ScanResult scan_result = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.SkillRevision.ScanResultOrBuilder getScanResultOrBuilder(); + + com.google.cloud.agentregistry.v1.SkillRevision.SourceCase getSourceCase(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillEncryptionSpecRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillEncryptionSpecRequest.java new file mode 100644 index 000000000000..b61e388d53f9 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillEncryptionSpecRequest.java @@ -0,0 +1,1094 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message for updating a SkillEncryptionSpec.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest} + */ +@com.google.protobuf.Generated +public final class UpdateSkillEncryptionSpecRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest) + UpdateSkillEncryptionSpecRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateSkillEncryptionSpecRequest"); + } + + // Use UpdateSkillEncryptionSpecRequest.newBuilder() to construct. + private UpdateSkillEncryptionSpecRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateSkillEncryptionSpecRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest.class, + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest.Builder.class); + } + + private int bitField0_; + public static final int SKILL_ENCRYPTION_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.agentregistry.v1.SkillEncryptionSpec skillEncryptionSpec_; + + /** + * + * + *
+   * Required. The SkillEncryptionSpec to update.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skillEncryptionSpec field is set. + */ + @java.lang.Override + public boolean hasSkillEncryptionSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The SkillEncryptionSpec to update.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skillEncryptionSpec. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillEncryptionSpec getSkillEncryptionSpec() { + return skillEncryptionSpec_ == null + ? com.google.cloud.agentregistry.v1.SkillEncryptionSpec.getDefaultInstance() + : skillEncryptionSpec_; + } + + /** + * + * + *
+   * Required. The SkillEncryptionSpec to update.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillEncryptionSpecOrBuilder + getSkillEncryptionSpecOrBuilder() { + return skillEncryptionSpec_ == null + ? com.google.cloud.agentregistry.v1.SkillEncryptionSpec.getDefaultInstance() + : skillEncryptionSpec_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * SkillEncryptionSpec resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .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 specify the fields to be overwritten in the
+   * SkillEncryptionSpec resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .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 specify the fields to be overwritten in the
+   * SkillEncryptionSpec resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .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, getSkillEncryptionSpec()); + } + 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, getSkillEncryptionSpec()); + } + 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.agentregistry.v1.UpdateSkillEncryptionSpecRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest other = + (com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest) obj; + + if (hasSkillEncryptionSpec() != other.hasSkillEncryptionSpec()) return false; + if (hasSkillEncryptionSpec()) { + if (!getSkillEncryptionSpec().equals(other.getSkillEncryptionSpec())) 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 (hasSkillEncryptionSpec()) { + hash = (37 * hash) + SKILL_ENCRYPTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSkillEncryptionSpec().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.agentregistry.v1.UpdateSkillEncryptionSpecRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest 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.agentregistry.v1.UpdateSkillEncryptionSpecRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest 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.agentregistry.v1.UpdateSkillEncryptionSpecRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest 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.agentregistry.v1.UpdateSkillEncryptionSpecRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest + 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.agentregistry.v1.UpdateSkillEncryptionSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest 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.agentregistry.v1.UpdateSkillEncryptionSpecRequest 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 for updating a SkillEncryptionSpec.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest) + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest.class, + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest.Builder.class); + } + + // Construct using + // com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSkillEncryptionSpecFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + skillEncryptionSpec_ = null; + if (skillEncryptionSpecBuilder_ != null) { + skillEncryptionSpecBuilder_.dispose(); + skillEncryptionSpecBuilder_ = 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.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillEncryptionSpecRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest build() { + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest buildPartial() { + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest result = + new com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.skillEncryptionSpec_ = + skillEncryptionSpecBuilder_ == null + ? skillEncryptionSpec_ + : skillEncryptionSpecBuilder_.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.agentregistry.v1.UpdateSkillEncryptionSpecRequest) { + return mergeFrom( + (com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest other) { + if (other + == com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest + .getDefaultInstance()) return this; + if (other.hasSkillEncryptionSpec()) { + mergeSkillEncryptionSpec(other.getSkillEncryptionSpec()); + } + 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( + internalGetSkillEncryptionSpecFieldBuilder().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.agentregistry.v1.SkillEncryptionSpec skillEncryptionSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillEncryptionSpec, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec.Builder, + com.google.cloud.agentregistry.v1.SkillEncryptionSpecOrBuilder> + skillEncryptionSpecBuilder_; + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skillEncryptionSpec field is set. + */ + public boolean hasSkillEncryptionSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skillEncryptionSpec. + */ + public com.google.cloud.agentregistry.v1.SkillEncryptionSpec getSkillEncryptionSpec() { + if (skillEncryptionSpecBuilder_ == null) { + return skillEncryptionSpec_ == null + ? com.google.cloud.agentregistry.v1.SkillEncryptionSpec.getDefaultInstance() + : skillEncryptionSpec_; + } else { + return skillEncryptionSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.SkillEncryptionSpec value) { + if (skillEncryptionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + skillEncryptionSpec_ = value; + } else { + skillEncryptionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.SkillEncryptionSpec.Builder builderForValue) { + if (skillEncryptionSpecBuilder_ == null) { + skillEncryptionSpec_ = builderForValue.build(); + } else { + skillEncryptionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSkillEncryptionSpec( + com.google.cloud.agentregistry.v1.SkillEncryptionSpec value) { + if (skillEncryptionSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && skillEncryptionSpec_ != null + && skillEncryptionSpec_ + != com.google.cloud.agentregistry.v1.SkillEncryptionSpec.getDefaultInstance()) { + getSkillEncryptionSpecBuilder().mergeFrom(value); + } else { + skillEncryptionSpec_ = value; + } + } else { + skillEncryptionSpecBuilder_.mergeFrom(value); + } + if (skillEncryptionSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSkillEncryptionSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + skillEncryptionSpec_ = null; + if (skillEncryptionSpecBuilder_ != null) { + skillEncryptionSpecBuilder_.dispose(); + skillEncryptionSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.SkillEncryptionSpec.Builder + getSkillEncryptionSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSkillEncryptionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.SkillEncryptionSpecOrBuilder + getSkillEncryptionSpecOrBuilder() { + if (skillEncryptionSpecBuilder_ != null) { + return skillEncryptionSpecBuilder_.getMessageOrBuilder(); + } else { + return skillEncryptionSpec_ == null + ? com.google.cloud.agentregistry.v1.SkillEncryptionSpec.getDefaultInstance() + : skillEncryptionSpec_; + } + } + + /** + * + * + *
+     * Required. The SkillEncryptionSpec to update.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillEncryptionSpec, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec.Builder, + com.google.cloud.agentregistry.v1.SkillEncryptionSpecOrBuilder> + internalGetSkillEncryptionSpecFieldBuilder() { + if (skillEncryptionSpecBuilder_ == null) { + skillEncryptionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.SkillEncryptionSpec, + com.google.cloud.agentregistry.v1.SkillEncryptionSpec.Builder, + com.google.cloud.agentregistry.v1.SkillEncryptionSpecOrBuilder>( + getSkillEncryptionSpec(), getParentForChildren(), isClean()); + skillEncryptionSpec_ = null; + } + return skillEncryptionSpecBuilder_; + } + + 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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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 specify the fields to be overwritten in the
+     * SkillEncryptionSpec resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .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.agentregistry.v1.UpdateSkillEncryptionSpecRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest) + private static final com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest(); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSkillEncryptionSpecRequest 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.agentregistry.v1.UpdateSkillEncryptionSpecRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillEncryptionSpecRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillEncryptionSpecRequestOrBuilder.java new file mode 100644 index 000000000000..f67342b0ce74 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillEncryptionSpecRequestOrBuilder.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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface UpdateSkillEncryptionSpecRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The SkillEncryptionSpec to update.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skillEncryptionSpec field is set. + */ + boolean hasSkillEncryptionSpec(); + + /** + * + * + *
+   * Required. The SkillEncryptionSpec to update.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skillEncryptionSpec. + */ + com.google.cloud.agentregistry.v1.SkillEncryptionSpec getSkillEncryptionSpec(); + + /** + * + * + *
+   * Required. The SkillEncryptionSpec to update.
+   * 
+ * + * + * .google.cloud.agentregistry.v1.SkillEncryptionSpec skill_encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.SkillEncryptionSpecOrBuilder getSkillEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * SkillEncryptionSpec resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .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 specify the fields to be overwritten in the
+   * SkillEncryptionSpec resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .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 specify the fields to be overwritten in the
+   * SkillEncryptionSpec resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillRequest.java new file mode 100644 index 000000000000..45045d796b95 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillRequest.java @@ -0,0 +1,1207 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
+ * Message requesting a metadata update of a Skill.
+ * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.UpdateSkillRequest} + */ +@com.google.protobuf.Generated +public final class UpdateSkillRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.UpdateSkillRequest) + UpdateSkillRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateSkillRequest"); + } + + // Use UpdateSkillRequest.newBuilder() to construct. + private UpdateSkillRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateSkillRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.UpdateSkillRequest.class, + com.google.cloud.agentregistry.v1.UpdateSkillRequest.Builder.class); + } + + private int bitField0_; + public static final int SKILL_FIELD_NUMBER = 1; + private com.google.cloud.agentregistry.v1.Skill skill_; + + /** + * + * + *
+   * Required. Mutable Skill container config fields to write.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skill field is set. + */ + @java.lang.Override + public boolean hasSkill() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Mutable Skill container config fields to write.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skill. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Skill getSkill() { + return skill_ == null ? com.google.cloud.agentregistry.v1.Skill.getDefaultInstance() : skill_; + } + + /** + * + * + *
+   * Required. Mutable Skill container config fields to write.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillOrBuilder() { + return skill_ == null ? com.google.cloud.agentregistry.v1.Skill.getDefaultInstance() : skill_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Standard update target mask mapping relative fields.
+   * 
+ * + * .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. Standard update target mask mapping relative fields.
+   * 
+ * + * .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. Standard update target mask mapping relative fields.
+   * 
+ * + * .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_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSkill()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSkill()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.UpdateSkillRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.UpdateSkillRequest other = + (com.google.cloud.agentregistry.v1.UpdateSkillRequest) obj; + + if (hasSkill() != other.hasSkill()) return false; + if (hasSkill()) { + if (!getSkill().equals(other.getSkill())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSkill()) { + hash = (37 * hash) + SKILL_FIELD_NUMBER; + hash = (53 * hash) + getSkill().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest 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.agentregistry.v1.UpdateSkillRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest 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.agentregistry.v1.UpdateSkillRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest 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.agentregistry.v1.UpdateSkillRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest 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.agentregistry.v1.UpdateSkillRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest 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.agentregistry.v1.UpdateSkillRequest 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 requesting a metadata update of a Skill.
+   * 
+ * + * Protobuf type {@code google.cloud.agentregistry.v1.UpdateSkillRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.UpdateSkillRequest) + com.google.cloud.agentregistry.v1.UpdateSkillRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.UpdateSkillRequest.class, + com.google.cloud.agentregistry.v1.UpdateSkillRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.UpdateSkillRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSkillFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + skill_ = null; + if (skillBuilder_ != null) { + skillBuilder_.dispose(); + skillBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateSkillRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateSkillRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.UpdateSkillRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateSkillRequest build() { + com.google.cloud.agentregistry.v1.UpdateSkillRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateSkillRequest buildPartial() { + com.google.cloud.agentregistry.v1.UpdateSkillRequest result = + new com.google.cloud.agentregistry.v1.UpdateSkillRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.UpdateSkillRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.skill_ = skillBuilder_ == null ? skill_ : skillBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.UpdateSkillRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.UpdateSkillRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.UpdateSkillRequest other) { + if (other == com.google.cloud.agentregistry.v1.UpdateSkillRequest.getDefaultInstance()) + return this; + if (other.hasSkill()) { + mergeSkill(other.getSkill()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetSkillFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.agentregistry.v1.Skill skill_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder> + skillBuilder_; + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skill field is set. + */ + public boolean hasSkill() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skill. + */ + public com.google.cloud.agentregistry.v1.Skill getSkill() { + if (skillBuilder_ == null) { + return skill_ == null + ? com.google.cloud.agentregistry.v1.Skill.getDefaultInstance() + : skill_; + } else { + return skillBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkill(com.google.cloud.agentregistry.v1.Skill value) { + if (skillBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + skill_ = value; + } else { + skillBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkill(com.google.cloud.agentregistry.v1.Skill.Builder builderForValue) { + if (skillBuilder_ == null) { + skill_ = builderForValue.build(); + } else { + skillBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSkill(com.google.cloud.agentregistry.v1.Skill value) { + if (skillBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && skill_ != null + && skill_ != com.google.cloud.agentregistry.v1.Skill.getDefaultInstance()) { + getSkillBuilder().mergeFrom(value); + } else { + skill_ = value; + } + } else { + skillBuilder_.mergeFrom(value); + } + if (skill_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSkill() { + bitField0_ = (bitField0_ & ~0x00000001); + skill_ = null; + if (skillBuilder_ != null) { + skillBuilder_.dispose(); + skillBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Skill.Builder getSkillBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSkillFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillOrBuilder() { + if (skillBuilder_ != null) { + return skillBuilder_.getMessageOrBuilder(); + } else { + return skill_ == null + ? com.google.cloud.agentregistry.v1.Skill.getDefaultInstance() + : skill_; + } + } + + /** + * + * + *
+     * Required. Mutable Skill container config fields to write.
+     * 
+ * + * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder> + internalGetSkillFieldBuilder() { + if (skillBuilder_ == null) { + skillBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Skill, + com.google.cloud.agentregistry.v1.Skill.Builder, + com.google.cloud.agentregistry.v1.SkillOrBuilder>( + getSkill(), getParentForChildren(), isClean()); + skill_ = null; + } + return skillBuilder_; + } + + 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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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. Standard update target mask mapping relative fields.
+     * 
+ * + * .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_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Signed UUID request idempotency token.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.UpdateSkillRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.UpdateSkillRequest) + private static final com.google.cloud.agentregistry.v1.UpdateSkillRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.UpdateSkillRequest(); + } + + public static com.google.cloud.agentregistry.v1.UpdateSkillRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSkillRequest 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.agentregistry.v1.UpdateSkillRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillRequestOrBuilder.java new file mode 100644 index 000000000000..a00eb2c95d05 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateSkillRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface UpdateSkillRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.UpdateSkillRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Mutable Skill container config fields to write.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skill field is set. + */ + boolean hasSkill(); + + /** + * + * + *
+   * Required. Mutable Skill container config fields to write.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skill. + */ + com.google.cloud.agentregistry.v1.Skill getSkill(); + + /** + * + * + *
+   * Required. Mutable Skill container config fields to write.
+   * 
+ * + * .google.cloud.agentregistry.v1.Skill skill = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.SkillOrBuilder getSkillOrBuilder(); + + /** + * + * + *
+   * Optional. Standard update target mask mapping relative fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Standard update target mask mapping relative fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Standard update target mask mapping relative fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. Signed UUID request idempotency token.
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agent.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agent.proto index c5c3081f4562..1a52cd18b48f 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agent.proto +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agent.proto @@ -37,6 +37,7 @@ message Agent { option (google.api.resource) = { type: "agentregistry.googleapis.com/Agent" pattern: "projects/{project}/locations/{location}/agents/{agent}" + pattern: "projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}" plural: "agents" singular: "agent" }; diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agentregistry_service.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agentregistry_service.proto index e78849890b7d..229e8cc6ece2 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agentregistry_service.proto +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agentregistry_service.proto @@ -22,10 +22,14 @@ import "google/api/field_behavior.proto"; import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/agentregistry/v1/agent.proto"; +import "google/cloud/agentregistry/v1/ai_application.proto"; import "google/cloud/agentregistry/v1/binding.proto"; import "google/cloud/agentregistry/v1/endpoint.proto"; +import "google/cloud/agentregistry/v1/finding.proto"; import "google/cloud/agentregistry/v1/mcp_server.proto"; import "google/cloud/agentregistry/v1/service.proto"; +import "google/cloud/agentregistry/v1/skill.proto"; +import "google/cloud/agentregistry/v1/skill_encryption_spec.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -39,7 +43,7 @@ option java_package = "com.google.cloud.agentregistry.v1"; option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; option ruby_package = "Google::Cloud::AgentRegistry::V1"; -// Service for managing Agents, Endpoints, McpServers, Services, and Bindings. +// Service for managing Agent Registry resources. service AgentRegistry { option (google.api.default_host) = "agentregistry.googleapis.com"; option (google.api.oauth_scopes) = @@ -237,6 +241,270 @@ service AgentRegistry { }; option (google.api.method_signature) = "parent"; } + + // ========================================================================= + // # Skills Collection APIs + // + // Creates a Skill resource container, optionally publishing the initial + // SkillRevision inline in a single, atomic CRUD roundtrip. + rpc CreateSkill(CreateSkillRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/skills" + body: "skill" + }; + option (google.api.method_signature) = "parent,skill,skill_id"; + option (google.longrunning.operation_info) = { + response_type: "Skill" + metadata_type: "OperationMetadata" + }; + } + + // Fetches the active configuration and metadata of a Skill. + rpc GetSkill(GetSkillRequest) returns (Skill) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/skills/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates Skill metadata or overrides active pointers/state using REST + // standard PATCH. + rpc UpdateSkill(UpdateSkillRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{skill.name=projects/*/locations/*/skills/*}" + body: "skill" + }; + option (google.api.method_signature) = "skill,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Skill" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a Skill container along with all its revisions. + rpc DeleteSkill(DeleteSkillRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/skills/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists logical Skills available in a project. + rpc ListSkills(ListSkillsRequest) returns (ListSkillsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/skills" + }; + option (google.api.method_signature) = "parent"; + } + + // Custom deep-search method to filter by frontmatter or query SKILL.md text + // blobs. + rpc SearchSkills(SearchSkillsRequest) returns (SearchSkillsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/skills:search" + body: "*" + additional_bindings { + get: "/v1/{parent=projects/*/locations/*}/skills:search" + } + }; + } + + // Creates a new immutable revision and triggers validation pipelines. + rpc CreateSkillRevision(CreateSkillRevisionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/skills/*}/revisions" + body: "skill_revision" + }; + option (google.api.method_signature) = + "parent,skill_revision,skill_revision_id"; + option (google.longrunning.operation_info) = { + response_type: "SkillRevision" + metadata_type: "OperationMetadata" + }; + } + + // Gets details of a single immutable Revision. + rpc GetSkillRevision(GetSkillRevisionRequest) returns (SkillRevision) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/skills/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a specific revision (restricted to admins to purge accidentally + // committed secrets). + rpc DeleteSkillRevision(DeleteSkillRevisionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/skills/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists all revisions belonging to a parent Skill. + rpc ListSkillRevisions(ListSkillRevisionsRequest) + returns (ListSkillRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/skills/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } + + // Fetches details of a specific Publisher. + rpc GetPublisher(GetPublisherRequest) returns (Publisher) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/publishers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all Publishers in a location. + rpc ListPublishers(ListPublishersRequest) returns (ListPublishersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/publishers" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AI Application. + rpc GetAiApplication(GetAiApplicationRequest) returns (AiApplication) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aiApplications/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists AI Applications in a given project and location. + rpc ListAiApplications(ListAiApplicationsRequest) + returns (ListAiApplicationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/aiApplications" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Agent under an AI Application. + rpc GetAiApplicationAgent(GetAiApplicationAgentRequest) returns (Agent) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aiApplications/*/agents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Agents under an AI Application. + rpc ListAiApplicationAgents(ListAiApplicationAgentsRequest) + returns (ListAiApplicationAgentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/aiApplications/*}/agents" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single McpServer under an AI Application. + rpc GetAiApplicationMcpServer(GetAiApplicationMcpServerRequest) + returns (McpServer) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aiApplications/*/mcpServers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists McpServers under an AI Application. + rpc ListAiApplicationMcpServers(ListAiApplicationMcpServersRequest) + returns (ListAiApplicationMcpServersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/aiApplications/*}/mcpServers" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Finding. + rpc GetFinding(GetFindingRequest) returns (Finding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/findings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Findings in a given project and location. + rpc ListFindings(ListFindingsRequest) returns (ListFindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/findings" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Endpoint under an AI Application. + rpc GetAiApplicationEndpoint(GetAiApplicationEndpointRequest) + returns (Endpoint) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aiApplications/*/endpoints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Endpoints under an AI Application. + rpc ListAiApplicationEndpoints(ListAiApplicationEndpointsRequest) + returns (ListAiApplicationEndpointsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/aiApplications/*}/endpoints" + }; + option (google.api.method_signature) = "parent"; + } + + // ========================================================================= + // # Skill Encryption Spec Service Methods + // + // Gets the customer-managed encryption key (CMEK) configuration for Skills in + // a specific project and location. + rpc GetSkillEncryptionSpec(GetSkillEncryptionSpecRequest) + returns (SkillEncryptionSpec) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/skillEncryptionSpec}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the customer-managed encryption key (CMEK) configuration for Skills + // in a specific project and location. + // + // This method is only allowed when no Skills exist in the target project and + // location. If any Skill already exists in the location, the request fails + // with `FAILED_PRECONDITION`. + rpc UpdateSkillEncryptionSpec(UpdateSkillEncryptionSpecRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{skill_encryption_spec.name=projects/*/locations/*/skillEncryptionSpec}" + body: "skill_encryption_spec" + }; + option (google.api.method_signature) = "skill_encryption_spec,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "SkillEncryptionSpec" + metadata_type: "OperationMetadata" + }; + } +} + +// The type of search to perform. Additional search types may be supported in +// the future. +enum SearchType { + // Invalid search type. + SEARCH_TYPE_UNSPECIFIED = 0; + + // Search for a keyword across all searchable fields. + KEYWORD = 1; + + // Search based on the meaning and intent of a natural language query. + SEMANTIC = 2; } // Message for requesting list of Agents @@ -245,7 +513,7 @@ message ListAgentsRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "agentregistry.googleapis.com/Agent" + type: "locations.googleapis.com/Location" } ]; @@ -279,7 +547,7 @@ message SearchAgentsRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "agentregistry.googleapis.com/Agent" + type: "locations.googleapis.com/Location" } ]; @@ -311,7 +579,7 @@ message SearchAgentsRequest { // // Examples: // - // * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + // * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` // to find the agent with the specified agent ID. // * `name:important` to find agents whose name contains `important` as a // word. @@ -358,6 +626,48 @@ message GetAgentRequest { ]; } +// Message for getting an Agent under an AI Application. +message GetAiApplicationAgentRequest { + // Required. Name of the resource. + // Format: + // `projects/{project}/locations/{location}/aiApplications/{ai_application}/agents/{agent}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Agent" + } + ]; +} + +// Message for requesting list of Agents under an AI Application. +message ListAiApplicationAgentsRequest { + // Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. + // Format: + // `projects/{project}/locations/{location}/aiApplications/{ai_application}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/AiApplication" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Agents under an AI Application. +message ListAiApplicationAgentsResponse { + // The list of Agents. + repeated Agent agents = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + // Message for requesting list of Endpoints message ListEndpointsRequest { // Required. The project and location to list endpoints in. @@ -365,7 +675,7 @@ message ListEndpointsRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "agentregistry.googleapis.com/Endpoint" + type: "locations.googleapis.com/Location" } ]; @@ -417,6 +727,49 @@ message GetEndpointRequest { ]; } +// Message for getting an Endpoint under an AI Application. +message GetAiApplicationEndpointRequest { + // Required. Name of the resource. + // Format: + // `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Endpoint" + } + ]; +} + +// Message for requesting list of Endpoints under an AI Application. +message ListAiApplicationEndpointsRequest { + // Required. Parent value (AI Application) for + // ListAiApplicationEndpointsRequest. + // Format: + // `projects/{project}/locations/{location}/aiApplications/{ai_application}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/AiApplication" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Endpoints under an AI Application. +message ListAiApplicationEndpointsResponse { + // The list of Endpoints. + repeated Endpoint endpoints = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + // Message for requesting list of McpServers message ListMcpServersRequest { // Required. Parent value for ListMcpServersRequest. Format: @@ -424,7 +777,7 @@ message ListMcpServersRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "agentregistry.googleapis.com/McpServer" + type: "locations.googleapis.com/Location" } ]; @@ -458,7 +811,7 @@ message SearchMcpServersRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "agentregistry.googleapis.com/McpServer" + type: "locations.googleapis.com/Location" } ]; @@ -534,6 +887,49 @@ message GetMcpServerRequest { ]; } +// Message for getting an McpServer under an AI Application. +message GetAiApplicationMcpServerRequest { + // Required. Name of the resource. + // Format: + // `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/McpServer" + } + ]; +} + +// Message for requesting list of McpServers under an AI Application. +message ListAiApplicationMcpServersRequest { + // Required. Parent value (AI Application) for + // ListAiApplicationMcpServersRequest. + // Format: + // `projects/{project}/locations/{location}/aiApplications/{ai_application}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/AiApplication" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing McpServers under an AI Application. +message ListAiApplicationMcpServersResponse { + // The list of McpServers. + repeated McpServer mcp_servers = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + // Message for requesting list of Services message ListServicesRequest { // Required. The project and location to list services in. @@ -932,3 +1328,467 @@ message DeleteBindingRequest { (google.api.field_behavior) = OPTIONAL ]; } + +// ========================================================================= +// # Skills Messages +// +// Message requesting creation of a logical Skill container. +message CreateSkillRequest { + // Required. The project and location location to bootstrap. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Skill" + } + ]; + + // Required. Custom, user-defined unique container identifier. + // Must be unique within the parent project and location. + // This value should be 4-64 characters, and valid characters + // are `/[a-z][0-9]-/`. + string skill_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Skill container body config. + Skill skill = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Signed UUID request idempotency token. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message requesting details of a Skill. +message GetSkillRequest { + // Required. Target resource container name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Skill" + } + ]; +} + +// Message requesting a metadata update of a Skill. +message UpdateSkillRequest { + // Required. Mutable Skill container config fields to write. + Skill skill = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Standard update target mask mapping relative fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Signed UUID request idempotency token. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message requesting deletion of a Skill. +message DeleteSkillRequest { + // Required. Target Skill container name to remove. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Skill" + } + ]; + + // Optional. Signed UUID request idempotency token. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. If set to true, any child SkillRevisions under this Skill will + // also be deleted. Otherwise, the request will only succeed if the Skill has + // no child SkillRevisions. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Requesting a list of Skills inside a location. +message ListSkillsRequest { + // Required. Parent value for ListSkillsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Skill" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use this field to specify filter criteria on list results. + // Filter expressions can be used to restrict results based upon filterable + // fields, where equality operators can be used. See + // [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) + // for more details. + // + // Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`. + // + // | Field | `=` | `<`, `>` | + // |--------------|-----|----------| + // | state | Yes | No | + // | targetState | Yes | No | + // | createTime | Yes | Yes | + // | updateTime | Yes | Yes | + // + // Examples: + // + // * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response structure listing logical Skills. +message ListSkillsResponse { + // Returned container list. + repeated Skill skills = 1; + + // Page continuation continuation token. + string next_page_token = 2; + + // Unreachable locations or failures. + repeated string unreachable = 3; +} + +// Requesting a deep search of Skills. +message SearchSkillsRequest { + // Required. Parent value for SearchSkillsRequest. Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Skill" + } + ]; + + // Optional. The type of search. + SearchType search_type = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Search criteria used to select the Skills to return. If no search + // criteria is specified then all accessible Skills will be returned. + // + // Search expressions can be used to restrict results based upon searchable + // fields, where the operators can be used along with the suffix wildcard + // symbol `*`. See + // [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) + // for more details. + // + // Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. + // + // Searchable fields: + // + // | Field | `=` | `:` | `*` | Keyword Search | + // |---------------------------|-----|-----|-----|----------------| + // | skillId | Yes | Yes | Yes | Included | + // | name | No | Yes | Yes | Included | + // | displayName | No | Yes | Yes | Included | + // | description | No | Yes | No | Included | + // | frontmatter.name | No | Yes | No | Included | + // | frontmatter.description | No | Yes | No | Included | + // | frontmatter.compatibility | No | Yes | No | Included | + // | frontmatter.license | No | Yes | No | Included | + // + // Examples: + // + // * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` + // to find the skill with the specified skill ID. + // * `name:important` to find skills whose name contains `important` as a + // word. + // * `displayName:works*` to find skills whose display name contains words + // that start with `works`. + string search_string = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use this field to specify additional filter criteria on search + // results. Filter expressions can be used to restrict results based upon + // filterable fields, where equality operators can be used. See + // [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) + // for more details. + // + // Allowed operators: `=`, `<`, `>`, `NOT`, `AND`, `OR`, and `()`. + // + // | Field | `=` | `<`, `>` | + // |--------------|-----|----------| + // | state | Yes | No | + // | targetState | Yes | No | + // | createTime | Yes | Yes | + // | updateTime | Yes | Yes | + // + // Examples: + // + // * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of search results to return per page. The page + // size is capped at `100`, even if a larger value is specified. A negative + // value will result in an `INVALID_ARGUMENT` error. If unspecified or set to + // `0`, a default value of `20` will be used. The server may return fewer + // results than requested. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, retrieve the next batch of results from the preceding + // call to this method. `page_token` must be the value of `next_page_token` + // from the previous response. The values of all other method parameters, must + // be identical to those in the previous call. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response listing searched Skills. +message SearchSkillsResponse { + // Matched Skills list. + repeated Skill skills = 1; + + // Query page offset continuation token. + string next_page_token = 2; +} + +// Requesting creation of a new SkillRevision snapshot. +message CreateSkillRevisionRequest { + // Required. Parent logical container name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Skill" + } + ]; + + // Required. Immutable SkillRevision snapshot definition schema. + SkillRevision skill_revision = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Custom, user-defined unique revision identifier. + // Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + string skill_revision_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Signed UUID request idempotency token. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Requesting details of a Revision. +message GetSkillRevisionRequest { + // Required. Target revision name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/SkillRevision" + } + ]; +} + +// Requesting deletion of a specific Revision. +message DeleteSkillRevisionRequest { + // Required. Target revision name to remove. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/SkillRevision" + } + ]; + + // Optional. Signed UUID request idempotency token. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Requesting a list of Revisions under a Skill. +message ListSkillRevisionsRequest { + // Required. Parent logical container name to query. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Skill" + } + ]; + + // Optional. Page limit size. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page offset token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response listing Revisions. +message ListSkillRevisionsResponse { + // Returned version snapshot list. + repeated SkillRevision skill_revisions = 1; + + // Page offset continuation token. + string next_page_token = 2; +} + +// Requesting details of a specific Publisher. +message GetPublisherRequest { + // Required. Target publisher resource name. + // Format: `projects/{project}/locations/{location}/publishers/{publisher}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Publisher" + } + ]; +} + +// Requesting a list of Publishers. +message ListPublishersRequest { + // Required. Parent location to query. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Publisher" + } + ]; + + // Optional. Page limit size. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page offset token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response listing Publishers. +message ListPublishersResponse { + // The returned list of Publishers. + repeated Publisher publishers = 1; + + // Page offset continuation token. + string next_page_token = 2; +} + +// Message for getting an AI Application. +message GetAiApplicationRequest { + // Required. Target AI Application resource name. + // Format: + // `projects/{project}/locations/{location}/aiApplications/{ai_application}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/AiApplication" + } + ]; +} + +// Message for requesting a list of AiApplications. +message ListAiApplicationsRequest { + // Required. Parent project and location to query. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/AiApplication" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing AiApplications. +message ListAiApplicationsResponse { + // The list of AiApplications. + repeated AiApplication ai_applications = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for requesting list of Findings. +message ListFindingsRequest { + // Required. Parent value for ListFindingsRequest. Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Finding" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Findings. +message ListFindingsResponse { + // The list of Findings. + repeated Finding findings = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// Message for getting a Finding. +message GetFindingRequest { + // Required. The name of the Finding to retrieve. + // Format: `projects/{project}/locations/{location}/findings/{finding}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Finding" + } + ]; +} + +// Message for requesting a SkillEncryptionSpec. +message GetSkillEncryptionSpecRequest { + // Required. The name of the SkillEncryptionSpec to retrieve. + // Format: `projects/{project}/locations/{location}/skillEncryptionSpec`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/SkillEncryptionSpec" + } + ]; +} + +// Message for updating a SkillEncryptionSpec. +message UpdateSkillEncryptionSpecRequest { + // Required. The SkillEncryptionSpec to update. + SkillEncryptionSpec skill_encryption_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to specify the fields to be overwritten in the + // SkillEncryptionSpec resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields present in the request will be + // overwritten. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/ai_application.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/ai_application.proto new file mode 100644 index 000000000000..4a4ff2a06b30 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/ai_application.proto @@ -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 +// +// 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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/apphub/v1/application.proto"; +import "google/cloud/apphub/v1/attributes.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "AiApplicationProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Represents an AI Application. +message AiApplication { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/AiApplication" + pattern: "projects/{project}/locations/{location}/aiApplications/{ai_application}" + plural: "aiApplications" + singular: "aiApplication" + }; + + // The lifecycle states of an AI Application. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The resource is being provisioned or created. + CREATING = 1; + + // The resource is active and ready for use. + ACTIVE = 2; + + // The resource is in the process of being deleted. + DELETING = 3; + } + + // Identifier. Resource name of the AI Application. + // Format: + // `projects/{project}/locations/{location}/aiApplications/{ai_application}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. User-defined name for the AI Application. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User-defined description of the AI Application. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Universally unique identifier (UUID4) for the AI Application. + string uid = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Creation time. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the AI Application. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Consumer provided attributes. + google.cloud.apphub.v1.Attributes attributes = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Properties of an underlying cloud resource that can comprise + // an AI Application. + google.cloud.apphub.v1.ApplicationProperties application_properties = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/endpoint.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/endpoint.proto index 29978c2197e4..cad22a7d91da 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/endpoint.proto +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/endpoint.proto @@ -35,6 +35,7 @@ message Endpoint { option (google.api.resource) = { type: "agentregistry.googleapis.com/Endpoint" pattern: "projects/{project}/locations/{location}/endpoints/{endpoint}" + pattern: "projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}" plural: "endpoints" singular: "endpoint" }; diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/finding.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/finding.proto new file mode 100644 index 000000000000..94a04911e9bd --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/finding.proto @@ -0,0 +1,120 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "FindingProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// The severity of the finding. +enum Severity { + // This value is used for findings when a source doesn't write a severity + // value. + SEVERITY_UNSPECIFIED = 0; + + // Critical severity. + SEVERITY_CRITICAL = 1; + + // High severity. + SEVERITY_HIGH = 2; + + // Medium severity. + SEVERITY_MEDIUM = 3; + + // Low severity. + SEVERITY_LOW = 4; +} + +// Represents a security Finding. +message Finding { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/Finding" + pattern: "projects/{project}/locations/{location}/findings/{finding}" + plural: "findings" + singular: "finding" + }; + + // File location of the finding. + message File { + // Optional. Relative path of the file containing the finding. + string path = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Line number (1-based), or 0 if whole File / unknown. + int64 line_number = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents what kind of Finding it is. + // For more information on finding classes, see + // https://cloud.google.com/security-command-center/docs/concepts-vulnerabilities-findings#classes. + enum FindingClass { + // Unspecified finding class. + FINDING_CLASS_UNSPECIFIED = 0; + + // Describes a potential weakness in software that increases risk to + // Confidentiality & Integrity & Availability. + VULNERABILITY = 1; + + // Describes a potential security risk due to plaintext credentials, + // keys, or tokens being exposed in an asset or workload. + SECRET = 3; + } + + // Identifier. Resource name of the Finding. + // Format: `projects/{project}/locations/{location}/findings/{finding}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Universally unique identifier (UUID4) for the Finding. + string uid = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Create time. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Severity of the finding. + Severity severity = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Class of the finding. + FindingClass finding_class = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. File associated with the finding. + repeated File files = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Detailed description of the finding. + string detail = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource that the finding is associated with. + string resource = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "*" } + ]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/mcp_server.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/mcp_server.proto index dfea8e01504d..e624cd2beab6 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/mcp_server.proto +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/mcp_server.proto @@ -35,6 +35,7 @@ message McpServer { option (google.api.resource) = { type: "agentregistry.googleapis.com/McpServer" pattern: "projects/{project}/locations/{location}/mcpServers/{mcp_server}" + pattern: "projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}" plural: "mcpServers" singular: "mcpServer" }; @@ -78,6 +79,11 @@ message McpServer { // Output only. Annotations associated with the tool. Annotations annotations = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Protocol-level tool metadata conforming to MCP _meta + // specification. Output only. + google.protobuf.Struct meta = 4 + [json_name = "_meta", (google.api.field_behavior) = OUTPUT_ONLY]; } // Identifier. The resource name of the MCP Server. diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/properties.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/properties.proto index 86a0f1c10467..ed53907dce8a 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/properties.proto +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/properties.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.agentregistry.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/service.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/service.proto index 174bd716cda9..5a8c3ceead5b 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/service.proto +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/service.proto @@ -54,8 +54,11 @@ message Service { A2A_AGENT_CARD = 2; } - // Required. The type of the agent spec content. - Type type = 1 [(google.api.field_behavior) = REQUIRED]; + // Required. Immutable. The type of the agent spec content. + Type type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; // Optional. The content of the Agent spec in the JSON format. // This payload is validated against the schema for the specified type. @@ -65,7 +68,8 @@ message Service { // The spec of the MCP Server. message McpServerSpec { - // The type of the MCP Server spec. + // The type of the MCP Server spec. Additional values may be added in the + // future. enum Type { // Unspecified type. TYPE_UNSPECIFIED = 0; @@ -78,8 +82,11 @@ message Service { TOOL_SPEC = 2; } - // Required. The type of the MCP Server spec content. - Type type = 1 [(google.api.field_behavior) = REQUIRED]; + // Required. Immutable. The type of the MCP Server spec content. + Type type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; // Optional. The content of the MCP Server spec. // This payload is validated against the schema for the specified type. @@ -89,7 +96,8 @@ message Service { // The spec of the endpoint. message EndpointSpec { - // The type of the endpoint spec. + // The type of the endpoint spec. Additional values may be added in the + // future. enum Type { // Unspecified type. TYPE_UNSPECIFIED = 0; @@ -98,8 +106,11 @@ message Service { NO_SPEC = 1; } - // Required. The type of the endpoint spec content. - Type type = 1 [(google.api.field_behavior) = REQUIRED]; + // Required. Immutable. The type of the endpoint spec content. + Type type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; // Optional. The content of the endpoint spec. // Reserved for future use. diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/skill.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/skill.proto new file mode 100644 index 000000000000..0b87890716aa --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/skill.proto @@ -0,0 +1,426 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "SkillProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Represents an Executable Agent Skill or a Composite Tool Suite (Bundle). +// Sibling resource with Agent and McpServer under agentregistry.googleapis.com. +message Skill { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/Skill" + pattern: "projects/{project}/locations/{location}/skills/{skill}" + plural: "skills" + singular: "skill" + }; + + // The structural type of the Skill. + enum Type { + // Default value. This value is unused. + TYPE_UNSPECIFIED = 0; + + // A standard, leaf executable skill containing natural language and code. + SIMPLE = 1; + } + + // System-managed state. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The skill is being created. It is not served. + STATE_CREATING = 1; + + // The skill is in draft, or lacks a valid payload. It is not served. + STATE_DRAFT = 2; + + // The skill is active and is served. + STATE_ACTIVE = 3; + + // The skill is disabled and is not served. + STATE_DISABLED = 4; + + // The skill is deprecated. It is served, but emits warnings. + STATE_DEPRECATED = 5; + + // The skill is decommissioned and is not served. + STATE_DECOMMISSIONED = 6; + + // The skill is being deleted. It is not served. + STATE_DELETING = 7; + } + + // User-configurable target state. + enum TargetState { + // Default value. This value is unused. + TARGET_STATE_UNSPECIFIED = 0; + + // The skill is in draft and cannot be served. + TARGET_STATE_DRAFT = 1; + + // The skill is active and can be served. + TARGET_STATE_ACTIVE = 2; + + // The skill is disabled and cannot be served. + TARGET_STATE_DISABLED = 3; + + // The skill is deprecated. It can still be served, but emits warnings. + TARGET_STATE_DEPRECATED = 4; + + // The skill is decommissioned and cannot be served. + TARGET_STATE_DECOMMISSIONED = 5; + } + + // Identifier. Resource name of the Skill. + // Format: `projects/{project}/locations/{location}/skills/{skill}` + // The `{skill}` segment acts as the resource ID. If the skill is associated + // with a Publisher, this segment typically uses a hyphenated namespace prefix + // corresponding to the publisher (e.g., `google-workspace-create-docs`). + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Universally unique identifier (UUID4) for the logical + // container. + string uid = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Human-readable display name of the skill. + // Maximum length is 128 characters. + string display_name = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Brief summary describing the capabilities of the skill. + // Maximum length is 2048 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle). + Type type = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The system-managed state of the skill. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. User-managed target state of the skill. + TargetState target_state = 7 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The full resource name of the revision currently served by + // default (floating track). + // Format: + // `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` + string default_revision = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/SkillRevision" + } + ]; + + // Output only. Lightweight frontmatter metadata attributes copied from the + // default revision. + Frontmatter frontmatter = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A stable, globally unique logical identifier for the skill. + // It is securely constructed by the backend by combining the associated + // `publisher`'s verified namespace and the skill's resource ID to enforce + // strict ownership. For example, the prefix `google-` is reserved exclusively + // for first-party Google publishers to prevent namespace squatting. + // Example: `urn:skill:google-workspace:create-docs` + string skill_id = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Create time. + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time. + google.protobuf.Timestamp update_time = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The publisher resource associated with this skill. + // Format: `projects/{project}/locations/{location}/publishers/{publisher}` + // The publisher dictates the allowed namespace prefixes for the skill's name + // and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*` + // prefix). + string publisher = 15 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Publisher" + } + ]; + + // Optional. Input only. Optional nested initial revision payload to support + // standard one-shot creation. The server processes this field on input during + // creation but must never return it in responses. + SkillRevision initial_revision = 14 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. Optional. Scanning configuration for the skill. + ScanningConfig scanning_config = 20 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for scanning of the skill. +message ScanningConfig { + // Defines the policy for security scanning. + // + // This enum is not frozen; new values may be added in the future. + enum Policy { + // Default value. Inherits system default (ENABLED_BLOCKING). + POLICY_UNSPECIFIED = 0; + + // Bypasses scanning. + DISABLED = 1; + + // Scans the skill package and blocks download if security or safety issues + // are found. + ENABLED_BLOCKING = 2; + + // Scans the skill package in audit mode without blocking downloads. + ENABLED_NONBLOCKING = 3; + } + + // Optional. The security scanning policy. + Policy policy = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Structured metadata attributes extracted from the package's local SKILL.md +// frontmatter. +message Frontmatter { + // Required. The name of the skill. + string name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Functional description. + string description = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. License. + string license = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Environmental dependencies or companion services. + string compatibility = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Extensible flattened map mapping custom tags, authors, and + // version parameters. + map metadata = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Direct write-only raw archive payload upload. +message ArchiveUploadSource { + // Required. Input only. Write-only raw ZIP/TAR archive payload bytes + // containing the skill package. + bytes archive_content = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = INPUT_ONLY + ]; +} + +// Represents an immutable, versioned snapshot of a Skill package. +message SkillRevision { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/SkillRevision" + pattern: "projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}" + plural: "skillRevisions" + singular: "skillRevision" + }; + + // Scan result of the skill revision. + message ScanResult { + // Represents the lifecycle state of the vulnerability scan. + enum ScanState { + // Should not be used. + SCAN_STATE_UNSPECIFIED = 0; + + // The underlying scanning system failed to execute the scan. + FAILED = 1; + + // The uploaded artifact format is unsupported by the scanning system. + UNSUPPORTED_FORMAT = 2; + + // The scan has completed successfully. + SUCCEEDED = 3; + + // The scan was disabled. + DISABLED = 4; + + // The scan is running. + RUNNING = 5; + } + + // Output only. The state of the vulnerability check. + ScanState scan_state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the scan was completed. + google.protobuf.Timestamp scan_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error message if the scan failed. + string error_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The finding resource names for the skill revision. + repeated string findings = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Finding" + } + ]; + } + + // System-managed computed state. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The revision is being created. + CREATING = 1; + + // The revision is active. + ACTIVE = 2; + + // The revision failed to compile or ingest. + FAILED = 3; + + // The revision is being deleted. + DELETING = 4; + } + + // Output only. The storage location pointer. + // In standard listing, the raw zip bytes are completely excluded. + // They are streamed separately via a dedicated GetSkillRevision request with + // `?alt=media`. + // The physical source pointing to the executable payload. + // Exactly one source must be provided during creation; otherwise, the + // server will return an `INVALID_ARGUMENT` error. + // + // Size constraints: + // - Maximum compressed ZIP size: 500 KB + // - Maximum total uncompressed size: 10 MB + // - Maximum individual uncompressed file size: 1 MB + oneof source { + // Optional. Immutable. Cloud Storage object generation URI. + GcsSource gcs_source = 9 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. Immutable. Direct write-only raw archive upload source. + ArchiveUploadSource archive_upload_source = 12 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; + } + + // Identifier. Resource name of the SkillRevision. + // Format: + // `projects/{project}/locations/{location}/skills/{skill}/revisions/{revision}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The system-managed lifecycle state of this revision. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cryptographic SHA-256 integrity and deduplication digest of + // the payload zip. + string sha256_hash = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Extracted YAML frontmatter configuration snapshot. + Frontmatter frontmatter = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Revision creation timestamp. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size of the compiled zip payload in bytes (assists client + // download progress). + int64 size_bytes = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Universally unique identifier (UUID4) for the skill revision. + string uid = 14 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Scan result of the skill revision. + ScanResult scan_result = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Specifications for Cloud Storage objects. +message GcsSource { + // Required. Cloud Storage object URI. + // Format: + // `gs://{bucket_name}/{object_name}` + string uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Cloud Storage object generation ID. If not specified, the latest + // generation is used. + int64 generation = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a verified Publisher of Skills. +// Prepopulated publishers include `publishers/cloud.google.com` and +// `publishers/workspace.google.com`. +message Publisher { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/Publisher" + pattern: "projects/{project}/locations/{location}/publishers/{publisher}" + plural: "publishers" + singular: "publisher" + }; + + // Curation tier representing the publisher's level of verification. + enum PublisherTier { + // Default value. Unspecified. + PUBLISHER_TIER_UNSPECIFIED = 0; + + // First-party Google-curated and verified global publishers. + FIRST_PARTY = 1; + + // Third-party verified enterprise partner publishers. + THIRD_PARTY = 2; + + // Private publishers within the developer's workspace/project. + PRIVATE = 3; + } + + // Identifier. Resource name of the publisher. + // Format: `projects/{project}/locations/{location}/publishers/{publisher}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The verified prefix (e.g. "snowflake-", "google-") associated + // with this publisher. The system uses this prefix to enforce name-squatting + // rules during Skill registration. Must be globally unique across all + // publishers. + string verified_prefix = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Human readable display name of the publisher. + string display_name = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The curation tier of the publisher. + PublisherTier publisher_tier = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. URI pointing to official publisher documentation. + string documentation_uri = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. URI pointing to the support portal or email. + string support_uri = 6 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/skill_encryption_spec.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/skill_encryption_spec.proto new file mode 100644 index 000000000000..0685d1f945f6 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/skill_encryption_spec.proto @@ -0,0 +1,74 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "SkillEncryptionSpecProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; + +// Once the SkillEncryptionSpec is configured, new Skill payloads are protected +// using the provided customer-managed encryption key instead of a +// Google-managed encryption key. +// +// SkillEncryptionSpec cannot be set if any Skills have already been created +// in the project and location. +message SkillEncryptionSpec { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/SkillEncryptionSpec" + pattern: "projects/{project}/locations/{location}/skillEncryptionSpec" + plural: "skillEncryptionSpecs" + singular: "skillEncryptionSpec" + }; + + // Identifier. Resource name of the SkillEncryptionSpec. + // Format: `projects/{project}/locations/{location}/skillEncryptionSpec` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The Cloud KMS CryptoKey resource name used to protect Skill + // payloads in this project and location. + // This field can be set or updated only when no Skills exist in the target + // project and location. Once any Skill exists in the location, updating this + // field is rejected with `FAILED_PRECONDITION`. + // Format: + // `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}` + string crypto_key_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + + // Output only. Creation timestamp. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Most recent update timestamp. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/AsyncCreateSkill.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/AsyncCreateSkill.java new file mode 100644 index 000000000000..4af445ccae8d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/AsyncCreateSkill.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkill_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateSkillRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.longrunning.Operation; + +public class AsyncCreateSkill { + + public static void main(String[] args) throws Exception { + asyncCreateSkill(); + } + + public static void asyncCreateSkill() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateSkillRequest request = + CreateSkillRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSkillId("skillId2147320652") + .setSkill(Skill.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = agentRegistryClient.createSkillCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkill_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/AsyncCreateSkillLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/AsyncCreateSkillLRO.java new file mode 100644 index 000000000000..605b5e96b79e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/AsyncCreateSkillLRO.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkill_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateSkillRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.Skill; + +public class AsyncCreateSkillLRO { + + public static void main(String[] args) throws Exception { + asyncCreateSkillLRO(); + } + + public static void asyncCreateSkillLRO() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateSkillRequest request = + CreateSkillRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSkillId("skillId2147320652") + .setSkill(Skill.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.createSkillOperationCallable().futureCall(request); + // Do something. + Skill response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkill_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkill.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkill.java new file mode 100644 index 000000000000..7f9d35116ffe --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkill.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkill_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateSkillRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; + +public class SyncCreateSkill { + + public static void main(String[] args) throws Exception { + syncCreateSkill(); + } + + public static void syncCreateSkill() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateSkillRequest request = + CreateSkillRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSkillId("skillId2147320652") + .setSkill(Skill.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Skill response = agentRegistryClient.createSkillAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkill_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkillLocationnameSkillString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkillLocationnameSkillString.java new file mode 100644 index 000000000000..f1da6653d316 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkillLocationnameSkillString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkill_LocationnameSkillString_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; + +public class SyncCreateSkillLocationnameSkillString { + + public static void main(String[] args) throws Exception { + syncCreateSkillLocationnameSkillString(); + } + + public static void syncCreateSkillLocationnameSkillString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + Skill response = agentRegistryClient.createSkillAsync(parent, skill, skillId).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkill_LocationnameSkillString_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkillStringSkillString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkillStringSkillString.java new file mode 100644 index 000000000000..e792fcd4c49b --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskill/SyncCreateSkillStringSkillString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkill_StringSkillString_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; + +public class SyncCreateSkillStringSkillString { + + public static void main(String[] args) throws Exception { + syncCreateSkillStringSkillString(); + } + + public static void syncCreateSkillStringSkillString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Skill skill = Skill.newBuilder().build(); + String skillId = "skillId2147320652"; + Skill response = agentRegistryClient.createSkillAsync(parent, skill, skillId).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkill_StringSkillString_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/AsyncCreateSkillRevision.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/AsyncCreateSkillRevision.java new file mode 100644 index 000000000000..c7b5f8692940 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/AsyncCreateSkillRevision.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; +import com.google.longrunning.Operation; + +public class AsyncCreateSkillRevision { + + public static void main(String[] args) throws Exception { + asyncCreateSkillRevision(); + } + + public static void asyncCreateSkillRevision() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateSkillRevisionRequest request = + CreateSkillRevisionRequest.newBuilder() + .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setSkillRevision(SkillRevision.newBuilder().build()) + .setSkillRevisionId("skillRevisionId-983110777") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + agentRegistryClient.createSkillRevisionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/AsyncCreateSkillRevisionLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/AsyncCreateSkillRevisionLRO.java new file mode 100644 index 000000000000..40d0bf059d2d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/AsyncCreateSkillRevisionLRO.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; + +public class AsyncCreateSkillRevisionLRO { + + public static void main(String[] args) throws Exception { + asyncCreateSkillRevisionLRO(); + } + + public static void asyncCreateSkillRevisionLRO() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateSkillRevisionRequest request = + CreateSkillRevisionRequest.newBuilder() + .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setSkillRevision(SkillRevision.newBuilder().build()) + .setSkillRevisionId("skillRevisionId-983110777") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.createSkillRevisionOperationCallable().futureCall(request); + // Do something. + SkillRevision response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevision.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevision.java new file mode 100644 index 000000000000..38d17548e72e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevision.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateSkillRevisionRequest; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; + +public class SyncCreateSkillRevision { + + public static void main(String[] args) throws Exception { + syncCreateSkillRevision(); + } + + public static void syncCreateSkillRevision() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateSkillRevisionRequest request = + CreateSkillRevisionRequest.newBuilder() + .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setSkillRevision(SkillRevision.newBuilder().build()) + .setSkillRevisionId("skillRevisionId-983110777") + .setRequestId("requestId693933066") + .build(); + SkillRevision response = agentRegistryClient.createSkillRevisionAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevisionSkillnameSkillrevisionString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevisionSkillnameSkillrevisionString.java new file mode 100644 index 000000000000..41bcb03cc93a --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevisionSkillnameSkillrevisionString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_SkillnameSkillrevisionString_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; + +public class SyncCreateSkillRevisionSkillnameSkillrevisionString { + + public static void main(String[] args) throws Exception { + syncCreateSkillRevisionSkillnameSkillrevisionString(); + } + + public static void syncCreateSkillRevisionSkillnameSkillrevisionString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + SkillRevision response = + agentRegistryClient + .createSkillRevisionAsync(parent, skillRevision, skillRevisionId) + .get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_SkillnameSkillrevisionString_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevisionStringSkillrevisionString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevisionStringSkillrevisionString.java new file mode 100644 index 000000000000..db249543ef82 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createskillrevision/SyncCreateSkillRevisionStringSkillrevisionString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_StringSkillrevisionString_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; + +public class SyncCreateSkillRevisionStringSkillrevisionString { + + public static void main(String[] args) throws Exception { + syncCreateSkillRevisionStringSkillrevisionString(); + } + + public static void syncCreateSkillRevisionStringSkillrevisionString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString(); + SkillRevision skillRevision = SkillRevision.newBuilder().build(); + String skillRevisionId = "skillRevisionId-983110777"; + SkillRevision response = + agentRegistryClient + .createSkillRevisionAsync(parent, skillRevision, skillRevisionId) + .get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateSkillRevision_StringSkillrevisionString_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/AsyncDeleteSkill.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/AsyncDeleteSkill.java new file mode 100644 index 000000000000..c0afe2665862 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/AsyncDeleteSkill.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkill_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteSkillRequest; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.longrunning.Operation; + +public class AsyncDeleteSkill { + + public static void main(String[] args) throws Exception { + asyncDeleteSkill(); + } + + public static void asyncDeleteSkill() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteSkillRequest request = + DeleteSkillRequest.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = agentRegistryClient.deleteSkillCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkill_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/AsyncDeleteSkillLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/AsyncDeleteSkillLRO.java new file mode 100644 index 000000000000..bb2e3d6567c2 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/AsyncDeleteSkillLRO.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkill_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteSkillRequest; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSkillLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteSkillLRO(); + } + + public static void asyncDeleteSkillLRO() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteSkillRequest request = + DeleteSkillRequest.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + agentRegistryClient.deleteSkillOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkill_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkill.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkill.java new file mode 100644 index 000000000000..dbd027403aae --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkill.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkill_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteSkillRequest; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.protobuf.Empty; + +public class SyncDeleteSkill { + + public static void main(String[] args) throws Exception { + syncDeleteSkill(); + } + + public static void syncDeleteSkill() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteSkillRequest request = + DeleteSkillRequest.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + agentRegistryClient.deleteSkillAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkill_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkillSkillname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkillSkillname.java new file mode 100644 index 000000000000..38332a9b8e72 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkillSkillname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkill_Skillname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.protobuf.Empty; + +public class SyncDeleteSkillSkillname { + + public static void main(String[] args) throws Exception { + syncDeleteSkillSkillname(); + } + + public static void syncDeleteSkillSkillname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + agentRegistryClient.deleteSkillAsync(name).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkill_Skillname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkillString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkillString.java new file mode 100644 index 000000000000..bf224c63c6a5 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskill/SyncDeleteSkillString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkill_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.protobuf.Empty; + +public class SyncDeleteSkillString { + + public static void main(String[] args) throws Exception { + syncDeleteSkillString(); + } + + public static void syncDeleteSkillString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString(); + agentRegistryClient.deleteSkillAsync(name).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkill_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/AsyncDeleteSkillRevision.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/AsyncDeleteSkillRevision.java new file mode 100644 index 000000000000..6c8645d8c85f --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/AsyncDeleteSkillRevision.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest; +import com.google.cloud.agentregistry.v1.SkillRevisionName; +import com.google.longrunning.Operation; + +public class AsyncDeleteSkillRevision { + + public static void main(String[] args) throws Exception { + asyncDeleteSkillRevision(); + } + + public static void asyncDeleteSkillRevision() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteSkillRevisionRequest request = + DeleteSkillRevisionRequest.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + agentRegistryClient.deleteSkillRevisionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/AsyncDeleteSkillRevisionLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/AsyncDeleteSkillRevisionLRO.java new file mode 100644 index 000000000000..40edbd192f7c --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/AsyncDeleteSkillRevisionLRO.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.SkillRevisionName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSkillRevisionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteSkillRevisionLRO(); + } + + public static void asyncDeleteSkillRevisionLRO() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteSkillRevisionRequest request = + DeleteSkillRevisionRequest.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.deleteSkillRevisionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevision.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevision.java new file mode 100644 index 000000000000..08cc6f168cfc --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevision.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteSkillRevisionRequest; +import com.google.cloud.agentregistry.v1.SkillRevisionName; +import com.google.protobuf.Empty; + +public class SyncDeleteSkillRevision { + + public static void main(String[] args) throws Exception { + syncDeleteSkillRevision(); + } + + public static void syncDeleteSkillRevision() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteSkillRevisionRequest request = + DeleteSkillRevisionRequest.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + agentRegistryClient.deleteSkillRevisionAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevisionSkillrevisionname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevisionSkillrevisionname.java new file mode 100644 index 000000000000..e3bd2c8cb5c5 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevisionSkillrevisionname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_Skillrevisionname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillRevisionName; +import com.google.protobuf.Empty; + +public class SyncDeleteSkillRevisionSkillrevisionname { + + public static void main(String[] args) throws Exception { + syncDeleteSkillRevisionSkillrevisionname(); + } + + public static void syncDeleteSkillRevisionSkillrevisionname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + agentRegistryClient.deleteSkillRevisionAsync(name).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_Skillrevisionname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevisionString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevisionString.java new file mode 100644 index 000000000000..42bb09b30cab --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteskillrevision/SyncDeleteSkillRevisionString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillRevisionName; +import com.google.protobuf.Empty; + +public class SyncDeleteSkillRevisionString { + + public static void main(String[] args) throws Exception { + syncDeleteSkillRevisionString(); + } + + public static void syncDeleteSkillRevisionString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString(); + agentRegistryClient.deleteSkillRevisionAsync(name).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteSkillRevision_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/AsyncGetAgent.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/AsyncGetAgent.java index 88caa0037e99..21ebbf28bc1d 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/AsyncGetAgent.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/AsyncGetAgent.java @@ -38,7 +38,9 @@ public static void asyncGetAgent() throws Exception { try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { GetAgentRequest request = GetAgentRequest.newBuilder() - .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setName( + AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]") + .toString()) .build(); ApiFuture future = agentRegistryClient.getAgentCallable().futureCall(request); // Do something. diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgent.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgent.java index 267631db37e2..030aec92dc27 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgent.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgent.java @@ -37,7 +37,9 @@ public static void syncGetAgent() throws Exception { try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { GetAgentRequest request = GetAgentRequest.newBuilder() - .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setName( + AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]") + .toString()) .build(); Agent response = agentRegistryClient.getAgent(request); } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentAgentname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentAgentname.java index dba3768b48b3..b36427a9db6f 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentAgentname.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentAgentname.java @@ -34,7 +34,7 @@ public static void syncGetAgentAgentname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + AgentName name = AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]"); Agent response = agentRegistryClient.getAgent(name); } } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentString.java index 902097b3f001..1e70af54ab57 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentString.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentString.java @@ -34,7 +34,8 @@ public static void syncGetAgentString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); + String name = + AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); Agent response = agentRegistryClient.getAgent(name); } } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/AsyncGetAiApplication.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/AsyncGetAiApplication.java new file mode 100644 index 000000000000..dc5c2da795d9 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/AsyncGetAiApplication.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplication_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.GetAiApplicationRequest; + +public class AsyncGetAiApplication { + + public static void main(String[] args) throws Exception { + asyncGetAiApplication(); + } + + public static void asyncGetAiApplication() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAiApplicationRequest request = + GetAiApplicationRequest.newBuilder() + .setName( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .build(); + ApiFuture future = + agentRegistryClient.getAiApplicationCallable().futureCall(request); + // Do something. + AiApplication response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplication_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplication.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplication.java new file mode 100644 index 000000000000..74ff38a80249 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplication.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplication_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.GetAiApplicationRequest; + +public class SyncGetAiApplication { + + public static void main(String[] args) throws Exception { + syncGetAiApplication(); + } + + public static void syncGetAiApplication() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAiApplicationRequest request = + GetAiApplicationRequest.newBuilder() + .setName( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .build(); + AiApplication response = agentRegistryClient.getAiApplication(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplication_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplicationAiapplicationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplicationAiapplicationname.java new file mode 100644 index 000000000000..fa30114b7bbc --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplicationAiapplicationname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplication_Aiapplicationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.AiApplicationName; + +public class SyncGetAiApplicationAiapplicationname { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationAiapplicationname(); + } + + public static void syncGetAiApplicationAiapplicationname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + AiApplicationName name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + AiApplication response = agentRegistryClient.getAiApplication(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplication_Aiapplicationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplicationString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplicationString.java new file mode 100644 index 000000000000..079a80577b73 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplication/SyncGetAiApplicationString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplication_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.AiApplicationName; + +public class SyncGetAiApplicationString { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationString(); + } + + public static void syncGetAiApplicationString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString(); + AiApplication response = agentRegistryClient.getAiApplication(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplication_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/AsyncGetAiApplicationAgent.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/AsyncGetAiApplicationAgent.java new file mode 100644 index 000000000000..2e73ef112290 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/AsyncGetAiApplicationAgent.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationAgent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentName; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest; + +public class AsyncGetAiApplicationAgent { + + public static void main(String[] args) throws Exception { + asyncGetAiApplicationAgent(); + } + + public static void asyncGetAiApplicationAgent() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAiApplicationAgentRequest request = + GetAiApplicationAgentRequest.newBuilder() + .setName( + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]") + .toString()) + .build(); + ApiFuture future = + agentRegistryClient.getAiApplicationAgentCallable().futureCall(request); + // Do something. + Agent response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationAgent_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgent.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgent.java new file mode 100644 index 000000000000..1bde3cf92fda --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgent.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationAgent_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentName; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetAiApplicationAgentRequest; + +public class SyncGetAiApplicationAgent { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationAgent(); + } + + public static void syncGetAiApplicationAgent() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAiApplicationAgentRequest request = + GetAiApplicationAgentRequest.newBuilder() + .setName( + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]") + .toString()) + .build(); + Agent response = agentRegistryClient.getAiApplicationAgent(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationAgent_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgentAgentname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgentAgentname.java new file mode 100644 index 000000000000..0b633d5a57e3 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgentAgentname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationAgent_Agentname_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentName; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; + +public class SyncGetAiApplicationAgentAgentname { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationAgentAgentname(); + } + + public static void syncGetAiApplicationAgentAgentname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + AgentName name = + AgentName.ofProjectLocationAiApplicationAgentName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[AGENT]"); + Agent response = agentRegistryClient.getAiApplicationAgent(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationAgent_Agentname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgentString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgentString.java new file mode 100644 index 000000000000..fa9910600d08 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationagent/SyncGetAiApplicationAgentString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationAgent_String_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentName; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; + +public class SyncGetAiApplicationAgentString { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationAgentString(); + } + + public static void syncGetAiApplicationAgentString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = + AgentName.ofProjectLocationAgentName("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); + Agent response = agentRegistryClient.getAiApplicationAgent(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationAgent_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/AsyncGetAiApplicationEndpoint.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/AsyncGetAiApplicationEndpoint.java new file mode 100644 index 000000000000..4be0335f408a --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/AsyncGetAiApplicationEndpoint.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationEndpoint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.EndpointName; +import com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest; + +public class AsyncGetAiApplicationEndpoint { + + public static void main(String[] args) throws Exception { + asyncGetAiApplicationEndpoint(); + } + + public static void asyncGetAiApplicationEndpoint() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAiApplicationEndpointRequest request = + GetAiApplicationEndpointRequest.newBuilder() + .setName( + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]") + .toString()) + .build(); + ApiFuture future = + agentRegistryClient.getAiApplicationEndpointCallable().futureCall(request); + // Do something. + Endpoint response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationEndpoint_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpoint.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpoint.java new file mode 100644 index 000000000000..95f810eabf74 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpoint.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationEndpoint_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.EndpointName; +import com.google.cloud.agentregistry.v1.GetAiApplicationEndpointRequest; + +public class SyncGetAiApplicationEndpoint { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationEndpoint(); + } + + public static void syncGetAiApplicationEndpoint() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAiApplicationEndpointRequest request = + GetAiApplicationEndpointRequest.newBuilder() + .setName( + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]") + .toString()) + .build(); + Endpoint response = agentRegistryClient.getAiApplicationEndpoint(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationEndpoint_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpointEndpointname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpointEndpointname.java new file mode 100644 index 000000000000..1bac4c8db347 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpointEndpointname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationEndpoint_Endpointname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.EndpointName; + +public class SyncGetAiApplicationEndpointEndpointname { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationEndpointEndpointname(); + } + + public static void syncGetAiApplicationEndpointEndpointname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + EndpointName name = + EndpointName.ofProjectLocationAiApplicationEndpointName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[ENDPOINT]"); + Endpoint response = agentRegistryClient.getAiApplicationEndpoint(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationEndpoint_Endpointname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpointString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpointString.java new file mode 100644 index 000000000000..a212df83ad7e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationendpoint/SyncGetAiApplicationEndpointString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationEndpoint_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.EndpointName; + +public class SyncGetAiApplicationEndpointString { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationEndpointString(); + } + + public static void syncGetAiApplicationEndpointString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString(); + Endpoint response = agentRegistryClient.getAiApplicationEndpoint(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationEndpoint_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/AsyncGetAiApplicationMcpServer.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/AsyncGetAiApplicationMcpServer.java new file mode 100644 index 000000000000..7fc96b97384c --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/AsyncGetAiApplicationMcpServer.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationMcpServer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.McpServerName; + +public class AsyncGetAiApplicationMcpServer { + + public static void main(String[] args) throws Exception { + asyncGetAiApplicationMcpServer(); + } + + public static void asyncGetAiApplicationMcpServer() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAiApplicationMcpServerRequest request = + GetAiApplicationMcpServerRequest.newBuilder() + .setName( + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]") + .toString()) + .build(); + ApiFuture future = + agentRegistryClient.getAiApplicationMcpServerCallable().futureCall(request); + // Do something. + McpServer response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationMcpServer_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServer.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServer.java new file mode 100644 index 000000000000..b201e0dbe52d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServer.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationMcpServer_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetAiApplicationMcpServerRequest; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.McpServerName; + +public class SyncGetAiApplicationMcpServer { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationMcpServer(); + } + + public static void syncGetAiApplicationMcpServer() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAiApplicationMcpServerRequest request = + GetAiApplicationMcpServerRequest.newBuilder() + .setName( + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]") + .toString()) + .build(); + McpServer response = agentRegistryClient.getAiApplicationMcpServer(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationMcpServer_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServerMcpservername.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServerMcpservername.java new file mode 100644 index 000000000000..9f14ccb99adb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServerMcpservername.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationMcpServer_Mcpservername_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.McpServerName; + +public class SyncGetAiApplicationMcpServerMcpservername { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationMcpServerMcpservername(); + } + + public static void syncGetAiApplicationMcpServerMcpservername() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + McpServerName name = + McpServerName.ofProjectLocationAiApplicationMcpServerName( + "[PROJECT]", "[LOCATION]", "[AI_APPLICATION]", "[MCP_SERVER]"); + McpServer response = agentRegistryClient.getAiApplicationMcpServer(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationMcpServer_Mcpservername_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServerString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServerString.java new file mode 100644 index 000000000000..f28bf108100d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getaiapplicationmcpserver/SyncGetAiApplicationMcpServerString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAiApplicationMcpServer_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.McpServerName; + +public class SyncGetAiApplicationMcpServerString { + + public static void main(String[] args) throws Exception { + syncGetAiApplicationMcpServerString(); + } + + public static void syncGetAiApplicationMcpServerString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = + McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + .toString(); + McpServer response = agentRegistryClient.getAiApplicationMcpServer(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAiApplicationMcpServer_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/AsyncGetEndpoint.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/AsyncGetEndpoint.java index b1cf8ea3e343..9d956f8548eb 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/AsyncGetEndpoint.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/AsyncGetEndpoint.java @@ -38,7 +38,10 @@ public static void asyncGetEndpoint() throws Exception { try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { GetEndpointRequest request = GetEndpointRequest.newBuilder() - .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setName( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) .build(); ApiFuture future = agentRegistryClient.getEndpointCallable().futureCall(request); // Do something. diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpoint.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpoint.java index 79d634d3bb16..a7879df8ff25 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpoint.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpoint.java @@ -37,7 +37,10 @@ public static void syncGetEndpoint() throws Exception { try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { GetEndpointRequest request = GetEndpointRequest.newBuilder() - .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setName( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) .build(); Endpoint response = agentRegistryClient.getEndpoint(request); } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointEndpointname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointEndpointname.java index f4f4cbc4f314..1ab2b1254b9e 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointEndpointname.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointEndpointname.java @@ -34,7 +34,8 @@ public static void syncGetEndpointEndpointname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + EndpointName name = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); Endpoint response = agentRegistryClient.getEndpoint(name); } } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointString.java index a777c22d70a4..9570c4be105b 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointString.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointString.java @@ -34,7 +34,9 @@ public static void syncGetEndpointString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString(); + String name = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString(); Endpoint response = agentRegistryClient.getEndpoint(name); } } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/AsyncGetFinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/AsyncGetFinding.java new file mode 100644 index 000000000000..e5ad9e4695d4 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/AsyncGetFinding.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetFinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.FindingName; +import com.google.cloud.agentregistry.v1.GetFindingRequest; + +public class AsyncGetFinding { + + public static void main(String[] args) throws Exception { + asyncGetFinding(); + } + + public static void asyncGetFinding() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetFindingRequest request = + GetFindingRequest.newBuilder() + .setName(FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString()) + .build(); + ApiFuture future = agentRegistryClient.getFindingCallable().futureCall(request); + // Do something. + Finding response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetFinding_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFinding.java new file mode 100644 index 000000000000..98ade82f2b99 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFinding.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetFinding_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.FindingName; +import com.google.cloud.agentregistry.v1.GetFindingRequest; + +public class SyncGetFinding { + + public static void main(String[] args) throws Exception { + syncGetFinding(); + } + + public static void syncGetFinding() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetFindingRequest request = + GetFindingRequest.newBuilder() + .setName(FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString()) + .build(); + Finding response = agentRegistryClient.getFinding(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetFinding_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFindingFindingname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFindingFindingname.java new file mode 100644 index 000000000000..9902a9b28e0a --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFindingFindingname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetFinding_Findingname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.FindingName; + +public class SyncGetFindingFindingname { + + public static void main(String[] args) throws Exception { + syncGetFindingFindingname(); + } + + public static void syncGetFindingFindingname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + FindingName name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]"); + Finding response = agentRegistryClient.getFinding(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetFinding_Findingname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFindingString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFindingString.java new file mode 100644 index 000000000000..9ba1a54e43e7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getfinding/SyncGetFindingString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetFinding_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.FindingName; + +public class SyncGetFindingString { + + public static void main(String[] args) throws Exception { + syncGetFindingString(); + } + + public static void syncGetFindingString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = FindingName.of("[PROJECT]", "[LOCATION]", "[FINDING]").toString(); + Finding response = agentRegistryClient.getFinding(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetFinding_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/AsyncGetMcpServer.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/AsyncGetMcpServer.java index b5ab91038c25..06012e0bd8ed 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/AsyncGetMcpServer.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/AsyncGetMcpServer.java @@ -38,7 +38,10 @@ public static void asyncGetMcpServer() throws Exception { try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { GetMcpServerRequest request = GetMcpServerRequest.newBuilder() - .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setName( + McpServerName.ofProjectLocationMcpServerName( + "[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + .toString()) .build(); ApiFuture future = agentRegistryClient.getMcpServerCallable().futureCall(request); // Do something. diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServer.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServer.java index d897c88ec4a1..90f15dbd19d0 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServer.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServer.java @@ -37,7 +37,10 @@ public static void syncGetMcpServer() throws Exception { try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { GetMcpServerRequest request = GetMcpServerRequest.newBuilder() - .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setName( + McpServerName.ofProjectLocationMcpServerName( + "[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + .toString()) .build(); McpServer response = agentRegistryClient.getMcpServer(request); } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerMcpservername.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerMcpservername.java index e46db4b0edcf..d0181ecf359b 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerMcpservername.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerMcpservername.java @@ -34,7 +34,8 @@ public static void syncGetMcpServerMcpservername() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + McpServerName name = + McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); McpServer response = agentRegistryClient.getMcpServer(name); } } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerString.java index 6d127a111720..8f2411e2886e 100644 --- a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerString.java +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerString.java @@ -34,7 +34,9 @@ public static void syncGetMcpServerString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { - String name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString(); + String name = + McpServerName.ofProjectLocationMcpServerName("[PROJECT]", "[LOCATION]", "[MCP_SERVER]") + .toString(); McpServer response = agentRegistryClient.getMcpServer(name); } } diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/AsyncGetPublisher.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/AsyncGetPublisher.java new file mode 100644 index 000000000000..91f5d7b86668 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/AsyncGetPublisher.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetPublisher_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetPublisherRequest; +import com.google.cloud.agentregistry.v1.Publisher; +import com.google.cloud.agentregistry.v1.PublisherName; + +public class AsyncGetPublisher { + + public static void main(String[] args) throws Exception { + asyncGetPublisher(); + } + + public static void asyncGetPublisher() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetPublisherRequest request = + GetPublisherRequest.newBuilder() + .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .build(); + ApiFuture future = agentRegistryClient.getPublisherCallable().futureCall(request); + // Do something. + Publisher response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetPublisher_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisher.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisher.java new file mode 100644 index 000000000000..e674faaa0d98 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisher.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetPublisher_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetPublisherRequest; +import com.google.cloud.agentregistry.v1.Publisher; +import com.google.cloud.agentregistry.v1.PublisherName; + +public class SyncGetPublisher { + + public static void main(String[] args) throws Exception { + syncGetPublisher(); + } + + public static void syncGetPublisher() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetPublisherRequest request = + GetPublisherRequest.newBuilder() + .setName(PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString()) + .build(); + Publisher response = agentRegistryClient.getPublisher(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetPublisher_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisherPublishername.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisherPublishername.java new file mode 100644 index 000000000000..f1900a2790aa --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisherPublishername.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetPublisher_Publishername_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Publisher; +import com.google.cloud.agentregistry.v1.PublisherName; + +public class SyncGetPublisherPublishername { + + public static void main(String[] args) throws Exception { + syncGetPublisherPublishername(); + } + + public static void syncGetPublisherPublishername() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + PublisherName name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]"); + Publisher response = agentRegistryClient.getPublisher(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetPublisher_Publishername_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisherString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisherString.java new file mode 100644 index 000000000000..6a3dfb21c11d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getpublisher/SyncGetPublisherString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetPublisher_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Publisher; +import com.google.cloud.agentregistry.v1.PublisherName; + +public class SyncGetPublisherString { + + public static void main(String[] args) throws Exception { + syncGetPublisherString(); + } + + public static void syncGetPublisherString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = PublisherName.of("[PROJECT]", "[LOCATION]", "[PUBLISHER]").toString(); + Publisher response = agentRegistryClient.getPublisher(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetPublisher_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/AsyncGetSkill.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/AsyncGetSkill.java new file mode 100644 index 000000000000..0cf948471d37 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/AsyncGetSkill.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkill_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetSkillRequest; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.SkillName; + +public class AsyncGetSkill { + + public static void main(String[] args) throws Exception { + asyncGetSkill(); + } + + public static void asyncGetSkill() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetSkillRequest request = + GetSkillRequest.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .build(); + ApiFuture future = agentRegistryClient.getSkillCallable().futureCall(request); + // Do something. + Skill response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkill_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkill.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkill.java new file mode 100644 index 000000000000..479562bacee1 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkill.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkill_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetSkillRequest; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.SkillName; + +public class SyncGetSkill { + + public static void main(String[] args) throws Exception { + syncGetSkill(); + } + + public static void syncGetSkill() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetSkillRequest request = + GetSkillRequest.newBuilder() + .setName(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .build(); + Skill response = agentRegistryClient.getSkill(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkill_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkillSkillname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkillSkillname.java new file mode 100644 index 000000000000..f76655622860 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkillSkillname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkill_Skillname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.SkillName; + +public class SyncGetSkillSkillname { + + public static void main(String[] args) throws Exception { + syncGetSkillSkillname(); + } + + public static void syncGetSkillSkillname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SkillName name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + Skill response = agentRegistryClient.getSkill(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkill_Skillname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkillString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkillString.java new file mode 100644 index 000000000000..2ebe05b7a54b --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskill/SyncGetSkillString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkill_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.SkillName; + +public class SyncGetSkillString { + + public static void main(String[] args) throws Exception { + syncGetSkillString(); + } + + public static void syncGetSkillString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString(); + Skill response = agentRegistryClient.getSkill(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkill_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/AsyncGetSkillEncryptionSpec.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/AsyncGetSkillEncryptionSpec.java new file mode 100644 index 000000000000..3e50180ba9fb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/AsyncGetSkillEncryptionSpec.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkillEncryptionSpec_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpecName; + +public class AsyncGetSkillEncryptionSpec { + + public static void main(String[] args) throws Exception { + asyncGetSkillEncryptionSpec(); + } + + public static void asyncGetSkillEncryptionSpec() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetSkillEncryptionSpecRequest request = + GetSkillEncryptionSpecRequest.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + agentRegistryClient.getSkillEncryptionSpecCallable().futureCall(request); + // Do something. + SkillEncryptionSpec response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkillEncryptionSpec_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpec.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpec.java new file mode 100644 index 000000000000..62cd7db0c1ae --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpec.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkillEncryptionSpec_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetSkillEncryptionSpecRequest; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpecName; + +public class SyncGetSkillEncryptionSpec { + + public static void main(String[] args) throws Exception { + syncGetSkillEncryptionSpec(); + } + + public static void syncGetSkillEncryptionSpec() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetSkillEncryptionSpecRequest request = + GetSkillEncryptionSpecRequest.newBuilder() + .setName(SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + SkillEncryptionSpec response = agentRegistryClient.getSkillEncryptionSpec(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkillEncryptionSpec_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpecSkillencryptionspecname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpecSkillencryptionspecname.java new file mode 100644 index 000000000000..3fc4372df4f9 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpecSkillencryptionspecname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkillEncryptionSpec_Skillencryptionspecname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpecName; + +public class SyncGetSkillEncryptionSpecSkillencryptionspecname { + + public static void main(String[] args) throws Exception { + syncGetSkillEncryptionSpecSkillencryptionspecname(); + } + + public static void syncGetSkillEncryptionSpecSkillencryptionspecname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SkillEncryptionSpecName name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]"); + SkillEncryptionSpec response = agentRegistryClient.getSkillEncryptionSpec(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkillEncryptionSpec_Skillencryptionspecname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpecString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpecString.java new file mode 100644 index 000000000000..76699fde88a2 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillencryptionspec/SyncGetSkillEncryptionSpecString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkillEncryptionSpec_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpecName; + +public class SyncGetSkillEncryptionSpecString { + + public static void main(String[] args) throws Exception { + syncGetSkillEncryptionSpecString(); + } + + public static void syncGetSkillEncryptionSpecString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = SkillEncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString(); + SkillEncryptionSpec response = agentRegistryClient.getSkillEncryptionSpec(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkillEncryptionSpec_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/AsyncGetSkillRevision.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/AsyncGetSkillRevision.java new file mode 100644 index 000000000000..968475947cf3 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/AsyncGetSkillRevision.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkillRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetSkillRevisionRequest; +import com.google.cloud.agentregistry.v1.SkillRevision; +import com.google.cloud.agentregistry.v1.SkillRevisionName; + +public class AsyncGetSkillRevision { + + public static void main(String[] args) throws Exception { + asyncGetSkillRevision(); + } + + public static void asyncGetSkillRevision() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetSkillRevisionRequest request = + GetSkillRevisionRequest.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]") + .toString()) + .build(); + ApiFuture future = + agentRegistryClient.getSkillRevisionCallable().futureCall(request); + // Do something. + SkillRevision response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkillRevision_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevision.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevision.java new file mode 100644 index 000000000000..d6b5d17cba9a --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevision.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkillRevision_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetSkillRevisionRequest; +import com.google.cloud.agentregistry.v1.SkillRevision; +import com.google.cloud.agentregistry.v1.SkillRevisionName; + +public class SyncGetSkillRevision { + + public static void main(String[] args) throws Exception { + syncGetSkillRevision(); + } + + public static void syncGetSkillRevision() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetSkillRevisionRequest request = + GetSkillRevisionRequest.newBuilder() + .setName( + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]") + .toString()) + .build(); + SkillRevision response = agentRegistryClient.getSkillRevision(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkillRevision_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevisionSkillrevisionname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevisionSkillrevisionname.java new file mode 100644 index 000000000000..436b89d9f2fb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevisionSkillrevisionname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkillRevision_Skillrevisionname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillRevision; +import com.google.cloud.agentregistry.v1.SkillRevisionName; + +public class SyncGetSkillRevisionSkillrevisionname { + + public static void main(String[] args) throws Exception { + syncGetSkillRevisionSkillrevisionname(); + } + + public static void syncGetSkillRevisionSkillrevisionname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SkillRevisionName name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]"); + SkillRevision response = agentRegistryClient.getSkillRevision(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkillRevision_Skillrevisionname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevisionString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevisionString.java new file mode 100644 index 000000000000..0cf979bd5a40 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getskillrevision/SyncGetSkillRevisionString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetSkillRevision_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillRevision; +import com.google.cloud.agentregistry.v1.SkillRevisionName; + +public class SyncGetSkillRevisionString { + + public static void main(String[] args) throws Exception { + syncGetSkillRevisionString(); + } + + public static void syncGetSkillRevisionString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = + SkillRevisionName.of("[PROJECT]", "[LOCATION]", "[SKILL]", "[REVISION]").toString(); + SkillRevision response = agentRegistryClient.getSkillRevision(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetSkillRevision_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/AsyncListAiApplicationAgents.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/AsyncListAiApplicationAgents.java new file mode 100644 index 000000000000..70e3f2e52284 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/AsyncListAiApplicationAgents.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest; + +public class AsyncListAiApplicationAgents { + + public static void main(String[] args) throws Exception { + asyncListAiApplicationAgents(); + } + + public static void asyncListAiApplicationAgents() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationAgentsRequest request = + ListAiApplicationAgentsRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentRegistryClient.listAiApplicationAgentsPagedCallable().futureCall(request); + // Do something. + for (Agent element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/AsyncListAiApplicationAgentsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/AsyncListAiApplicationAgentsPaged.java new file mode 100644 index 000000000000..3da8b5c3d3e7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/AsyncListAiApplicationAgentsPaged.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_Paged_async] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsResponse; +import com.google.common.base.Strings; + +public class AsyncListAiApplicationAgentsPaged { + + public static void main(String[] args) throws Exception { + asyncListAiApplicationAgentsPaged(); + } + + public static void asyncListAiApplicationAgentsPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationAgentsRequest request = + ListAiApplicationAgentsRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAiApplicationAgentsResponse response = + agentRegistryClient.listAiApplicationAgentsCallable().call(request); + for (Agent element : response.getAgentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgents.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgents.java new file mode 100644 index 000000000000..8658858f35d5 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgents.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.ListAiApplicationAgentsRequest; + +public class SyncListAiApplicationAgents { + + public static void main(String[] args) throws Exception { + syncListAiApplicationAgents(); + } + + public static void syncListAiApplicationAgents() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationAgentsRequest request = + ListAiApplicationAgentsRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Agent element : agentRegistryClient.listAiApplicationAgents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgentsAiapplicationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgentsAiapplicationname.java new file mode 100644 index 000000000000..c0a708ea09cc --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgentsAiapplicationname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_Aiapplicationname_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; + +public class SyncListAiApplicationAgentsAiapplicationname { + + public static void main(String[] args) throws Exception { + syncListAiApplicationAgentsAiapplicationname(); + } + + public static void syncListAiApplicationAgentsAiapplicationname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + for (Agent element : agentRegistryClient.listAiApplicationAgents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_Aiapplicationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgentsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgentsString.java new file mode 100644 index 000000000000..51c61ff30d48 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationagents/SyncListAiApplicationAgentsString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_String_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; + +public class SyncListAiApplicationAgentsString { + + public static void main(String[] args) throws Exception { + syncListAiApplicationAgentsString(); + } + + public static void syncListAiApplicationAgentsString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString(); + for (Agent element : agentRegistryClient.listAiApplicationAgents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationAgents_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/AsyncListAiApplicationEndpoints.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/AsyncListAiApplicationEndpoints.java new file mode 100644 index 000000000000..27f4ca43fc02 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/AsyncListAiApplicationEndpoints.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest; + +public class AsyncListAiApplicationEndpoints { + + public static void main(String[] args) throws Exception { + asyncListAiApplicationEndpoints(); + } + + public static void asyncListAiApplicationEndpoints() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationEndpointsRequest request = + ListAiApplicationEndpointsRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentRegistryClient.listAiApplicationEndpointsPagedCallable().futureCall(request); + // Do something. + for (Endpoint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/AsyncListAiApplicationEndpointsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/AsyncListAiApplicationEndpointsPaged.java new file mode 100644 index 000000000000..ed044b6fbf78 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/AsyncListAiApplicationEndpointsPaged.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsResponse; +import com.google.common.base.Strings; + +public class AsyncListAiApplicationEndpointsPaged { + + public static void main(String[] args) throws Exception { + asyncListAiApplicationEndpointsPaged(); + } + + public static void asyncListAiApplicationEndpointsPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationEndpointsRequest request = + ListAiApplicationEndpointsRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAiApplicationEndpointsResponse response = + agentRegistryClient.listAiApplicationEndpointsCallable().call(request); + for (Endpoint element : response.getEndpointsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpoints.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpoints.java new file mode 100644 index 000000000000..28bcccb9f2b7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpoints.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.ListAiApplicationEndpointsRequest; + +public class SyncListAiApplicationEndpoints { + + public static void main(String[] args) throws Exception { + syncListAiApplicationEndpoints(); + } + + public static void syncListAiApplicationEndpoints() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationEndpointsRequest request = + ListAiApplicationEndpointsRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Endpoint element : + agentRegistryClient.listAiApplicationEndpoints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpointsAiapplicationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpointsAiapplicationname.java new file mode 100644 index 000000000000..ea23899d9ffb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpointsAiapplicationname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_Aiapplicationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.Endpoint; + +public class SyncListAiApplicationEndpointsAiapplicationname { + + public static void main(String[] args) throws Exception { + syncListAiApplicationEndpointsAiapplicationname(); + } + + public static void syncListAiApplicationEndpointsAiapplicationname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + for (Endpoint element : agentRegistryClient.listAiApplicationEndpoints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_Aiapplicationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpointsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpointsString.java new file mode 100644 index 000000000000..287928cb348b --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationendpoints/SyncListAiApplicationEndpointsString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.Endpoint; + +public class SyncListAiApplicationEndpointsString { + + public static void main(String[] args) throws Exception { + syncListAiApplicationEndpointsString(); + } + + public static void syncListAiApplicationEndpointsString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString(); + for (Endpoint element : agentRegistryClient.listAiApplicationEndpoints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationEndpoints_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/AsyncListAiApplicationMcpServers.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/AsyncListAiApplicationMcpServers.java new file mode 100644 index 000000000000..d1b4f7135753 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/AsyncListAiApplicationMcpServers.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest; +import com.google.cloud.agentregistry.v1.McpServer; + +public class AsyncListAiApplicationMcpServers { + + public static void main(String[] args) throws Exception { + asyncListAiApplicationMcpServers(); + } + + public static void asyncListAiApplicationMcpServers() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationMcpServersRequest request = + ListAiApplicationMcpServersRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentRegistryClient.listAiApplicationMcpServersPagedCallable().futureCall(request); + // Do something. + for (McpServer element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/AsyncListAiApplicationMcpServersPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/AsyncListAiApplicationMcpServersPaged.java new file mode 100644 index 000000000000..def08f0f5180 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/AsyncListAiApplicationMcpServersPaged.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersResponse; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.common.base.Strings; + +public class AsyncListAiApplicationMcpServersPaged { + + public static void main(String[] args) throws Exception { + asyncListAiApplicationMcpServersPaged(); + } + + public static void asyncListAiApplicationMcpServersPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationMcpServersRequest request = + ListAiApplicationMcpServersRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAiApplicationMcpServersResponse response = + agentRegistryClient.listAiApplicationMcpServersCallable().call(request); + for (McpServer element : response.getMcpServersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServers.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServers.java new file mode 100644 index 000000000000..2589cc0530a9 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServers.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.ListAiApplicationMcpServersRequest; +import com.google.cloud.agentregistry.v1.McpServer; + +public class SyncListAiApplicationMcpServers { + + public static void main(String[] args) throws Exception { + syncListAiApplicationMcpServers(); + } + + public static void syncListAiApplicationMcpServers() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationMcpServersRequest request = + ListAiApplicationMcpServersRequest.newBuilder() + .setParent( + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (McpServer element : + agentRegistryClient.listAiApplicationMcpServers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServersAiapplicationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServersAiapplicationname.java new file mode 100644 index 000000000000..ba94e522ffb7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServersAiapplicationname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_Aiapplicationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.McpServer; + +public class SyncListAiApplicationMcpServersAiapplicationname { + + public static void main(String[] args) throws Exception { + syncListAiApplicationMcpServersAiapplicationname(); + } + + public static void syncListAiApplicationMcpServersAiapplicationname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + AiApplicationName parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]"); + for (McpServer element : + agentRegistryClient.listAiApplicationMcpServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_Aiapplicationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServersString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServersString.java new file mode 100644 index 000000000000..59b16c06460e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplicationmcpservers/SyncListAiApplicationMcpServersString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplicationName; +import com.google.cloud.agentregistry.v1.McpServer; + +public class SyncListAiApplicationMcpServersString { + + public static void main(String[] args) throws Exception { + syncListAiApplicationMcpServersString(); + } + + public static void syncListAiApplicationMcpServersString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = + AiApplicationName.of("[PROJECT]", "[LOCATION]", "[AI_APPLICATION]").toString(); + for (McpServer element : + agentRegistryClient.listAiApplicationMcpServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplicationMcpServers_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/AsyncListAiApplications.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/AsyncListAiApplications.java new file mode 100644 index 000000000000..0e01df6a6ab7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/AsyncListAiApplications.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplications_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.ListAiApplicationsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class AsyncListAiApplications { + + public static void main(String[] args) throws Exception { + asyncListAiApplications(); + } + + public static void asyncListAiApplications() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationsRequest request = + ListAiApplicationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentRegistryClient.listAiApplicationsPagedCallable().futureCall(request); + // Do something. + for (AiApplication element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplications_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/AsyncListAiApplicationsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/AsyncListAiApplicationsPaged.java new file mode 100644 index 000000000000..cff376d805bb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/AsyncListAiApplicationsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplications_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.ListAiApplicationsRequest; +import com.google.cloud.agentregistry.v1.ListAiApplicationsResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAiApplicationsPaged { + + public static void main(String[] args) throws Exception { + asyncListAiApplicationsPaged(); + } + + public static void asyncListAiApplicationsPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationsRequest request = + ListAiApplicationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAiApplicationsResponse response = + agentRegistryClient.listAiApplicationsCallable().call(request); + for (AiApplication element : response.getAiApplicationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplications_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplications.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplications.java new file mode 100644 index 000000000000..d49bb65d353e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplications.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplications_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.ListAiApplicationsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListAiApplications { + + public static void main(String[] args) throws Exception { + syncListAiApplications(); + } + + public static void syncListAiApplications() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAiApplicationsRequest request = + ListAiApplicationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AiApplication element : agentRegistryClient.listAiApplications(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplications_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplicationsLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplicationsLocationname.java new file mode 100644 index 000000000000..f8e567cbbaf4 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplicationsLocationname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplications_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListAiApplicationsLocationname { + + public static void main(String[] args) throws Exception { + syncListAiApplicationsLocationname(); + } + + public static void syncListAiApplicationsLocationname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AiApplication element : agentRegistryClient.listAiApplications(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplications_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplicationsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplicationsString.java new file mode 100644 index 000000000000..974dbd0e0a75 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listaiapplications/SyncListAiApplicationsString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAiApplications_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AiApplication; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListAiApplicationsString { + + public static void main(String[] args) throws Exception { + syncListAiApplicationsString(); + } + + public static void syncListAiApplicationsString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AiApplication element : agentRegistryClient.listAiApplications(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAiApplications_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/AsyncListFindings.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/AsyncListFindings.java new file mode 100644 index 000000000000..9e22dcfc46bd --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/AsyncListFindings.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListFindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.ListFindingsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class AsyncListFindings { + + public static void main(String[] args) throws Exception { + asyncListFindings(); + } + + public static void asyncListFindings() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentRegistryClient.listFindingsPagedCallable().futureCall(request); + // Do something. + for (Finding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListFindings_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/AsyncListFindingsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/AsyncListFindingsPaged.java new file mode 100644 index 000000000000..8a2e8a496ef7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/AsyncListFindingsPaged.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListFindings_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.ListFindingsRequest; +import com.google.cloud.agentregistry.v1.ListFindingsResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListFindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListFindingsPaged(); + } + + public static void asyncListFindingsPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListFindingsResponse response = agentRegistryClient.listFindingsCallable().call(request); + for (Finding element : response.getFindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListFindings_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindings.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindings.java new file mode 100644 index 000000000000..5670803da42d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindings.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListFindings_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.ListFindingsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListFindings { + + public static void main(String[] args) throws Exception { + syncListFindings(); + } + + public static void syncListFindings() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Finding element : agentRegistryClient.listFindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListFindings_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindingsLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindingsLocationname.java new file mode 100644 index 000000000000..c957d6819e21 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindingsLocationname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListFindings_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListFindingsLocationname { + + public static void main(String[] args) throws Exception { + syncListFindingsLocationname(); + } + + public static void syncListFindingsLocationname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Finding element : agentRegistryClient.listFindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListFindings_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindingsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindingsString.java new file mode 100644 index 000000000000..8e185ad812ff --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listfindings/SyncListFindingsString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListFindings_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Finding; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListFindingsString { + + public static void main(String[] args) throws Exception { + syncListFindingsString(); + } + + public static void syncListFindingsString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Finding element : agentRegistryClient.listFindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListFindings_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/AsyncListPublishers.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/AsyncListPublishers.java new file mode 100644 index 000000000000..8132d0fed2d5 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/AsyncListPublishers.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListPublishers_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListPublishersRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Publisher; + +public class AsyncListPublishers { + + public static void main(String[] args) throws Exception { + asyncListPublishers(); + } + + public static void asyncListPublishers() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListPublishersRequest request = + ListPublishersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentRegistryClient.listPublishersPagedCallable().futureCall(request); + // Do something. + for (Publisher element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListPublishers_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/AsyncListPublishersPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/AsyncListPublishersPaged.java new file mode 100644 index 000000000000..dbed96d370e0 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/AsyncListPublishersPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListPublishers_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListPublishersRequest; +import com.google.cloud.agentregistry.v1.ListPublishersResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Publisher; +import com.google.common.base.Strings; + +public class AsyncListPublishersPaged { + + public static void main(String[] args) throws Exception { + asyncListPublishersPaged(); + } + + public static void asyncListPublishersPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListPublishersRequest request = + ListPublishersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPublishersResponse response = + agentRegistryClient.listPublishersCallable().call(request); + for (Publisher element : response.getPublishersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListPublishers_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishers.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishers.java new file mode 100644 index 000000000000..bc8c930bc569 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishers.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListPublishers_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListPublishersRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Publisher; + +public class SyncListPublishers { + + public static void main(String[] args) throws Exception { + syncListPublishers(); + } + + public static void syncListPublishers() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListPublishersRequest request = + ListPublishersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Publisher element : agentRegistryClient.listPublishers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListPublishers_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishersLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishersLocationname.java new file mode 100644 index 000000000000..4c53327af038 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishersLocationname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListPublishers_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Publisher; + +public class SyncListPublishersLocationname { + + public static void main(String[] args) throws Exception { + syncListPublishersLocationname(); + } + + public static void syncListPublishersLocationname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Publisher element : agentRegistryClient.listPublishers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListPublishers_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishersString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishersString.java new file mode 100644 index 000000000000..5e2e2a3c91e5 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listpublishers/SyncListPublishersString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListPublishers_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Publisher; + +public class SyncListPublishersString { + + public static void main(String[] args) throws Exception { + syncListPublishersString(); + } + + public static void syncListPublishersString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Publisher element : agentRegistryClient.listPublishers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListPublishers_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/AsyncListSkillRevisions.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/AsyncListSkillRevisions.java new file mode 100644 index 000000000000..43eeb8e800ca --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/AsyncListSkillRevisions.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; + +public class AsyncListSkillRevisions { + + public static void main(String[] args) throws Exception { + asyncListSkillRevisions(); + } + + public static void asyncListSkillRevisions() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListSkillRevisionsRequest request = + ListSkillRevisionsRequest.newBuilder() + .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentRegistryClient.listSkillRevisionsPagedCallable().futureCall(request); + // Do something. + for (SkillRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/AsyncListSkillRevisionsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/AsyncListSkillRevisionsPaged.java new file mode 100644 index 000000000000..e8d91b371538 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/AsyncListSkillRevisionsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsResponse; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; +import com.google.common.base.Strings; + +public class AsyncListSkillRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListSkillRevisionsPaged(); + } + + public static void asyncListSkillRevisionsPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListSkillRevisionsRequest request = + ListSkillRevisionsRequest.newBuilder() + .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSkillRevisionsResponse response = + agentRegistryClient.listSkillRevisionsCallable().call(request); + for (SkillRevision element : response.getSkillRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisions.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisions.java new file mode 100644 index 000000000000..106e154fd6da --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisions.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListSkillRevisionsRequest; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; + +public class SyncListSkillRevisions { + + public static void main(String[] args) throws Exception { + syncListSkillRevisions(); + } + + public static void syncListSkillRevisions() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListSkillRevisionsRequest request = + ListSkillRevisionsRequest.newBuilder() + .setParent(SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SkillRevision element : agentRegistryClient.listSkillRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisionsSkillname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisionsSkillname.java new file mode 100644 index 000000000000..54328bdc8cc9 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisionsSkillname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_Skillname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; + +public class SyncListSkillRevisionsSkillname { + + public static void main(String[] args) throws Exception { + syncListSkillRevisionsSkillname(); + } + + public static void syncListSkillRevisionsSkillname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SkillName parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]"); + for (SkillRevision element : agentRegistryClient.listSkillRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_Skillname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisionsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisionsString.java new file mode 100644 index 000000000000..924cb0c800aa --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskillrevisions/SyncListSkillRevisionsString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillName; +import com.google.cloud.agentregistry.v1.SkillRevision; + +public class SyncListSkillRevisionsString { + + public static void main(String[] args) throws Exception { + syncListSkillRevisionsString(); + } + + public static void syncListSkillRevisionsString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = SkillName.of("[PROJECT]", "[LOCATION]", "[SKILL]").toString(); + for (SkillRevision element : agentRegistryClient.listSkillRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkillRevisions_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/AsyncListSkills.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/AsyncListSkills.java new file mode 100644 index 000000000000..7c8dc72074ef --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/AsyncListSkills.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkills_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListSkillsRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; + +public class AsyncListSkills { + + public static void main(String[] args) throws Exception { + asyncListSkills(); + } + + public static void asyncListSkills() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListSkillsRequest request = + ListSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = agentRegistryClient.listSkillsPagedCallable().futureCall(request); + // Do something. + for (Skill element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkills_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/AsyncListSkillsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/AsyncListSkillsPaged.java new file mode 100644 index 000000000000..f675c7d86ebb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/AsyncListSkillsPaged.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkills_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListSkillsRequest; +import com.google.cloud.agentregistry.v1.ListSkillsResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.common.base.Strings; + +public class AsyncListSkillsPaged { + + public static void main(String[] args) throws Exception { + asyncListSkillsPaged(); + } + + public static void asyncListSkillsPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListSkillsRequest request = + ListSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSkillsResponse response = agentRegistryClient.listSkillsCallable().call(request); + for (Skill element : response.getSkillsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkills_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkills.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkills.java new file mode 100644 index 000000000000..6cba2c49b406 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkills.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkills_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListSkillsRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; + +public class SyncListSkills { + + public static void main(String[] args) throws Exception { + syncListSkills(); + } + + public static void syncListSkills() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListSkillsRequest request = + ListSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Skill element : agentRegistryClient.listSkills(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkills_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkillsLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkillsLocationname.java new file mode 100644 index 000000000000..739bde6cd9ab --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkillsLocationname.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkills_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; + +public class SyncListSkillsLocationname { + + public static void main(String[] args) throws Exception { + syncListSkillsLocationname(); + } + + public static void syncListSkillsLocationname() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Skill element : agentRegistryClient.listSkills(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkills_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkillsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkillsString.java new file mode 100644 index 000000000000..22744f3362e0 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listskills/SyncListSkillsString.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListSkills_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Skill; + +public class SyncListSkillsString { + + public static void main(String[] args) throws Exception { + syncListSkillsString(); + } + + public static void syncListSkillsString() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Skill element : agentRegistryClient.listSkills(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListSkills_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/AsyncSearchSkills.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/AsyncSearchSkills.java new file mode 100644 index 000000000000..b5ad34ec37b1 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/AsyncSearchSkills.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchSkills_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.SearchSkillsRequest; +import com.google.cloud.agentregistry.v1.SearchType; +import com.google.cloud.agentregistry.v1.Skill; + +public class AsyncSearchSkills { + + public static void main(String[] args) throws Exception { + asyncSearchSkills(); + } + + public static void asyncSearchSkills() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchSkillsRequest request = + SearchSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchType(SearchType.forNumber(0)) + .setSearchString("searchString120312793") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = agentRegistryClient.searchSkillsPagedCallable().futureCall(request); + // Do something. + for (Skill element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchSkills_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/AsyncSearchSkillsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/AsyncSearchSkillsPaged.java new file mode 100644 index 000000000000..a21169b4427e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/AsyncSearchSkillsPaged.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchSkills_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.SearchSkillsRequest; +import com.google.cloud.agentregistry.v1.SearchSkillsResponse; +import com.google.cloud.agentregistry.v1.SearchType; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.common.base.Strings; + +public class AsyncSearchSkillsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchSkillsPaged(); + } + + public static void asyncSearchSkillsPaged() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchSkillsRequest request = + SearchSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchType(SearchType.forNumber(0)) + .setSearchString("searchString120312793") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchSkillsResponse response = agentRegistryClient.searchSkillsCallable().call(request); + for (Skill element : response.getSkillsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchSkills_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/SyncSearchSkills.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/SyncSearchSkills.java new file mode 100644 index 000000000000..bcfd54dd01bd --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchskills/SyncSearchSkills.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchSkills_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.SearchSkillsRequest; +import com.google.cloud.agentregistry.v1.SearchType; +import com.google.cloud.agentregistry.v1.Skill; + +public class SyncSearchSkills { + + public static void main(String[] args) throws Exception { + syncSearchSkills(); + } + + public static void syncSearchSkills() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchSkillsRequest request = + SearchSkillsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchType(SearchType.forNumber(0)) + .setSearchString("searchString120312793") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Skill element : agentRegistryClient.searchSkills(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchSkills_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/AsyncUpdateSkill.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/AsyncUpdateSkill.java new file mode 100644 index 000000000000..f9a614290185 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/AsyncUpdateSkill.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateSkill_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.UpdateSkillRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSkill { + + public static void main(String[] args) throws Exception { + asyncUpdateSkill(); + } + + public static void asyncUpdateSkill() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateSkillRequest request = + UpdateSkillRequest.newBuilder() + .setSkill(Skill.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = agentRegistryClient.updateSkillCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateSkill_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/AsyncUpdateSkillLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/AsyncUpdateSkillLRO.java new file mode 100644 index 000000000000..76ce988f1fdd --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/AsyncUpdateSkillLRO.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateSkill_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.UpdateSkillRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSkillLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateSkillLRO(); + } + + public static void asyncUpdateSkillLRO() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateSkillRequest request = + UpdateSkillRequest.newBuilder() + .setSkill(Skill.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.updateSkillOperationCallable().futureCall(request); + // Do something. + Skill response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateSkill_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/SyncUpdateSkill.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/SyncUpdateSkill.java new file mode 100644 index 000000000000..60cdf568accd --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/SyncUpdateSkill.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateSkill_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.cloud.agentregistry.v1.UpdateSkillRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSkill { + + public static void main(String[] args) throws Exception { + syncUpdateSkill(); + } + + public static void syncUpdateSkill() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateSkillRequest request = + UpdateSkillRequest.newBuilder() + .setSkill(Skill.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Skill response = agentRegistryClient.updateSkillAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateSkill_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/SyncUpdateSkillSkillFieldmask.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/SyncUpdateSkillSkillFieldmask.java new file mode 100644 index 000000000000..977073cb6c61 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskill/SyncUpdateSkillSkillFieldmask.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateSkill_SkillFieldmask_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Skill; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSkillSkillFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSkillSkillFieldmask(); + } + + public static void syncUpdateSkillSkillFieldmask() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + Skill skill = Skill.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Skill response = agentRegistryClient.updateSkillAsync(skill, updateMask).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateSkill_SkillFieldmask_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/AsyncUpdateSkillEncryptionSpec.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/AsyncUpdateSkillEncryptionSpec.java new file mode 100644 index 000000000000..57a618124705 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/AsyncUpdateSkillEncryptionSpec.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateSkillEncryptionSpec_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSkillEncryptionSpec { + + public static void main(String[] args) throws Exception { + asyncUpdateSkillEncryptionSpec(); + } + + public static void asyncUpdateSkillEncryptionSpec() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateSkillEncryptionSpecRequest request = + UpdateSkillEncryptionSpecRequest.newBuilder() + .setSkillEncryptionSpec(SkillEncryptionSpec.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + agentRegistryClient.updateSkillEncryptionSpecCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateSkillEncryptionSpec_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/AsyncUpdateSkillEncryptionSpecLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/AsyncUpdateSkillEncryptionSpecLRO.java new file mode 100644 index 000000000000..97255e793aa3 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/AsyncUpdateSkillEncryptionSpecLRO.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateSkillEncryptionSpec_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSkillEncryptionSpecLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateSkillEncryptionSpecLRO(); + } + + public static void asyncUpdateSkillEncryptionSpecLRO() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateSkillEncryptionSpecRequest request = + UpdateSkillEncryptionSpecRequest.newBuilder() + .setSkillEncryptionSpec(SkillEncryptionSpec.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + agentRegistryClient.updateSkillEncryptionSpecOperationCallable().futureCall(request); + // Do something. + SkillEncryptionSpec response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateSkillEncryptionSpec_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/SyncUpdateSkillEncryptionSpec.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/SyncUpdateSkillEncryptionSpec.java new file mode 100644 index 000000000000..2c21070341c0 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/SyncUpdateSkillEncryptionSpec.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateSkillEncryptionSpec_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.cloud.agentregistry.v1.UpdateSkillEncryptionSpecRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSkillEncryptionSpec { + + public static void main(String[] args) throws Exception { + syncUpdateSkillEncryptionSpec(); + } + + public static void syncUpdateSkillEncryptionSpec() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateSkillEncryptionSpecRequest request = + UpdateSkillEncryptionSpecRequest.newBuilder() + .setSkillEncryptionSpec(SkillEncryptionSpec.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + SkillEncryptionSpec response = + agentRegistryClient.updateSkillEncryptionSpecAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateSkillEncryptionSpec_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/SyncUpdateSkillEncryptionSpecSkillencryptionspecFieldmask.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/SyncUpdateSkillEncryptionSpecSkillencryptionspecFieldmask.java new file mode 100644 index 000000000000..ede7857ef1af --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateskillencryptionspec/SyncUpdateSkillEncryptionSpecSkillencryptionspecFieldmask.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.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateSkillEncryptionSpec_SkillencryptionspecFieldmask_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.SkillEncryptionSpec; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSkillEncryptionSpecSkillencryptionspecFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSkillEncryptionSpecSkillencryptionspecFieldmask(); + } + + public static void syncUpdateSkillEncryptionSpecSkillencryptionspecFieldmask() 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SkillEncryptionSpec skillEncryptionSpec = SkillEncryptionSpec.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SkillEncryptionSpec response = + agentRegistryClient.updateSkillEncryptionSpecAsync(skillEncryptionSpec, updateMask).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateSkillEncryptionSpec_SkillencryptionspecFieldmask_sync] diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index a893f2756832..60157c5ee6cc 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.103.0 + 3.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-aiplatform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.103.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-aiplatform/latest/overview [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-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.104.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-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index ae5c4460cdfd..fd70bc21206e 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.80.0 + 0.81.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb-connectors' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.80.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.81.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview [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-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.81.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-alloydb/README.md b/java-alloydb/README.md index 21d12dd0399e..782231dc7269 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.91.0 + 0.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.91.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb/latest/overview [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-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.92.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-analytics-admin/README.md b/java-analytics-admin/README.md index f17ca602cf2c..ca16a8ede4b8 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.112.0 + 0.113.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.112.0' +implementation 'com.google.analytics:google-analytics-admin:0.113.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.112.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.113.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.112.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.113.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-analytics-data/README.md b/java-analytics-data/README.md index 6a33e1be547f..c9d522897b47 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.113.0 + 0.114.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-data' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.113.0' +implementation 'com.google.analytics:google-analytics-data:0.114.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.113.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.114.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-data/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.113.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.114.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-analyticshub/README.md b/java-analyticshub/README.md index f86d1d46d267..4c5469ced856 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.99.0 + 0.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-analyticshub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.99.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-analyticshub/latest/overview [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-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.100.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-api-gateway/README.md b/java-api-gateway/README.md index 3b8e384775fc..5a58332abfdc 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-api-gateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.102.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-api-gateway/latest/overview [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-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.103.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-apigee-connect/README.md b/java-apigee-connect/README.md index 9e8ce1af783d..6bf25a17426a 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apigee-connect' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.102.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-connect/latest/overview [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-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.103.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-apihub/README.md b/java-apihub/README.md index 896567b3892b..f780b464b79c 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.55.0 + 0.56.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apihub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.55.0' +implementation 'com.google.cloud:google-cloud-apihub:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.56.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apihub/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-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.56.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-apikeys/README.md b/java-apikeys/README.md index 8fd7c8ed44d5..0d43689791f0 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.100.0 + 0.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apikeys' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.100.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/overview [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-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.101.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-appengine-admin/README.md b/java-appengine-admin/README.md index 50d1be2aaa4c..d932bba9d1a5 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-appengine-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.102.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appengine-admin/latest/overview [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-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.103.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-apphub/README.md b/java-apphub/README.md index 1e1f1dc59a9d..6b8572b2fea6 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apphub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.66.0' +implementation 'com.google.cloud:google-cloud-apphub:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apphub/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-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.67.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-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationProto.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationProto.java index eabfd3e78d98..5a23a438f561 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationProto.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationProto.java @@ -108,24 +108,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004type\030\001 \001(\0162,.google.cloud.apphub.v1.ApplicationType.Type\"0\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\022\n" - + "\016AI_APPLICATION\020\001\"w\n" + + "\016AI_APPLICATION\020\001\"\213\001\n" + "\005Scope\0226\n" - + "\004type\030\001 \001(\0162\".google.cloud.apphub.v1.Scope.TypeB\004\342A\001\002\"6\n" + + "\004type\030\001 \001(\0162\".google.cloud.apphub.v1.Scope.TypeB\004\342A\001\002\"J\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\014\n" + "\010REGIONAL\020\001\022\n\n" - + "\006GLOBAL\020\002\"\340\001\n" + + "\006GLOBAL\020\002\022\022\n" + + "\016MULTI_REGIONAL\020\003\"\340\001\n" + "\025ApplicationProperties\022d\n" - + "\021extended_metadata\030\001 \003(\0132C.google.clo" - + "ud.apphub.v1.ApplicationProperties.ExtendedMetadataEntryB\004\342A\001\003\032a\n" + + "\021extended_metadata\030\001 \003(\0132C.google.cloud.apphub.v1.Applic" + + "ationProperties.ExtendedMetadataEntryB\004\342A\001\003\032a\n" + "\025ExtendedMetadataEntry\022\013\n" + "\003key\030\001 \001(\t\0227\n" - + "\005value\030\002 \001(\0132(.go" - + "ogle.cloud.apphub.v1.ExtendedMetadata:\0028\001B\262\001\n" - + "\032com.google.cloud.apphub.v1B\020ApplicationProtoP\001Z2cloud.google.com/go/apphub" - + "/apiv1/apphubpb;apphubpb\252\002\026Google.Cloud." - + "AppHub.V1\312\002\026Google\\Cloud\\AppHub\\V1\352\002\031Goo" - + "gle::Cloud::AppHub::V1b\006proto3" + + "\005value\030\002" + + " \001(\0132(.google.cloud.apphub.v1.ExtendedMetadata:\0028\001B\262\001\n" + + "\032com.google.cloud.apphub.v1B\020ApplicationProtoP\001Z2cloud" + + ".google.com/go/apphub/apiv1/apphubpb;app" + + "hubpb\252\002\026Google.Cloud.AppHub.V1\312\002\026Google\\" + + "Cloud\\AppHub\\V1\352\002\031Google::Cloud::AppHub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/Scope.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/Scope.java index f5be0234abf4..c44682b3a5b8 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/Scope.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/Scope.java @@ -109,6 +109,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * GLOBAL = 2; */ GLOBAL(2), + /** + * + * + *
+     * Multi-regional type.
+     * 
+ * + * MULTI_REGIONAL = 3; + */ + MULTI_REGIONAL(3), UNRECOGNIZED(-1), ; @@ -155,6 +165,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GLOBAL_VALUE = 2; + /** + * + * + *
+     * Multi-regional type.
+     * 
+ * + * MULTI_REGIONAL = 3; + */ + public static final int MULTI_REGIONAL_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -185,6 +206,8 @@ public static Type forNumber(int value) { return REGIONAL; case 2: return GLOBAL; + case 3: + return MULTI_REGIONAL; default: return null; } diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/application.proto b/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/application.proto index d10162478bf3..cd8d02cd260c 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/application.proto +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/application.proto @@ -135,6 +135,9 @@ message Scope { // Global type. GLOBAL = 2; + + // Multi-regional type. + MULTI_REGIONAL = 3; } // Required. Scope Type. diff --git a/java-appoptimize/README.md b/java-appoptimize/README.md index 43e5fcaeff53..bf3b81695ddf 100644 --- a/java-appoptimize/README.md +++ b/java-appoptimize/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appoptimize - 0.12.0 + 0.13.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-appoptimize' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appoptimize:0.12.0' +implementation 'com.google.cloud:google-cloud-appoptimize:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.13.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/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-appoptimize.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/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-apptopology/README.md b/java-apptopology/README.md index f5ec8c0e57bf..74be95041a4f 100644 --- a/java-apptopology/README.md +++ b/java-apptopology/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apptopology - 0.6.0 + 0.7.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apptopology' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apptopology:0.6.0' +implementation 'com.google.cloud:google-cloud-apptopology:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apptopology" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apptopology" % "0.7.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apptopology/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-apptopology.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apptopology/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apptopology/0.7.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-artifact-registry/README.md b/java-artifact-registry/README.md index a953e921a68d..590d8b463f97 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-artifact-registry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.101.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/overview [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-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.102.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-asset/README.md b/java-asset/README.md index da8fdce880f0..b4f5cfbb754f 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.106.0 + 3.107.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-asset' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.106.0' +implementation 'com.google.cloud:google-cloud-asset:3.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.107.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview [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-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.107.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-assured-workloads/README.md b/java-assured-workloads/README.md index d9c1452692b5..23218d0dee69 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-assured-workloads' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.102.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-assured-workloads/latest/overview [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-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.103.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-auditmanager/README.md b/java-auditmanager/README.md index bb5f219a7499..777dac78d239 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 0.20.0 + 0.21.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-auditmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-auditmanager:0.20.0' +implementation 'com.google.cloud:google-cloud-auditmanager:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.21.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/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-auditmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.21.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-backstory/README.md b/java-backstory/README.md index abe966124f77..f5641c5ccc53 100644 --- a/java-backstory/README.md +++ b/java-backstory/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backstory - 0.10.0 + 0.11.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-backstory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backstory:0.10.0' +implementation 'com.google.cloud:google-cloud-backstory:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.11.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backstory/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-backstory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.11.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-backupdr/README.md b/java-backupdr/README.md index 127e479249c5..0cb08f372b1d 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.61.0 + 0.62.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-backupdr' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.61.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.62.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview [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-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.62.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-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index c81b183603bf..e8f79d28a97d 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bare-metal-solution' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.102.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/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-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.103.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-batch/README.md b/java-batch/README.md index 9da38d014b7c..d438105084e6 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-batch' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.102.0' +implementation 'com.google.cloud:google-cloud-batch:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/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-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.103.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-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json index 17097b573c12..e45e45c5c296 100644 --- a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json +++ b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json @@ -593,6 +593,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.batch.v1.AllocationPolicy$InstanceFlexibilityPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.batch.v1.AllocationPolicy$InstanceFlexibilityPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.batch.v1.AllocationPolicy$InstancePolicy", "queryAllDeclaredConstructors": true, @@ -629,6 +647,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.batch.v1.AllocationPolicy$InstanceSelection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.batch.v1.AllocationPolicy$InstanceSelection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.batch.v1.AllocationPolicy$LocationPolicy", "queryAllDeclaredConstructors": true, diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index 09e8c730c42d..c7f1bbffee4c 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -13739,6 +13739,2146 @@ public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getDefaultInst } } + public interface InstanceFlexibilityPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstanceSelectionsCount(); + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsInstanceSelections(java.lang.String key); + + /** Use {@link #getInstanceSelectionsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getInstanceSelections(); + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map + getInstanceSelectionsMap(); + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + /* nullable */ + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection getInstanceSelectionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection defaultValue); + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection getInstanceSelectionsOrThrow( + java.lang.String key); + } + + /** + * + * + *
+   * Allows creating VMs from multiple types of machines. Instance flexibility
+   * configuration overrides instances configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy} + */ + public static final class InstanceFlexibilityPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy) + InstanceFlexibilityPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InstanceFlexibilityPolicy"); + } + + // Use InstanceFlexibilityPolicy.newBuilder() to construct. + private InstanceFlexibilityPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstanceFlexibilityPolicy() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetInstanceSelections(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.class, + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.Builder.class); + } + + public static final int INSTANCE_SELECTIONS_FIELD_NUMBER = 1; + + private static final class InstanceSelectionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_InstanceSelectionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + instanceSelections_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + internalGetInstanceSelections() { + if (instanceSelections_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InstanceSelectionsDefaultEntryHolder.defaultEntry); + } + return instanceSelections_; + } + + public int getInstanceSelectionsCount() { + return internalGetInstanceSelections().getMap().size(); + } + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsInstanceSelections(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInstanceSelections().getMap().containsKey(key); + } + + /** Use {@link #getInstanceSelectionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + getInstanceSelections() { + return getInstanceSelectionsMap(); + } + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + getInstanceSelectionsMap() { + return internalGetInstanceSelections().getMap(); + } + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection + getInstanceSelectionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetInstanceSelections().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Required. Named instance selections configuring properties that the group
+     * will use when creating new VMs. The map key is a user-specified name for
+     * the instance selection. The key must be 1-63 characters long, and comply
+     * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+     * key must consist of lowercase letters, numbers, and hyphens. The first
+     * character must be a lowercase letter, and the last character must be a
+     * lowercase letter or number.
+     * The maximum number of instance selections is 50. Exceeding this limit
+     * results in a validation error with code `INVALID_ARGUMENT`.
+     * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection + getInstanceSelectionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetInstanceSelections().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, + internalGetInstanceSelections(), + InstanceSelectionsDefaultEntryHolder.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.batch.v1.AllocationPolicy.InstanceSelection> + entry : internalGetInstanceSelections().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + instanceSelections__ = + InstanceSelectionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instanceSelections__); + } + 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.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy)) { + return super.equals(obj); + } + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy other = + (com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy) obj; + + if (!internalGetInstanceSelections().equals(other.internalGetInstanceSelections())) + 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 (!internalGetInstanceSelections().getMap().isEmpty()) { + hash = (37 * hash) + INSTANCE_SELECTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInstanceSelections().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy 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.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy 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.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy 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.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + 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.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy 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.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy 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; + } + + /** + * + * + *
+     * Allows creating VMs from multiple types of machines. Instance flexibility
+     * configuration overrides instances configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy) + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetInstanceSelections(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableInstanceSelections(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.class, + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.Builder.class); + } + + // Construct using + // com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableInstanceSelections().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + getDefaultInstanceForType() { + return com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy build() { + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy buildPartial() { + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy result = + new com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceSelections_ = + internalGetInstanceSelections() + .build(InstanceSelectionsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy) { + return mergeFrom( + (com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy other) { + if (other + == com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + .getDefaultInstance()) return this; + internalGetMutableInstanceSelections().mergeFrom(other.internalGetInstanceSelections()); + 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.batch.v1.AllocationPolicy.InstanceSelection> + instanceSelections__ = + input.readMessage( + InstanceSelectionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableInstanceSelections() + .ensureBuilderMap() + .put(instanceSelections__.getKey(), instanceSelections__.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 InstanceSelectionsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> { + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection build( + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder val) { + if (val instanceof com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection) { + return (com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection) val; + } + return ((com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + defaultEntry() { + return InstanceSelectionsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final InstanceSelectionsConverter instanceSelectionsConverter = + new InstanceSelectionsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.Builder> + instanceSelections_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.Builder> + internalGetInstanceSelections() { + if (instanceSelections_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(instanceSelectionsConverter); + } + return instanceSelections_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.Builder> + internalGetMutableInstanceSelections() { + if (instanceSelections_ == null) { + instanceSelections_ = + new com.google.protobuf.MapFieldBuilder<>(instanceSelectionsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return instanceSelections_; + } + + public int getInstanceSelectionsCount() { + return internalGetInstanceSelections().ensureBuilderMap().size(); + } + + /** + * + * + *
+       * Required. Named instance selections configuring properties that the group
+       * will use when creating new VMs. The map key is a user-specified name for
+       * the instance selection. The key must be 1-63 characters long, and comply
+       * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+       * key must consist of lowercase letters, numbers, and hyphens. The first
+       * character must be a lowercase letter, and the last character must be a
+       * lowercase letter or number.
+       * The maximum number of instance selections is 50. Exceeding this limit
+       * results in a validation error with code `INVALID_ARGUMENT`.
+       * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsInstanceSelections(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInstanceSelections().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getInstanceSelectionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + getInstanceSelections() { + return getInstanceSelectionsMap(); + } + + /** + * + * + *
+       * Required. Named instance selections configuring properties that the group
+       * will use when creating new VMs. The map key is a user-specified name for
+       * the instance selection. The key must be 1-63 characters long, and comply
+       * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+       * key must consist of lowercase letters, numbers, and hyphens. The first
+       * character must be a lowercase letter, and the last character must be a
+       * lowercase letter or number.
+       * The maximum number of instance selections is 50. Exceeding this limit
+       * results in a validation error with code `INVALID_ARGUMENT`.
+       * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + getInstanceSelectionsMap() { + return internalGetInstanceSelections().getImmutableMap(); + } + + /** + * + * + *
+       * Required. Named instance selections configuring properties that the group
+       * will use when creating new VMs. The map key is a user-specified name for
+       * the instance selection. The key must be 1-63 characters long, and comply
+       * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+       * key must consist of lowercase letters, numbers, and hyphens. The first
+       * character must be a lowercase letter, and the last character must be a
+       * lowercase letter or number.
+       * The maximum number of instance selections is 50. Exceeding this limit
+       * results in a validation error with code `INVALID_ARGUMENT`.
+       * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection + getInstanceSelectionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder> + map = internalGetMutableInstanceSelections().ensureBuilderMap(); + return map.containsKey(key) + ? instanceSelectionsConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+       * Required. Named instance selections configuring properties that the group
+       * will use when creating new VMs. The map key is a user-specified name for
+       * the instance selection. The key must be 1-63 characters long, and comply
+       * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+       * key must consist of lowercase letters, numbers, and hyphens. The first
+       * character must be a lowercase letter, and the last character must be a
+       * lowercase letter or number.
+       * The maximum number of instance selections is 50. Exceeding this limit
+       * results in a validation error with code `INVALID_ARGUMENT`.
+       * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection + getInstanceSelectionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder> + map = internalGetMutableInstanceSelections().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return instanceSelectionsConverter.build(map.get(key)); + } + + public Builder clearInstanceSelections() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableInstanceSelections().clear(); + return this; + } + + /** + * + * + *
+       * Required. Named instance selections configuring properties that the group
+       * will use when creating new VMs. The map key is a user-specified name for
+       * the instance selection. The key must be 1-63 characters long, and comply
+       * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+       * key must consist of lowercase letters, numbers, and hyphens. The first
+       * character must be a lowercase letter, and the last character must be a
+       * lowercase letter or number.
+       * The maximum number of instance selections is 50. Exceeding this limit
+       * results in a validation error with code `INVALID_ARGUMENT`.
+       * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstanceSelections(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInstanceSelections().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + getMutableInstanceSelections() { + bitField0_ |= 0x00000001; + return internalGetMutableInstanceSelections().ensureMessageMap(); + } + + /** + * + * + *
+       * Required. Named instance selections configuring properties that the group
+       * will use when creating new VMs. The map key is a user-specified name for
+       * the instance selection. The key must be 1-63 characters long, and comply
+       * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+       * key must consist of lowercase letters, numbers, and hyphens. The first
+       * character must be a lowercase letter, and the last character must be a
+       * lowercase letter or number.
+       * The maximum number of instance selections is 50. Exceeding this limit
+       * results in a validation error with code `INVALID_ARGUMENT`.
+       * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putInstanceSelections( + java.lang.String key, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInstanceSelections().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+       * Required. Named instance selections configuring properties that the group
+       * will use when creating new VMs. The map key is a user-specified name for
+       * the instance selection. The key must be 1-63 characters long, and comply
+       * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+       * key must consist of lowercase letters, numbers, and hyphens. The first
+       * character must be a lowercase letter, and the last character must be a
+       * lowercase letter or number.
+       * The maximum number of instance selections is 50. Exceeding this limit
+       * results in a validation error with code `INVALID_ARGUMENT`.
+       * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllInstanceSelections( + java.util.Map< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableInstanceSelections().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+       * Required. Named instance selections configuring properties that the group
+       * will use when creating new VMs. The map key is a user-specified name for
+       * the instance selection. The key must be 1-63 characters long, and comply
+       * with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
+       * key must consist of lowercase letters, numbers, and hyphens. The first
+       * character must be a lowercase letter, and the last character must be a
+       * lowercase letter or number.
+       * The maximum number of instance selections is 50. Exceeding this limit
+       * results in a validation error with code `INVALID_ARGUMENT`.
+       * 
+ * + * + * map<string, .google.cloud.batch.v1.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.Builder + putInstanceSelectionsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder> + builderMap = internalGetMutableInstanceSelections().ensureBuilderMap(); + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection) { + entry = + ((com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy) + private static final com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy(); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceFlexibilityPolicy 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.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InstanceSelectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.InstanceSelection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The Compute Engine machine type IDs.
+     * Only the machine type ID is supported, such as `n1-standard-16`.
+     * Full or partial URLs are not accepted.
+     * The total maximum number of machine types across all instance selections
+     * is 200. Exceeding this limit results in a validation error with code
+     * `INVALID_ARGUMENT`.
+     * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the machineTypes. + */ + java.util.List getMachineTypesList(); + + /** + * + * + *
+     * Required. The Compute Engine machine type IDs.
+     * Only the machine type ID is supported, such as `n1-standard-16`.
+     * Full or partial URLs are not accepted.
+     * The total maximum number of machine types across all instance selections
+     * is 200. Exceeding this limit results in a validation error with code
+     * `INVALID_ARGUMENT`.
+     * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of machineTypes. + */ + int getMachineTypesCount(); + + /** + * + * + *
+     * Required. The Compute Engine machine type IDs.
+     * Only the machine type ID is supported, such as `n1-standard-16`.
+     * Full or partial URLs are not accepted.
+     * The total maximum number of machine types across all instance selections
+     * is 200. Exceeding this limit results in a validation error with code
+     * `INVALID_ARGUMENT`.
+     * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The machineTypes at the given index. + */ + java.lang.String getMachineTypes(int index); + + /** + * + * + *
+     * Required. The Compute Engine machine type IDs.
+     * Only the machine type ID is supported, such as `n1-standard-16`.
+     * Full or partial URLs are not accepted.
+     * The total maximum number of machine types across all instance selections
+     * is 200. Exceeding this limit results in a validation error with code
+     * `INVALID_ARGUMENT`.
+     * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the machineTypes at the given index. + */ + com.google.protobuf.ByteString getMachineTypesBytes(int index); + + /** + * + * + *
+     * Optional. Indicates the preference of this instance selection. Lower
+     * number means higher preference. First try is to create a VM based on the
+     * machine-type with lowest rank and fallback to next rank based on
+     * availability. Machine types and instance selections with the same rank
+     * have the same preference.
+     * 
+ * + * optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the rank field is set. + */ + boolean hasRank(); + + /** + * + * + *
+     * Optional. Indicates the preference of this instance selection. Lower
+     * number means higher preference. First try is to create a VM based on the
+     * machine-type with lowest rank and fallback to next rank based on
+     * availability. Machine types and instance selections with the same rank
+     * have the same preference.
+     * 
+ * + * optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rank. + */ + int getRank(); + } + + /** + * + * + *
+   * Defines an instance selection for a given instance flexibility policy.
+   * 
+ * + * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.InstanceSelection} + */ + public static final class InstanceSelection extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.InstanceSelection) + InstanceSelectionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InstanceSelection"); + } + + // Use InstanceSelection.newBuilder() to construct. + private InstanceSelection(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstanceSelection() { + machineTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.class, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.Builder.class); + } + + private int bitField0_; + public static final int MACHINE_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList machineTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Required. The Compute Engine machine type IDs.
+     * Only the machine type ID is supported, such as `n1-standard-16`.
+     * Full or partial URLs are not accepted.
+     * The total maximum number of machine types across all instance selections
+     * is 200. Exceeding this limit results in a validation error with code
+     * `INVALID_ARGUMENT`.
+     * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the machineTypes. + */ + public com.google.protobuf.ProtocolStringList getMachineTypesList() { + return machineTypes_; + } + + /** + * + * + *
+     * Required. The Compute Engine machine type IDs.
+     * Only the machine type ID is supported, such as `n1-standard-16`.
+     * Full or partial URLs are not accepted.
+     * The total maximum number of machine types across all instance selections
+     * is 200. Exceeding this limit results in a validation error with code
+     * `INVALID_ARGUMENT`.
+     * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of machineTypes. + */ + public int getMachineTypesCount() { + return machineTypes_.size(); + } + + /** + * + * + *
+     * Required. The Compute Engine machine type IDs.
+     * Only the machine type ID is supported, such as `n1-standard-16`.
+     * Full or partial URLs are not accepted.
+     * The total maximum number of machine types across all instance selections
+     * is 200. Exceeding this limit results in a validation error with code
+     * `INVALID_ARGUMENT`.
+     * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The machineTypes at the given index. + */ + public java.lang.String getMachineTypes(int index) { + return machineTypes_.get(index); + } + + /** + * + * + *
+     * Required. The Compute Engine machine type IDs.
+     * Only the machine type ID is supported, such as `n1-standard-16`.
+     * Full or partial URLs are not accepted.
+     * The total maximum number of machine types across all instance selections
+     * is 200. Exceeding this limit results in a validation error with code
+     * `INVALID_ARGUMENT`.
+     * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the machineTypes at the given index. + */ + public com.google.protobuf.ByteString getMachineTypesBytes(int index) { + return machineTypes_.getByteString(index); + } + + public static final int RANK_FIELD_NUMBER = 2; + private int rank_ = 0; + + /** + * + * + *
+     * Optional. Indicates the preference of this instance selection. Lower
+     * number means higher preference. First try is to create a VM based on the
+     * machine-type with lowest rank and fallback to next rank based on
+     * availability. Machine types and instance selections with the same rank
+     * have the same preference.
+     * 
+ * + * optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Indicates the preference of this instance selection. Lower
+     * number means higher preference. First try is to create a VM based on the
+     * machine-type with lowest rank and fallback to next rank based on
+     * availability. Machine types and instance selections with the same rank
+     * have the same preference.
+     * 
+ * + * optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rank. + */ + @java.lang.Override + public int getRank() { + return rank_; + } + + 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 < machineTypes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, machineTypes_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(2, rank_); + } + 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 < machineTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(machineTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getMachineTypesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, rank_); + } + 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.batch.v1.AllocationPolicy.InstanceSelection)) { + return super.equals(obj); + } + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection other = + (com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection) obj; + + if (!getMachineTypesList().equals(other.getMachineTypesList())) return false; + if (hasRank() != other.hasRank()) return false; + if (hasRank()) { + if (getRank() != other.getRank()) 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 (getMachineTypesCount() > 0) { + hash = (37 * hash) + MACHINE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getMachineTypesList().hashCode(); + } + if (hasRank()) { + hash = (37 * hash) + RANK_FIELD_NUMBER; + hash = (53 * hash) + getRank(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection 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.batch.v1.AllocationPolicy.InstanceSelection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection 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.batch.v1.AllocationPolicy.InstanceSelection parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection 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.batch.v1.AllocationPolicy.InstanceSelection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection 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.batch.v1.AllocationPolicy.InstanceSelection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection 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.batch.v1.AllocationPolicy.InstanceSelection 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 an instance selection for a given instance flexibility policy.
+     * 
+ * + * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.InstanceSelection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.InstanceSelection) + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.class, + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.Builder.class); + } + + // Construct using com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + machineTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + rank_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto + .internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_descriptor; + } + + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection + getDefaultInstanceForType() { + return com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection build() { + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection buildPartial() { + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection result = + new com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + machineTypes_.makeImmutable(); + result.machineTypes_ = machineTypes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rank_ = rank_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection) { + return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection other) { + if (other + == com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection.getDefaultInstance()) + return this; + if (!other.machineTypes_.isEmpty()) { + if (machineTypes_.isEmpty()) { + machineTypes_ = other.machineTypes_; + bitField0_ |= 0x00000001; + } else { + ensureMachineTypesIsMutable(); + machineTypes_.addAll(other.machineTypes_); + } + onChanged(); + } + if (other.hasRank()) { + setRank(other.getRank()); + } + 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(); + ensureMachineTypesIsMutable(); + machineTypes_.add(s); + break; + } // case 10 + case 16: + { + rank_ = 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.LazyStringArrayList machineTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureMachineTypesIsMutable() { + if (!machineTypes_.isModifiable()) { + machineTypes_ = new com.google.protobuf.LazyStringArrayList(machineTypes_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the machineTypes. + */ + public com.google.protobuf.ProtocolStringList getMachineTypesList() { + machineTypes_.makeImmutable(); + return machineTypes_; + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of machineTypes. + */ + public int getMachineTypesCount() { + return machineTypes_.size(); + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The machineTypes at the given index. + */ + public java.lang.String getMachineTypes(int index) { + return machineTypes_.get(index); + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the machineTypes at the given index. + */ + public com.google.protobuf.ByteString getMachineTypesBytes(int index) { + return machineTypes_.getByteString(index); + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The machineTypes to set. + * @return This builder for chaining. + */ + public Builder setMachineTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMachineTypesIsMutable(); + machineTypes_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The machineTypes to add. + * @return This builder for chaining. + */ + public Builder addMachineTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMachineTypesIsMutable(); + machineTypes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The machineTypes to add. + * @return This builder for chaining. + */ + public Builder addAllMachineTypes(java.lang.Iterable values) { + ensureMachineTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, machineTypes_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMachineTypes() { + machineTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The Compute Engine machine type IDs.
+       * Only the machine type ID is supported, such as `n1-standard-16`.
+       * Full or partial URLs are not accepted.
+       * The total maximum number of machine types across all instance selections
+       * is 200. Exceeding this limit results in a validation error with code
+       * `INVALID_ARGUMENT`.
+       * 
+ * + * repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the machineTypes to add. + * @return This builder for chaining. + */ + public Builder addMachineTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMachineTypesIsMutable(); + machineTypes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int rank_; + + /** + * + * + *
+       * Optional. Indicates the preference of this instance selection. Lower
+       * number means higher preference. First try is to create a VM based on the
+       * machine-type with lowest rank and fallback to next rank based on
+       * availability. Machine types and instance selections with the same rank
+       * have the same preference.
+       * 
+ * + * optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Indicates the preference of this instance selection. Lower
+       * number means higher preference. First try is to create a VM based on the
+       * machine-type with lowest rank and fallback to next rank based on
+       * availability. Machine types and instance selections with the same rank
+       * have the same preference.
+       * 
+ * + * optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rank. + */ + @java.lang.Override + public int getRank() { + return rank_; + } + + /** + * + * + *
+       * Optional. Indicates the preference of this instance selection. Lower
+       * number means higher preference. First try is to create a VM based on the
+       * machine-type with lowest rank and fallback to next rank based on
+       * availability. Machine types and instance selections with the same rank
+       * have the same preference.
+       * 
+ * + * optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The rank to set. + * @return This builder for chaining. + */ + public Builder setRank(int value) { + + rank_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Indicates the preference of this instance selection. Lower
+       * number means higher preference. First try is to create a VM based on the
+       * machine-type with lowest rank and fallback to next rank based on
+       * availability. Machine types and instance selections with the same rank
+       * have the same preference.
+       * 
+ * + * optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRank() { + bitField0_ = (bitField0_ & ~0x00000002); + rank_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.InstanceSelection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.InstanceSelection) + private static final com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection(); + } + + public static com.google.cloud.batch.v1.AllocationPolicy.InstanceSelection + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceSelection 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.batch.v1.AllocationPolicy.InstanceSelection + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location_; @@ -14317,6 +16457,74 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } + public static final int INSTANCE_FLEXIBILITY_POLICY_FIELD_NUMBER = 12; + private com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + instanceFlexibilityPolicy_; + + /** + * + * + *
+   * Optional. The instance flexibility policy for the job. This configuration
+   * overrides the `instances` configuration. Only allowed in job level. Not
+   * allowed in task group level.
+   * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the instanceFlexibilityPolicy field is set. + */ + @java.lang.Override + public boolean hasInstanceFlexibilityPolicy() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. The instance flexibility policy for the job. This configuration
+   * overrides the `instances` configuration. Only allowed in job level. Not
+   * allowed in task group level.
+   * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The instanceFlexibilityPolicy. + */ + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + getInstanceFlexibilityPolicy() { + return instanceFlexibilityPolicy_ == null + ? com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.getDefaultInstance() + : instanceFlexibilityPolicy_; + } + + /** + * + * + *
+   * Optional. The instance flexibility policy for the job. This configuration
+   * overrides the `instances` configuration. Only allowed in job level. Not
+   * allowed in task group level.
+   * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicyOrBuilder + getInstanceFlexibilityPolicyOrBuilder() { + return instanceFlexibilityPolicy_ == null + ? com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.getDefaultInstance() + : instanceFlexibilityPolicy_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -14351,6 +16559,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 11, tags_.getRaw(i)); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getInstanceFlexibilityPolicy()); + } getUnknownFields().writeTo(output); } @@ -14393,6 +16604,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getInstanceFlexibilityPolicy()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -14428,6 +16644,11 @@ public boolean equals(final java.lang.Object obj) { if (!getPlacement().equals(other.getPlacement())) return false; } if (!getTagsList().equals(other.getTagsList())) return false; + if (hasInstanceFlexibilityPolicy() != other.hasInstanceFlexibilityPolicy()) return false; + if (hasInstanceFlexibilityPolicy()) { + if (!getInstanceFlexibilityPolicy().equals(other.getInstanceFlexibilityPolicy())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -14467,6 +16688,10 @@ public int hashCode() { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } + if (hasInstanceFlexibilityPolicy()) { + hash = (37 * hash) + INSTANCE_FLEXIBILITY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getInstanceFlexibilityPolicy().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -14636,6 +16861,7 @@ private void maybeForceBuilderInitialization() { internalGetServiceAccountFieldBuilder(); internalGetNetworkFieldBuilder(); internalGetPlacementFieldBuilder(); + internalGetInstanceFlexibilityPolicyFieldBuilder(); } } @@ -14672,6 +16898,11 @@ public Builder clear() { placementBuilder_ = null; } tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + instanceFlexibilityPolicy_ = null; + if (instanceFlexibilityPolicyBuilder_ != null) { + instanceFlexibilityPolicyBuilder_.dispose(); + instanceFlexibilityPolicyBuilder_ = null; + } return this; } @@ -14747,6 +16978,13 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy result) { tags_.makeImmutable(); result.tags_ = tags_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.instanceFlexibilityPolicy_ = + instanceFlexibilityPolicyBuilder_ == null + ? instanceFlexibilityPolicy_ + : instanceFlexibilityPolicyBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -14813,6 +17051,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy other) { } onChanged(); } + if (other.hasInstanceFlexibilityPolicy()) { + mergeInstanceFlexibilityPolicy(other.getInstanceFlexibilityPolicy()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -14900,6 +17141,14 @@ public Builder mergeFrom( tags_.add(s); break; } // case 90 + case 98: + { + input.readMessage( + internalGetInstanceFlexibilityPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -16740,6 +18989,248 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + instanceFlexibilityPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy, + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.Builder, + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicyOrBuilder> + instanceFlexibilityPolicyBuilder_; + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the instanceFlexibilityPolicy field is set. + */ + public boolean hasInstanceFlexibilityPolicy() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The instanceFlexibilityPolicy. + */ + public com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + getInstanceFlexibilityPolicy() { + if (instanceFlexibilityPolicyBuilder_ == null) { + return instanceFlexibilityPolicy_ == null + ? com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + .getDefaultInstance() + : instanceFlexibilityPolicy_; + } else { + return instanceFlexibilityPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInstanceFlexibilityPolicy( + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy value) { + if (instanceFlexibilityPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceFlexibilityPolicy_ = value; + } else { + instanceFlexibilityPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInstanceFlexibilityPolicy( + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.Builder + builderForValue) { + if (instanceFlexibilityPolicyBuilder_ == null) { + instanceFlexibilityPolicy_ = builderForValue.build(); + } else { + instanceFlexibilityPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInstanceFlexibilityPolicy( + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy value) { + if (instanceFlexibilityPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && instanceFlexibilityPolicy_ != null + && instanceFlexibilityPolicy_ + != com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + .getDefaultInstance()) { + getInstanceFlexibilityPolicyBuilder().mergeFrom(value); + } else { + instanceFlexibilityPolicy_ = value; + } + } else { + instanceFlexibilityPolicyBuilder_.mergeFrom(value); + } + if (instanceFlexibilityPolicy_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInstanceFlexibilityPolicy() { + bitField0_ = (bitField0_ & ~0x00000080); + instanceFlexibilityPolicy_ = null; + if (instanceFlexibilityPolicyBuilder_ != null) { + instanceFlexibilityPolicyBuilder_.dispose(); + instanceFlexibilityPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.Builder + getInstanceFlexibilityPolicyBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetInstanceFlexibilityPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicyOrBuilder + getInstanceFlexibilityPolicyOrBuilder() { + if (instanceFlexibilityPolicyBuilder_ != null) { + return instanceFlexibilityPolicyBuilder_.getMessageOrBuilder(); + } else { + return instanceFlexibilityPolicy_ == null + ? com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + .getDefaultInstance() + : instanceFlexibilityPolicy_; + } + } + + /** + * + * + *
+     * Optional. The instance flexibility policy for the job. This configuration
+     * overrides the `instances` configuration. Only allowed in job level. Not
+     * allowed in task group level.
+     * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy, + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.Builder, + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicyOrBuilder> + internalGetInstanceFlexibilityPolicyFieldBuilder() { + if (instanceFlexibilityPolicyBuilder_ == null) { + instanceFlexibilityPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy, + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy.Builder, + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicyOrBuilder>( + getInstanceFlexibilityPolicy(), getParentForChildren(), isClean()); + instanceFlexibilityPolicy_ = null; + } + return instanceFlexibilityPolicyBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy) } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java index f02663b271db..e81a94919597 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java @@ -467,4 +467,55 @@ java.lang.String getLabelsOrDefault( * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); + + /** + * + * + *
+   * Optional. The instance flexibility policy for the job. This configuration
+   * overrides the `instances` configuration. Only allowed in job level. Not
+   * allowed in task group level.
+   * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the instanceFlexibilityPolicy field is set. + */ + boolean hasInstanceFlexibilityPolicy(); + + /** + * + * + *
+   * Optional. The instance flexibility policy for the job. This configuration
+   * overrides the `instances` configuration. Only allowed in job level. Not
+   * allowed in task group level.
+   * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The instanceFlexibilityPolicy. + */ + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy + getInstanceFlexibilityPolicy(); + + /** + * + * + *
+   * Optional. The instance flexibility policy for the job. This configuration
+   * overrides the `instances` configuration. Only allowed in job level. Not
+   * allowed in task group level.
+   * 
+ * + * + * .google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicy instance_flexibility_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.batch.v1.AllocationPolicy.InstanceFlexibilityPolicyOrBuilder + getInstanceFlexibilityPolicyOrBuilder(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java index e9f23e38c83a..a0a27d336a2c 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java @@ -124,6 +124,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_InstanceSelectionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_InstanceSelectionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -229,7 +241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\025\n" + "\021JOB_STATE_CHANGED\020\001\022\026\n" - + "\022TASK_STATE_CHANGED\020\002\"\345\020\n" + + "\022TASK_STATE_CHANGED\020\002\"\271\024\n" + "\020AllocationPolicy\022H\n" + "\010location\030\001 \001(\01326.google.cloud" + ".batch.v1.AllocationPolicy.LocationPolicy\022S\n" @@ -242,7 +254,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle.cloud.batch.v1.AllocationPolicy.NetworkPolicy\022J\n" + "\tplacement\030\n" + " \001(\01327.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy\022\022\n" - + "\004tags\030\013 \003(\tB\004\342A\001\001\032+\n" + + "\004tags\030\013 \003(\tB\004\342A\001\001\022l\n" + + "\033instance_flexibility_policy\030\014 \001(\0132A.google.cloud." + + "batch.v1.AllocationPolicy.InstanceFlexibilityPolicyB\004\342A\001\001\032+\n" + "\016LocationPolicy\022\031\n" + "\021allowed_locations\030\001 \003(\t\032q\n" + "\004Disk\022\017\n" @@ -266,17 +280,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016InstancePolicy\022\024\n" + "\014machine_type\030\002 \001(\t\022\030\n" + "\020min_cpu_platform\030\003 \001(\t\022U\n" - + "\022provisioning_model\030\004" - + " \001(\01629.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel\022I\n" - + "\014accelerators\030\005" - + " \003(\01323.google.cloud.batch.v1.AllocationPolicy.Accelerator\022?\n" + + "\022provisioning_model\030\004 \001(\016" + + "29.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel\022I\n" + + "\014accelerators\030\005 \003(" + + "\01323.google.cloud.batch.v1.AllocationPolicy.Accelerator\022?\n" + "\tboot_disk\030\010 \001(\0132,.google.cloud.batch.v1.AllocationPolicy.Disk\022C\n" - + "\005disks\030\006 \003(\01324.google.cloud." - + "batch.v1.AllocationPolicy.AttachedDisk\022\031\n" + + "\005disks\030\006" + + " \003(\01324.google.cloud.batch.v1.AllocationPolicy.AttachedDisk\022\031\n" + "\013reservation\030\007 \001(\tB\004\342A\001\001\032\370\001\n" + "\030InstancePolicyOrTemplate\022H\n" - + "\006policy\030\001 \001(\01326.google." - + "cloud.batch.v1.AllocationPolicy.InstancePolicyH\000\022\033\n" + + "\006policy\030\001 \001(\01326.google.cloud.batc" + + "h.v1.AllocationPolicy.InstancePolicyH\000\022\033\n" + "\021instance_template\030\002 \001(\tH\000\022\033\n" + "\023install_gpu_drivers\030\003 \001(\010\022\037\n" + "\021install_ops_agent\030\004 \001(\010B\004\342A\001\001\022$\n" @@ -286,8 +300,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\001 \001(\t\022\022\n\n" + "subnetwork\030\002 \001(\t\022\036\n" + "\026no_external_ip_address\030\003 \001(\010\022]\n" - + "\010nic_type\030\007 \001(\0162@.google.cloud." - + "batch.v1.AllocationPolicy.NetworkInterface.NicTypeB\004\342A\001\001H\000\210\001\001\"D\n" + + "\010nic_type\030\007 \001(\0162@.google.cloud.batch.v1.A" + + "llocationPolicy.NetworkInterface.NicTypeB\004\342A\001\001H\000\210\001\001\"D\n" + "\007NicType\022\030\n" + "\024NIC_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005GVNIC\020\001\022\t\n" @@ -295,11 +309,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005MRDMA\020\003B\013\n" + "\t_nic_type\032e\n\r" + "NetworkPolicy\022T\n" - + "\022network_interfaces\030\001 \003(\01328.google.c" - + "loud.batch.v1.AllocationPolicy.NetworkInterface\032<\n" + + "\022network_interfaces\030\001" + + " \003(\01328.google.cloud.batch.v1.AllocationPolicy.NetworkInterface\032<\n" + "\017PlacementPolicy\022\023\n" + "\013collocation\030\001 \001(\t\022\024\n" - + "\014max_distance\030\002 \001(\003\032-\n" + + "\014max_distance\030\002 \001(\003\032\217\002\n" + + "\031InstanceFlexibilityPolicy\022|\n" + + "\023instance_selections\030\001 \003(\0132Y.google.cloud.batch.v1.AllocationPolicy." + + "InstanceFlexibilityPolicy.InstanceSelectionsEntryB\004\342A\001\002\032t\n" + + "\027InstanceSelectionsEntry\022\013\n" + + "\003key\030\001 \001(\t\022H\n" + + "\005value\030\002 \001(\01329.google." + + "cloud.batch.v1.AllocationPolicy.InstanceSelection:\0028\001\032R\n" + + "\021InstanceSelection\022\033\n\r" + + "machine_types\030\001 \003(\tB\004\342A\001\002\022\027\n" + + "\004rank\030\002 \001(\005B\004\342A\001\001H\000\210\001\001B\007\n" + + "\005_rank\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\213\001\n" @@ -328,15 +353,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SCHEDULING_POLICY_UNSPECIFIED\020\000\022\027\n" + "\023AS_SOON_AS_POSSIBLE\020\001\022\014\n" + "\010IN_ORDER\020\002:o\352Al\n" - + "\036batch.googleapis.com/TaskGroup\022Jprojects/{project}/loca" - + "tions/{location}/jobs/{job}/taskGroups/{task_group}\"/\n" + + "\036batch.googleapis.com/TaskGroup\022Jprojects/{project}/locations/{locat" + + "ion}/jobs/{job}/taskGroups/{task_group}\"/\n" + "\016ServiceAccount\022\r\n" + "\005email\030\001 \001(\t\022\016\n" + "\006scopes\030\002 \003(\tB\251\001\n" - + "\031com.google.cloud.batch.v1B\010JobProtoP\001Z/cloud.google.com" - + "/go/batch/apiv1/batchpb;batchpb\242\002\003GCB\252\002\025" - + "Google.Cloud.Batch.V1\312\002\025Google\\Cloud\\Bat" - + "ch\\V1\352\002\030Google::Cloud::Batch::V1b\006proto3" + + "\031com.google.cloud.batch.v1B\010JobProtoP\001Z/cloud.google.com/go/batch/ap" + + "iv1/batchpb;batchpb\242\002\003GCB\252\002\025Google.Cloud" + + ".Batch.V1\312\002\025Google\\Cloud\\Batch\\V1\352\002\030Goog" + + "le::Cloud::Batch::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -449,7 +474,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor, new java.lang.String[] { - "Location", "Instances", "ServiceAccount", "Labels", "Network", "Placement", "Tags", + "Location", + "Instances", + "ServiceAccount", + "Labels", + "Network", + "Placement", + "Tags", + "InstanceFlexibilityPolicy", }); internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor = internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedType(0); @@ -534,8 +566,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Collocation", "MaxDistance", }); - internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_descriptor = internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedType(9); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_descriptor, + new java.lang.String[] { + "InstanceSelections", + }); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_InstanceSelectionsEntry_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_descriptor + .getNestedType(0); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_InstanceSelectionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceFlexibilityPolicy_InstanceSelectionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedType(10); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_InstanceSelection_descriptor, + new java.lang.String[] { + "MachineTypes", "Rank", + }); + internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedType(11); internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor, diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto index d4bae45fbf3a..89abec2a7929 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto @@ -572,6 +572,40 @@ message AllocationPolicy { int64 max_distance = 2; } + // Allows creating VMs from multiple types of machines. Instance flexibility + // configuration overrides instances configuration. + message InstanceFlexibilityPolicy { + // Required. Named instance selections configuring properties that the group + // will use when creating new VMs. The map key is a user-specified name for + // the instance selection. The key must be 1-63 characters long, and comply + // with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the + // key must consist of lowercase letters, numbers, and hyphens. The first + // character must be a lowercase letter, and the last character must be a + // lowercase letter or number. + // The maximum number of instance selections is 50. Exceeding this limit + // results in a validation error with code `INVALID_ARGUMENT`. + map instance_selections = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Defines an instance selection for a given instance flexibility policy. + message InstanceSelection { + // Required. The Compute Engine machine type IDs. + // Only the machine type ID is supported, such as `n1-standard-16`. + // Full or partial URLs are not accepted. + // The total maximum number of machine types across all instance selections + // is 200. Exceeding this limit results in a validation error with code + // `INVALID_ARGUMENT`. + repeated string machine_types = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Indicates the preference of this instance selection. Lower + // number means higher preference. First try is to create a VM based on the + // machine-type with lowest rank and fallback to next rank based on + // availability. Machine types and instance selections with the same rank + // have the same preference. + optional int32 rank = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Compute Engine VM instance provisioning model. enum ProvisioningModel { // Unspecified. @@ -648,6 +682,12 @@ message AllocationPolicy { // Each tag must be 1-63 characters long, and comply with // [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). repeated string tags = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The instance flexibility policy for the job. This configuration + // overrides the `instances` configuration. Only allowed in job level. Not + // allowed in task group level. + InstanceFlexibilityPolicy instance_flexibility_policy = 12 + [(google.api.field_behavior) = OPTIONAL]; } // A TaskGroup defines one or more Tasks that all share the same TaskSpec. diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 3a2d8460d353..cd7fefc7f027 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnections/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-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.101.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-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index c2d5d6e0adbe..9ff86e08501d 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnectors/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-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.101.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-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index cb74ab1ddbe2..4270f93544f5 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appgateways/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-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.101.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-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index fdb2ce8610a6..29e067a491b0 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientconnectorservices/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-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.101.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-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 71565e64a971..d7e6f4aef718 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientgateways/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-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.101.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-biglake-hive/README.md b/java-biglake-hive/README.md index a48a1e4b8808..749a819d385b 100644 --- a/java-biglake-hive/README.md +++ b/java-biglake-hive/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake-hive - 0.7.0 + 0.8.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-biglake-hive' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake-hive:0.7.0' +implementation 'com.google.cloud:google-cloud-biglake-hive:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake-hive" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake-hive" % "0.8.0" ``` ## Authentication @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake-hive/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-biglake-hive.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake-hive/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake-hive/0.8.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-biglake/README.md b/java-biglake/README.md index 0e2968535ef1..46c9f45c5125 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.90.0 + 0.91.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-biglake' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.90.0' +implementation 'com.google.cloud:google-cloud-biglake:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.91.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake/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-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.91.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-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 19d974ec72da..946ed0849bbb 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.97.0 + 2.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquery-data-exchange' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.97.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquery-data-exchange/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-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.98.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-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 9eed3cf71c93..2b80f76fe4fe 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigqueryconnection' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.104.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 [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-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.105.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-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 4d7bf5296bcd..dfa890144b40 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.99.0 + 0.100.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatapolicy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.99.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.100.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/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-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.100.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-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index dacc1ca901f1..46a01a9df6c8 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatatransfer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.102.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatatransfer/latest/overview [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-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.103.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-bigquerymigration/README.md b/java-bigquerymigration/README.md index ef35c54723ba..b30934f67629 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquerymigration' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.105.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerymigration/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-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.106.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-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 31a8ddd41e6a..b4641b9ec0ab 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigqueryreservation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.103.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigqueryreservation/latest/overview [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-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.104.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-bigquerystorage/README.md b/java-bigquerystorage/README.md index 339527309e6a..b14498081754 100644 --- a/java-bigquerystorage/README.md +++ b/java-bigquerystorage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerystorage - 3.38.0 + 3.39.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerystorage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerystorage:3.38.0' +implementation 'com.google.cloud:google-cloud-bigquerystorage:3.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.39.0" ``` ## Authentication @@ -233,7 +233,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/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-bigquerystorage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.39.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-bigtable/README.md b/java-bigtable/README.md index 4b6f65415a67..1a75a453b9e9 100644 --- a/java-bigtable/README.md +++ b/java-bigtable/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigtable - 2.88.0 + 2.89.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigtable' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigtable:2.88.0' +implementation 'com.google.cloud:google-cloud-bigtable:2.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.89.0" ``` ## Authentication @@ -450,7 +450,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigtable/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-bigtable.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.89.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-billing/README.md b/java-billing/README.md index 634bc8218816..e2cca9ea22dd 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-billing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.102.0' +implementation 'com.google.cloud:google-cloud-billing:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billing/latest/overview [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-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.103.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-billingbudgets/README.md b/java-billingbudgets/README.md index b9d7700ec05e..0b5c66d08bdf 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-billingbudgets' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.102.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billingbudgets/latest/overview [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-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.103.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-binary-authorization/README.md b/java-binary-authorization/README.md index f7a1612ba081..88c60b07f1b0 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-binary-authorization' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.101.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/overview [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-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.102.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-capacityplanner/README.md b/java-capacityplanner/README.md index 864dc607fc71..1bb64652aed8 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.25.0 + 0.26.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-capacityplanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.25.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.26.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/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-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.26.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-certificate-manager/README.md b/java-certificate-manager/README.md index cb425e8ae755..51ca99ff326a 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-certificate-manager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.105.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-certificate-manager/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-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.106.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-ces/README.md b/java-ces/README.md index 4b3d94f6d86b..6f8910581d50 100644 --- a/java-ces/README.md +++ b/java-ces/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ces - 0.18.0 + 0.19.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-ces' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ces:0.18.0' +implementation 'com.google.cloud:google-cloud-ces:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.19.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ces/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-ces.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.19.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-channel/README.md b/java-channel/README.md index 6e01416f6526..f4a025c1595e 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.106.0 + 3.107.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-channel' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.106.0' +implementation 'com.google.cloud:google-cloud-channel:3.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.107.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-channel/latest/overview [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-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.107.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-chat/README.md b/java-chat/README.md index 74a7e5c52bd3..06be053471b5 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-chat' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.66.0' +implementation 'com.google.cloud:google-cloud-chat:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chat/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-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.67.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-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 d084e6b14677..04b2ff93139b 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 @@ -847,6 +847,26 @@ * * * + *

UpdateThreadReadState + *

Updates a user's read state within a thread, used to identify read and unread messages. For an example, see [Update a user's thread read state](https://developers.google.com/workspace/chat/update-thread-read-state). + *

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

- `https://www.googleapis.com/auth/chat.users.readstate` + * + *

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

+ *
    + *
  • updateThreadReadState(UpdateThreadReadStateRequest request) + *

+ *

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

+ *
    + *
  • updateThreadReadState(ThreadReadState threadReadState, 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.

+ *
    + *
  • updateThreadReadStateCallable() + *

+ * + * + * *

GetThreadReadState *

Returns details about a user's read state within a thread, used to identify read and unread messages. For an example, see [Get details about a user's thread read state](https://developers.google.com/workspace/chat/get-thread-read-state). *

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): @@ -8130,6 +8150,142 @@ public final SpaceReadState updateSpaceReadState(UpdateSpaceReadStateRequest req return stub.updateSpaceReadStateCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a user's read state within a thread, used to identify read and unread messages. For an + * example, see [Update a user's thread read + * state](https://developers.google.com/workspace/chat/update-thread-read-state). + * + *

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

- `https://www.googleapis.com/auth/chat.users.readstate` + * + *

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()) {
+   *   ThreadReadState threadReadState = ThreadReadState.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ThreadReadState response =
+   *       chatServiceClient.updateThreadReadState(threadReadState, updateMask);
+   * }
+   * }
+ * + * @param threadReadState Required. The thread read state and fields to update. + *

Only supports updating read state for the calling user. + *

To refer to the calling user, set one of the following: + *

- The `me` alias. For example, + * `users/me/spaces/{space}/threads/{thread}/threadReadState`. + *

- Their Workspace email address. For example, + * `users/user{@literal @}example.com/spaces/{space}/threads/{thread}/threadReadState`. + *

- Their user id. For example, + * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + *

Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` + * @param updateMask Required. The field paths to update. Currently supported field paths: + *

- `last_read_time` + *

When `last_read_time` is before the latest message create time, the thread appears as + * unread in the UI. + *

To mark the thread as read, set `last_read_time` to a timestamp equal to or later than + * the latest message create time. Future timestamps are coerced to the current request time. + * Setting a negative timestamp (before `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` + * error. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ThreadReadState updateThreadReadState( + ThreadReadState threadReadState, FieldMask updateMask) { + UpdateThreadReadStateRequest request = + UpdateThreadReadStateRequest.newBuilder() + .setThreadReadState(threadReadState) + .setUpdateMask(updateMask) + .build(); + return updateThreadReadState(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a user's read state within a thread, used to identify read and unread messages. For an + * example, see [Update a user's thread read + * state](https://developers.google.com/workspace/chat/update-thread-read-state). + * + *

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

- `https://www.googleapis.com/auth/chat.users.readstate` + * + *

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()) {
+   *   UpdateThreadReadStateRequest request =
+   *       UpdateThreadReadStateRequest.newBuilder()
+   *           .setThreadReadState(ThreadReadState.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ThreadReadState response = chatServiceClient.updateThreadReadState(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 ThreadReadState updateThreadReadState(UpdateThreadReadStateRequest request) { + return updateThreadReadStateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a user's read state within a thread, used to identify read and unread messages. For an + * example, see [Update a user's thread read + * state](https://developers.google.com/workspace/chat/update-thread-read-state). + * + *

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

- `https://www.googleapis.com/auth/chat.users.readstate` + * + *

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()) {
+   *   UpdateThreadReadStateRequest request =
+   *       UpdateThreadReadStateRequest.newBuilder()
+   *           .setThreadReadState(ThreadReadState.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       chatServiceClient.updateThreadReadStateCallable().futureCall(request);
+   *   // Do something.
+   *   ThreadReadState response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateThreadReadStateCallable() { + return stub.updateThreadReadStateCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns details about a user's read state within a thread, used to identify read and unread 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 28538887cb99..06e9c9d53882 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 @@ -294,6 +294,12 @@ public UnaryCallSettings getSpaceReadS return ((ChatServiceStubSettings) getStubSettings()).updateSpaceReadStateSettings(); } + /** Returns the object with the settings used for calls to updateThreadReadState. */ + public UnaryCallSettings + updateThreadReadStateSettings() { + return ((ChatServiceStubSettings) getStubSettings()).updateThreadReadStateSettings(); + } + /** Returns the object with the settings used for calls to getThreadReadState. */ public UnaryCallSettings getThreadReadStateSettings() { @@ -707,6 +713,12 @@ public UnaryCallSettings.Builder deleteCustomEm return getStubSettingsBuilder().updateSpaceReadStateSettings(); } + /** Returns the builder for the settings used for calls to updateThreadReadState. */ + public UnaryCallSettings.Builder + updateThreadReadStateSettings() { + return getStubSettingsBuilder().updateThreadReadStateSettings(); + } + /** Returns the builder for the settings used for calls to getThreadReadState. */ public UnaryCallSettings.Builder getThreadReadStateSettings() { 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 fb29e81bc974..45ceacfda93a 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 @@ -166,6 +166,9 @@ "UpdateSpaceReadState": { "methods": ["updateSpaceReadState", "updateSpaceReadState", "updateSpaceReadStateCallable"] }, + "UpdateThreadReadState": { + "methods": ["updateThreadReadState", "updateThreadReadState", "updateThreadReadStateCallable"] + }, "UploadAttachment": { "methods": ["uploadAttachment", "uploadAttachmentCallable"] } 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 9c00bb5e5ae9..d78fb9950fe2 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 @@ -112,6 +112,7 @@ import com.google.chat.v1.UpdateSpaceNotificationSettingRequest; import com.google.chat.v1.UpdateSpaceReadStateRequest; import com.google.chat.v1.UpdateSpaceRequest; +import com.google.chat.v1.UpdateThreadReadStateRequest; import com.google.chat.v1.UploadAttachmentRequest; import com.google.chat.v1.UploadAttachmentResponse; import com.google.protobuf.Empty; @@ -313,6 +314,11 @@ public UnaryCallable updateSpaceRea throw new UnsupportedOperationException("Not implemented: updateSpaceReadStateCallable()"); } + public UnaryCallable + updateThreadReadStateCallable() { + throw new UnsupportedOperationException("Not implemented: updateThreadReadStateCallable()"); + } + public UnaryCallable getThreadReadStateCallable() { throw new UnsupportedOperationException("Not implemented: getThreadReadStateCallable()"); } 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 835f991635a5..0d9883da329f 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 @@ -139,6 +139,7 @@ import com.google.chat.v1.UpdateSpaceNotificationSettingRequest; import com.google.chat.v1.UpdateSpaceReadStateRequest; import com.google.chat.v1.UpdateSpaceRequest; +import com.google.chat.v1.UpdateThreadReadStateRequest; import com.google.chat.v1.UploadAttachmentRequest; import com.google.chat.v1.UploadAttachmentResponse; import com.google.common.collect.ImmutableList; @@ -309,6 +310,8 @@ public class ChatServiceStubSettings extends StubSettings updateSpaceReadStateSettings; + private final UnaryCallSettings + updateThreadReadStateSettings; private final UnaryCallSettings getThreadReadStateSettings; private final UnaryCallSettings getAvailabilitySettings; @@ -1172,6 +1175,12 @@ public UnaryCallSettings getSpaceReadS return updateSpaceReadStateSettings; } + /** Returns the object with the settings used for calls to updateThreadReadState. */ + public UnaryCallSettings + updateThreadReadStateSettings() { + return updateThreadReadStateSettings; + } + /** Returns the object with the settings used for calls to getThreadReadState. */ public UnaryCallSettings getThreadReadStateSettings() { @@ -1419,6 +1428,7 @@ protected ChatServiceStubSettings(Builder settingsBuilder) throws IOException { deleteCustomEmojiSettings = settingsBuilder.deleteCustomEmojiSettings().build(); getSpaceReadStateSettings = settingsBuilder.getSpaceReadStateSettings().build(); updateSpaceReadStateSettings = settingsBuilder.updateSpaceReadStateSettings().build(); + updateThreadReadStateSettings = settingsBuilder.updateThreadReadStateSettings().build(); getThreadReadStateSettings = settingsBuilder.getThreadReadStateSettings().build(); getAvailabilitySettings = settingsBuilder.getAvailabilitySettings().build(); markAsActiveSettings = settingsBuilder.markAsActiveSettings().build(); @@ -1519,6 +1529,8 @@ public static class Builder extends StubSettings.Builder updateSpaceReadStateSettings; + private final UnaryCallSettings.Builder + updateThreadReadStateSettings; private final UnaryCallSettings.Builder getThreadReadStateSettings; private final UnaryCallSettings.Builder @@ -1630,6 +1642,7 @@ protected Builder(@Nullable ClientContext clientContext) { deleteCustomEmojiSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSpaceReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSpaceReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateThreadReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getThreadReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getAvailabilitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); markAsActiveSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1686,6 +1699,7 @@ protected Builder(@Nullable ClientContext clientContext) { deleteCustomEmojiSettings, getSpaceReadStateSettings, updateSpaceReadStateSettings, + updateThreadReadStateSettings, getThreadReadStateSettings, getAvailabilitySettings, markAsActiveSettings, @@ -1745,6 +1759,7 @@ protected Builder(ChatServiceStubSettings settings) { deleteCustomEmojiSettings = settings.deleteCustomEmojiSettings.toBuilder(); getSpaceReadStateSettings = settings.getSpaceReadStateSettings.toBuilder(); updateSpaceReadStateSettings = settings.updateSpaceReadStateSettings.toBuilder(); + updateThreadReadStateSettings = settings.updateThreadReadStateSettings.toBuilder(); getThreadReadStateSettings = settings.getThreadReadStateSettings.toBuilder(); getAvailabilitySettings = settings.getAvailabilitySettings.toBuilder(); markAsActiveSettings = settings.markAsActiveSettings.toBuilder(); @@ -1803,6 +1818,7 @@ protected Builder(ChatServiceStubSettings settings) { deleteCustomEmojiSettings, getSpaceReadStateSettings, updateSpaceReadStateSettings, + updateThreadReadStateSettings, getThreadReadStateSettings, getAvailabilitySettings, markAsActiveSettings, @@ -2023,6 +2039,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 + .updateThreadReadStateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getThreadReadStateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2332,6 +2353,12 @@ public UnaryCallSettings.Builder deleteCustomEm return updateSpaceReadStateSettings; } + /** Returns the builder for the settings used for calls to updateThreadReadState. */ + public UnaryCallSettings.Builder + updateThreadReadStateSettings() { + return updateThreadReadStateSettings; + } + /** Returns the builder for the settings used for calls to getThreadReadState. */ public UnaryCallSettings.Builder getThreadReadStateSettings() { 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 90ea925826bc..ff76d30b17be 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 @@ -117,6 +117,7 @@ import com.google.chat.v1.UpdateSpaceNotificationSettingRequest; import com.google.chat.v1.UpdateSpaceReadStateRequest; import com.google.chat.v1.UpdateSpaceRequest; +import com.google.chat.v1.UpdateThreadReadStateRequest; import com.google.chat.v1.UploadAttachmentRequest; import com.google.chat.v1.UploadAttachmentResponse; import com.google.longrunning.stub.GrpcOperationsStub; @@ -515,6 +516,17 @@ public class GrpcChatServiceStub extends ChatServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateThreadReadStateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/UpdateThreadReadState") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateThreadReadStateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ThreadReadState.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getThreadReadStateMethodDescriptor = MethodDescriptor.newBuilder() @@ -778,6 +790,8 @@ public class GrpcChatServiceStub extends ChatServiceStub { private final UnaryCallable getSpaceReadStateCallable; private final UnaryCallable updateSpaceReadStateCallable; + private final UnaryCallable + updateThreadReadStateCallable; private final UnaryCallable getThreadReadStateCallable; private final UnaryCallable getAvailabilityCallable; @@ -1188,6 +1202,19 @@ protected GrpcChatServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + updateThreadReadStateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateThreadReadStateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "thread_read_state.name", + String.valueOf(request.getThreadReadState().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings getThreadReadStateTransportSettings = GrpcCallSettings.newBuilder() @@ -1541,6 +1568,11 @@ protected GrpcChatServiceStub( updateSpaceReadStateTransportSettings, settings.updateSpaceReadStateSettings(), clientContext); + this.updateThreadReadStateCallable = + callableFactory.createUnaryCallable( + updateThreadReadStateTransportSettings, + settings.updateThreadReadStateSettings(), + clientContext); this.getThreadReadStateCallable = callableFactory.createUnaryCallable( getThreadReadStateTransportSettings, @@ -1854,6 +1886,12 @@ public UnaryCallable updateSpaceRea return updateSpaceReadStateCallable; } + @Override + public UnaryCallable + updateThreadReadStateCallable() { + return updateThreadReadStateCallable; + } + @Override public UnaryCallable getThreadReadStateCallable() { return getThreadReadStateCallable; 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 c529851b7130..1200b4ca0338 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 @@ -122,6 +122,7 @@ import com.google.chat.v1.UpdateSpaceNotificationSettingRequest; import com.google.chat.v1.UpdateSpaceReadStateRequest; import com.google.chat.v1.UpdateSpaceRequest; +import com.google.chat.v1.UpdateThreadReadStateRequest; import com.google.chat.v1.UploadAttachmentRequest; import com.google.chat.v1.UploadAttachmentResponse; import com.google.protobuf.Empty; @@ -1440,6 +1441,47 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + updateThreadReadStateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/UpdateThreadReadState") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{threadReadState.name=users/*/spaces/*/threads/*/threadReadState}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "threadReadState.name", + request.getThreadReadState().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("threadReadState", request.getThreadReadState(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ThreadReadState.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getThreadReadStateMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2163,6 +2205,8 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { private final UnaryCallable getSpaceReadStateCallable; private final UnaryCallable updateSpaceReadStateCallable; + private final UnaryCallable + updateThreadReadStateCallable; private final UnaryCallable getThreadReadStateCallable; private final UnaryCallable getAvailabilityCallable; @@ -2611,6 +2655,20 @@ protected HttpJsonChatServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + updateThreadReadStateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateThreadReadStateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "thread_read_state.name", + String.valueOf(request.getThreadReadState().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getThreadReadStateTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2985,6 +3043,11 @@ protected HttpJsonChatServiceStub( updateSpaceReadStateTransportSettings, settings.updateSpaceReadStateSettings(), clientContext); + this.updateThreadReadStateCallable = + callableFactory.createUnaryCallable( + updateThreadReadStateTransportSettings, + settings.updateThreadReadStateSettings(), + clientContext); this.getThreadReadStateCallable = callableFactory.createUnaryCallable( getThreadReadStateTransportSettings, @@ -3103,6 +3166,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(deleteCustomEmojiMethodDescriptor); methodDescriptors.add(getSpaceReadStateMethodDescriptor); methodDescriptors.add(updateSpaceReadStateMethodDescriptor); + methodDescriptors.add(updateThreadReadStateMethodDescriptor); methodDescriptors.add(getThreadReadStateMethodDescriptor); methodDescriptors.add(getAvailabilityMethodDescriptor); methodDescriptors.add(markAsActiveMethodDescriptor); @@ -3353,6 +3417,12 @@ public UnaryCallable updateSpaceRea return updateSpaceReadStateCallable; } + @Override + public UnaryCallable + updateThreadReadStateCallable() { + return updateThreadReadStateCallable; + } + @Override public UnaryCallable getThreadReadStateCallable() { return getThreadReadStateCallable; 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 67ec7fa1b797..087c2ebff131 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 @@ -4580,6 +4580,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.UpdateThreadReadStateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.UpdateThreadReadStateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.UploadAttachmentRequest", "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 ce6d11915a9e..1db137c575ee 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 @@ -3064,6 +3064,61 @@ public void updateSpaceReadStateExceptionTest() throws Exception { } } + @Test + public void updateThreadReadStateTest() throws Exception { + ThreadReadState expectedResponse = + ThreadReadState.newBuilder() + .setName(ThreadReadStateName.of("[USER]", "[SPACE]", "[THREAD]").toString()) + .setLastReadTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ThreadReadState threadReadState = + ThreadReadState.newBuilder() + .setName(ThreadReadStateName.of("[USER]", "[SPACE]", "[THREAD]").toString()) + .setLastReadTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ThreadReadState actualResponse = client.updateThreadReadState(threadReadState, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateThreadReadStateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ThreadReadState threadReadState = + ThreadReadState.newBuilder() + .setName(ThreadReadStateName.of("[USER]", "[SPACE]", "[THREAD]").toString()) + .setLastReadTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateThreadReadState(threadReadState, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getThreadReadStateTest() throws Exception { ThreadReadState 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 9f8ed58440a2..ac256c19dc0c 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 @@ -2635,6 +2635,49 @@ public void updateSpaceReadStateExceptionTest() throws Exception { } } + @Test + public void updateThreadReadStateTest() throws Exception { + ThreadReadState expectedResponse = + ThreadReadState.newBuilder() + .setName(ThreadReadStateName.of("[USER]", "[SPACE]", "[THREAD]").toString()) + .setLastReadTime(Timestamp.newBuilder().build()) + .build(); + mockChatService.addResponse(expectedResponse); + + ThreadReadState threadReadState = ThreadReadState.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ThreadReadState actualResponse = client.updateThreadReadState(threadReadState, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateThreadReadStateRequest actualRequest = + ((UpdateThreadReadStateRequest) actualRequests.get(0)); + + Assert.assertEquals(threadReadState, actualRequest.getThreadReadState()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateThreadReadStateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + ThreadReadState threadReadState = ThreadReadState.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateThreadReadState(threadReadState, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getThreadReadStateTest() throws Exception { ThreadReadState 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 8db15afc6ab6..b7c3d9ef94c9 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 @@ -789,6 +789,28 @@ public void updateSpaceReadState( } } + @Override + public void updateThreadReadState( + UpdateThreadReadStateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ThreadReadState) { + requests.add(request); + responseObserver.onNext(((ThreadReadState) 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 UpdateThreadReadState, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ThreadReadState.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getThreadReadState( GetThreadReadStateRequest 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 da7dd3b664d6..db6ac5e6160a 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 @@ -1451,6 +1451,50 @@ private ChatServiceGrpc() {} return getUpdateSpaceReadStateMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateThreadReadStateRequest, com.google.chat.v1.ThreadReadState> + getUpdateThreadReadStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateThreadReadState", + requestType = com.google.chat.v1.UpdateThreadReadStateRequest.class, + responseType = com.google.chat.v1.ThreadReadState.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateThreadReadStateRequest, com.google.chat.v1.ThreadReadState> + getUpdateThreadReadStateMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateThreadReadStateRequest, com.google.chat.v1.ThreadReadState> + getUpdateThreadReadStateMethod; + if ((getUpdateThreadReadStateMethod = ChatServiceGrpc.getUpdateThreadReadStateMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getUpdateThreadReadStateMethod = ChatServiceGrpc.getUpdateThreadReadStateMethod) + == null) { + ChatServiceGrpc.getUpdateThreadReadStateMethod = + getUpdateThreadReadStateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateThreadReadState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.UpdateThreadReadStateRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.ThreadReadState.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("UpdateThreadReadState")) + .build(); + } + } + } + return getUpdateThreadReadStateMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.chat.v1.GetThreadReadStateRequest, com.google.chat.v1.ThreadReadState> getGetThreadReadStateMethod; @@ -3409,6 +3453,27 @@ default void updateSpaceReadState( getUpdateSpaceReadStateMethod(), responseObserver); } + /** + * + * + *
+     * Updates a user's read state within a thread, used to identify read and
+     * unread messages. For an example, see [Update a user's thread read
+     * state](https://developers.google.com/workspace/chat/update-thread-read-state).
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with the [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ */ + default void updateThreadReadState( + com.google.chat.v1.UpdateThreadReadStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateThreadReadStateMethod(), responseObserver); + } + /** * * @@ -5105,6 +5170,29 @@ public void updateSpaceReadState( responseObserver); } + /** + * + * + *
+     * Updates a user's read state within a thread, used to identify read and
+     * unread messages. For an example, see [Update a user's thread read
+     * state](https://developers.google.com/workspace/chat/update-thread-read-state).
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with the [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ */ + public void updateThreadReadState( + com.google.chat.v1.UpdateThreadReadStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateThreadReadStateMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -6722,6 +6810,26 @@ public com.google.chat.v1.SpaceReadState updateSpaceReadState( getChannel(), getUpdateSpaceReadStateMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates a user's read state within a thread, used to identify read and
+     * unread messages. For an example, see [Update a user's thread read
+     * state](https://developers.google.com/workspace/chat/update-thread-read-state).
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with the [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ */ + public com.google.chat.v1.ThreadReadState updateThreadReadState( + com.google.chat.v1.UpdateThreadReadStateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateThreadReadStateMethod(), getCallOptions(), request); + } + /** * * @@ -8282,6 +8390,26 @@ public com.google.chat.v1.SpaceReadState updateSpaceReadState( getChannel(), getUpdateSpaceReadStateMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates a user's read state within a thread, used to identify read and
+     * unread messages. For an example, see [Update a user's thread read
+     * state](https://developers.google.com/workspace/chat/update-thread-read-state).
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with the [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ */ + public com.google.chat.v1.ThreadReadState updateThreadReadState( + com.google.chat.v1.UpdateThreadReadStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateThreadReadStateMethod(), getCallOptions(), request); + } + /** * * @@ -9856,6 +9984,26 @@ public com.google.common.util.concurrent.ListenableFuture + * Updates a user's read state within a thread, used to identify read and + * unread messages. For an example, see [Update a user's thread read + * state](https://developers.google.com/workspace/chat/update-thread-read-state). + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * - `https://www.googleapis.com/auth/chat.users.readstate` + * + */ + public com.google.common.util.concurrent.ListenableFuture + updateThreadReadState(com.google.chat.v1.UpdateThreadReadStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateThreadReadStateMethod(), getCallOptions()), request); + } + /** * * @@ -10341,24 +10489,25 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10563,6 +10712,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.chat.v1.UpdateSpaceReadStateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_THREAD_READ_STATE: + serviceImpl.updateThreadReadState( + (com.google.chat.v1.UpdateThreadReadStateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_THREAD_READ_STATE: serviceImpl.getThreadReadState( (com.google.chat.v1.GetThreadReadStateRequest) request, @@ -10890,6 +11044,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.chat.v1.UpdateSpaceReadStateRequest, com.google.chat.v1.SpaceReadState>(service, METHODID_UPDATE_SPACE_READ_STATE))) + .addMethod( + getUpdateThreadReadStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.UpdateThreadReadStateRequest, + com.google.chat.v1.ThreadReadState>( + service, METHODID_UPDATE_THREAD_READ_STATE))) .addMethod( getGetThreadReadStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -11091,6 +11252,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteCustomEmojiMethod()) .addMethod(getGetSpaceReadStateMethod()) .addMethod(getUpdateSpaceReadStateMethod()) + .addMethod(getUpdateThreadReadStateMethod()) .addMethod(getGetThreadReadStateMethod()) .addMethod(getGetAvailabilityMethod()) .addMethod(getMarkAsActiveMethod()) 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 abc160526a5e..f466f7111085 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 @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032%google/chat/v1/space_read_state.pro" + "to\032 google/chat/v1/space_setup.proto\032&go" + "ogle/chat/v1/thread_read_state.proto\032\033go" - + "ogle/protobuf/empty.proto2\204P\n\013ChatServic" + + "ogle/protobuf/empty.proto2\362Q\n\013ChatServic" + "e\022\233\001\n\rCreateMessage\022$.google.chat.v1.Cre" + "ateMessageRequest\032\027.google.chat.v1.Messa" + "ge\"K\332A\031parent,message,message_id\202\323\344\223\002)\"\036" @@ -188,142 +188,148 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v1.SpaceReadState\"t\332A\034space_read_state,u" + "pdate_mask\202\323\344\223\002O2;/v1/{space_read_state." + "name=users/*/spaces/*/spaceReadState}:\020s" - + "pace_read_state\022\246\001\n\022GetThreadReadState\022)" - + ".google.chat.v1.GetThreadReadStateReques" - + "t\032\037.google.chat.v1.ThreadReadState\"D\332A\004n" - + "ame\202\323\344\223\0027\0225/v1/{name=users/*/spaces/*/th" - + "reads/*/threadReadState}\022\207\001\n\017GetAvailabi" - + "lity\022&.google.chat.v1.GetAvailabilityReq" - + "uest\032\034.google.chat.v1.Availability\".\332A\004n" - + "ame\202\323\344\223\002!\022\037/v1/{name=users/*/availabilit" - + "y}\022\212\001\n\014MarkAsActive\022#.google.chat.v1.Mar" - + "kAsActiveRequest\032\034.google.chat.v1.Availa" - + "bility\"7\202\323\344\223\0021\",/v1/{name=users/*/availa" - + "bility}:markAsActive:\001*\022\204\001\n\nMarkAsAway\022!" - + ".google.chat.v1.MarkAsAwayRequest\032\034.goog" - + "le.chat.v1.Availability\"5\202\323\344\223\002/\"*/v1/{na" - + "me=users/*/availability}:markAsAway:\001*\022\234" - + "\001\n\022MarkAsDoNotDisturb\022).google.chat.v1.M" - + "arkAsDoNotDisturbRequest\032\034.google.chat.v" - + "1.Availability\"=\202\323\344\223\0027\"2/v1/{name=users/" - + "*/availability}:markAsDoNotDisturb:\001*\022\274\001" - + "\n\022UpdateAvailability\022).google.chat.v1.Up" - + "dateAvailabilityRequest\032\034.google.chat.v1" - + ".Availability\"]\332A\030availability,update_ma" - + "sk\202\323\344\223\002<2,/v1/{availability.name=users/*" - + "/availability}:\014availability\022\203\001\n\rGetSpac" - + "eEvent\022$.google.chat.v1.GetSpaceEventReq" - + "uest\032\032.google.chat.v1.SpaceEvent\"0\332A\004nam" - + "e\202\323\344\223\002#\022!/v1/{name=spaces/*/spaceEvents/" - + "*}\022\235\001\n\017ListSpaceEvents\022&.google.chat.v1." - + "ListSpaceEventsRequest\032\'.google.chat.v1." - + "ListSpaceEventsResponse\"9\332A\rparent,filte" - + "r\202\323\344\223\002#\022!/v1/{parent=spaces/*}/spaceEven" - + "ts\022\300\001\n\033GetSpaceNotificationSetting\0222.goo" - + "gle.chat.v1.GetSpaceNotificationSettingR" - + "equest\032(.google.chat.v1.SpaceNotificatio" - + "nSetting\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=users" - + "/*/spaces/*/spaceNotificationSetting}\022\240\002" - + "\n\036UpdateSpaceNotificationSetting\0225.googl" - + "e.chat.v1.UpdateSpaceNotificationSetting" - + "Request\032(.google.chat.v1.SpaceNotificati" - + "onSetting\"\234\001\332A&space_notification_settin" - + "g,update_mask\202\323\344\223\002m2O/v1/{space_notifica" - + "tion_setting.name=users/*/spaces/*/space" - + "NotificationSetting}:\032space_notification" - + "_setting\022\217\001\n\rCreateSection\022$.google.chat" - + ".v1.CreateSectionRequest\032\027.google.chat.v" - + "1.Section\"?\332A\016parent,section\202\323\344\223\002(\"\035/v1/" - + "{parent=users/*}/sections:\007section\022{\n\rDe" - + "leteSection\022$.google.chat.v1.DeleteSecti" - + "onRequest\032\026.google.protobuf.Empty\",\332A\004na" - + "me\202\323\344\223\002\037*\035/v1/{name=users/*/sections/*}\022" - + "\234\001\n\rUpdateSection\022$.google.chat.v1.Updat" - + "eSectionRequest\032\027.google.chat.v1.Section" - + "\"L\332A\023section,update_mask\202\323\344\223\00202%/v1/{sec" - + "tion.name=users/*/sections/*}:\007section\022\211" - + "\001\n\014ListSections\022#.google.chat.v1.ListSec" - + "tionsRequest\032$.google.chat.v1.ListSectio" - + "nsResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent" - + "=users/*}/sections\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/*}:p" - + "osition:\001*\022\235\001\n\020ListSectionItems\022\'.google" - + ".chat.v1.ListSectionItemsRequest\032(.googl" - + "e.chat.v1.ListSectionItemsResponse\"6\332A\006p" - + "arent\202\323\344\223\002\'\022%/v1/{parent=users/*/section" - + "s/*}/items\022\257\001\n\017MoveSectionItem\022&.google." - + "chat.v1.MoveSectionItemRequest\032\'.google." - + "chat.v1.MoveSectionItemResponse\"K\332A\023name" - + ",target_section\202\323\344\223\002/\"*/v1/{name=users/*" - + "/sections/*/items/*}:move:\001*\022\246\001\n\023Replace" - + "MessageCards\022*.google.chat.v1.ReplaceMes" - + "sageCardsRequest\032+.google.chat.v1.Replac" - + "eMessageCardsResponse\"6\202\323\344\223\0020\"+/v1/{name" - + "=spaces/*/messages/*}:replaceCards:\001*\032\340\021" - + "\312A\023chat.googleapis.com\322A\306\021https://www.go" - + "ogleapis.com/auth/chat.admin.delete,http" - + "s://www.googleapis.com/auth/chat.admin.m" - + "emberships,https://www.googleapis.com/au" - + "th/chat.admin.memberships.readonly,https" - + "://www.googleapis.com/auth/chat.admin.sp" - + "aces,https://www.googleapis.com/auth/cha" - + "t.admin.spaces.readonly,https://www.goog" - + "leapis.com/auth/chat.app.all.memberships" - + ".readonly,https://www.googleapis.com/aut" - + "h/chat.app.all.messages.readonly,https:/" - + "/www.googleapis.com/auth/chat.app.all.sp" - + "aces.readonly,https://www.googleapis.com" - + "/auth/chat.app.delete,https://www.google" - + "apis.com/auth/chat.app.memberships,https" - + "://www.googleapis.com/auth/chat.app.memb" - + "erships.readonly,https://www.googleapis." - + "com/auth/chat.app.messages.readonly,http" - + "s://www.googleapis.com/auth/chat.app.spa" - + "ces,https://www.googleapis.com/auth/chat" - + ".app.spaces.create,https://www.googleapi" - + "s.com/auth/chat.app.spaces.readonly,http" - + "s://www.googleapis.com/auth/chat.bot,htt" - + "ps://www.googleapis.com/auth/chat.custom" - + "emojis,https://www.googleapis.com/auth/c" - + "hat.customemojis.readonly,https://www.go" - + "ogleapis.com/auth/chat.delete,https://ww" - + "w.googleapis.com/auth/chat.import,https:" - + "//www.googleapis.com/auth/chat.membershi" - + "ps,https://www.googleapis.com/auth/chat." - + "memberships.app,https://www.googleapis.c" - + "om/auth/chat.memberships.readonly,https:" - + "//www.googleapis.com/auth/chat.messages," - + "https://www.googleapis.com/auth/chat.mes" - + "sages.create,https://www.googleapis.com/" - + "auth/chat.messages.reactions,https://www" - + ".googleapis.com/auth/chat.messages.react" - + "ions.create,https://www.googleapis.com/a" - + "uth/chat.messages.reactions.readonly,htt" - + "ps://www.googleapis.com/auth/chat.messag" + + "pace_read_state\022\353\001\n\025UpdateThreadReadStat" + + "e\022,.google.chat.v1.UpdateThreadReadState" + + "Request\032\037.google.chat.v1.ThreadReadState" + + "\"\202\001\332A\035thread_read_state,update_mask\202\323\344\223\002" + + "\\2G/v1/{thread_read_state.name=users/*/s" + + "paces/*/threads/*/threadReadState}:\021thre" + + "ad_read_state\022\246\001\n\022GetThreadReadState\022).g" + + "oogle.chat.v1.GetThreadReadStateRequest\032" + + "\037.google.chat.v1.ThreadReadState\"D\332A\004nam" + + "e\202\323\344\223\0027\0225/v1/{name=users/*/spaces/*/thre" + + "ads/*/threadReadState}\022\207\001\n\017GetAvailabili" + + "ty\022&.google.chat.v1.GetAvailabilityReque" + + "st\032\034.google.chat.v1.Availability\".\332A\004nam" + + "e\202\323\344\223\002!\022\037/v1/{name=users/*/availability}" + + "\022\212\001\n\014MarkAsActive\022#.google.chat.v1.MarkA" + + "sActiveRequest\032\034.google.chat.v1.Availabi" + + "lity\"7\202\323\344\223\0021\",/v1/{name=users/*/availabi" + + "lity}:markAsActive:\001*\022\204\001\n\nMarkAsAway\022!.g" + + "oogle.chat.v1.MarkAsAwayRequest\032\034.google" + + ".chat.v1.Availability\"5\202\323\344\223\002/\"*/v1/{name" + + "=users/*/availability}:markAsAway:\001*\022\234\001\n" + + "\022MarkAsDoNotDisturb\022).google.chat.v1.Mar" + + "kAsDoNotDisturbRequest\032\034.google.chat.v1." + + "Availability\"=\202\323\344\223\0027\"2/v1/{name=users/*/" + + "availability}:markAsDoNotDisturb:\001*\022\274\001\n\022" + + "UpdateAvailability\022).google.chat.v1.Upda" + + "teAvailabilityRequest\032\034.google.chat.v1.A" + + "vailability\"]\332A\030availability,update_mask" + + "\202\323\344\223\002<2,/v1/{availability.name=users/*/a" + + "vailability}:\014availability\022\203\001\n\rGetSpaceE" + + "vent\022$.google.chat.v1.GetSpaceEventReque" + + "st\032\032.google.chat.v1.SpaceEvent\"0\332A\004name\202" + + "\323\344\223\002#\022!/v1/{name=spaces/*/spaceEvents/*}" + + "\022\235\001\n\017ListSpaceEvents\022&.google.chat.v1.Li" + + "stSpaceEventsRequest\032\'.google.chat.v1.Li" + + "stSpaceEventsResponse\"9\332A\rparent,filter\202" + + "\323\344\223\002#\022!/v1/{parent=spaces/*}/spaceEvents" + + "\022\300\001\n\033GetSpaceNotificationSetting\0222.googl" + + "e.chat.v1.GetSpaceNotificationSettingReq" + + "uest\032(.google.chat.v1.SpaceNotificationS" + + "etting\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=users/*" + + "/spaces/*/spaceNotificationSetting}\022\240\002\n\036" + + "UpdateSpaceNotificationSetting\0225.google." + + "chat.v1.UpdateSpaceNotificationSettingRe" + + "quest\032(.google.chat.v1.SpaceNotification" + + "Setting\"\234\001\332A&space_notification_setting," + + "update_mask\202\323\344\223\002m2O/v1/{space_notificati" + + "on_setting.name=users/*/spaces/*/spaceNo" + + "tificationSetting}:\032space_notification_s" + + "etting\022\217\001\n\rCreateSection\022$.google.chat.v" + + "1.CreateSectionRequest\032\027.google.chat.v1." + + "Section\"?\332A\016parent,section\202\323\344\223\002(\"\035/v1/{p" + + "arent=users/*}/sections:\007section\022{\n\rDele" + + "teSection\022$.google.chat.v1.DeleteSection" + + "Request\032\026.google.protobuf.Empty\",\332A\004name" + + "\202\323\344\223\002\037*\035/v1/{name=users/*/sections/*}\022\234\001" + + "\n\rUpdateSection\022$.google.chat.v1.UpdateS" + + "ectionRequest\032\027.google.chat.v1.Section\"L" + + "\332A\023section,update_mask\202\323\344\223\00202%/v1/{secti" + + "on.name=users/*/sections/*}:\007section\022\211\001\n" + + "\014ListSections\022#.google.chat.v1.ListSecti" + + "onsRequest\032$.google.chat.v1.ListSections" + + "Response\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent=u" + + "sers/*}/sections\022\225\001\n\017PositionSection\022&.g" + + "oogle.chat.v1.PositionSectionRequest\032\'.g" + + "oogle.chat.v1.PositionSectionResponse\"1\202" + + "\323\344\223\002+\"&/v1/{name=users/*/sections/*}:pos" + + "ition:\001*\022\235\001\n\020ListSectionItems\022\'.google.c" + + "hat.v1.ListSectionItemsRequest\032(.google." + + "chat.v1.ListSectionItemsResponse\"6\332A\006par" + + "ent\202\323\344\223\002\'\022%/v1/{parent=users/*/sections/" + + "*}/items\022\257\001\n\017MoveSectionItem\022&.google.ch" + + "at.v1.MoveSectionItemRequest\032\'.google.ch" + + "at.v1.MoveSectionItemResponse\"K\332A\023name,t" + + "arget_section\202\323\344\223\002/\"*/v1/{name=users/*/s" + + "ections/*/items/*}:move:\001*\022\246\001\n\023ReplaceMe" + + "ssageCards\022*.google.chat.v1.ReplaceMessa" + + "geCardsRequest\032+.google.chat.v1.ReplaceM" + + "essageCardsResponse\"6\202\323\344\223\0020\"+/v1/{name=s" + + "paces/*/messages/*}:replaceCards:\001*\032\340\021\312A" + + "\023chat.googleapis.com\322A\306\021https://www.goog" + + "leapis.com/auth/chat.admin.delete,https:" + + "//www.googleapis.com/auth/chat.admin.mem" + + "berships,https://www.googleapis.com/auth" + + "/chat.admin.memberships.readonly,https:/" + + "/www.googleapis.com/auth/chat.admin.spac" + + "es,https://www.googleapis.com/auth/chat." + + "admin.spaces.readonly,https://www.google" + + "apis.com/auth/chat.app.all.memberships.r" + + "eadonly,https://www.googleapis.com/auth/" + + "chat.app.all.messages.readonly,https://w" + + "ww.googleapis.com/auth/chat.app.all.spac" + "es.readonly,https://www.googleapis.com/a" - + "uth/chat.spaces,https://www.googleapis.c" - + "om/auth/chat.spaces.create,https://www.g" - + "oogleapis.com/auth/chat.spaces.pins,http" - + "s://www.googleapis.com/auth/chat.spaces." - + "pins.readonly,https://www.googleapis.com" - + "/auth/chat.spaces.readonly,https://www.g" - + "oogleapis.com/auth/chat.users.availabili" - + "ty,https://www.googleapis.com/auth/chat." - + "users.availability.readonly,https://www." - + "googleapis.com/auth/chat.users.readstate" + + "uth/chat.app.delete,https://www.googleap" + + "is.com/auth/chat.app.memberships,https:/" + + "/www.googleapis.com/auth/chat.app.member" + + "ships.readonly,https://www.googleapis.co" + + "m/auth/chat.app.messages.readonly,https:" + + "//www.googleapis.com/auth/chat.app.space" + + "s,https://www.googleapis.com/auth/chat.a" + + "pp.spaces.create,https://www.googleapis." + + "com/auth/chat.app.spaces.readonly,https:" + + "//www.googleapis.com/auth/chat.bot,https" + + "://www.googleapis.com/auth/chat.customem" + + "ojis,https://www.googleapis.com/auth/cha" + + "t.customemojis.readonly,https://www.goog" + + "leapis.com/auth/chat.delete,https://www." + + "googleapis.com/auth/chat.import,https://" + + "www.googleapis.com/auth/chat.memberships" + + ",https://www.googleapis.com/auth/chat.me" + + "mberships.app,https://www.googleapis.com" + + "/auth/chat.memberships.readonly,https://" + + "www.googleapis.com/auth/chat.messages,ht" + + "tps://www.googleapis.com/auth/chat.messa" + + "ges.create,https://www.googleapis.com/au" + + "th/chat.messages.reactions,https://www.g" + + "oogleapis.com/auth/chat.messages.reactio" + + "ns.create,https://www.googleapis.com/aut" + + "h/chat.messages.reactions.readonly,https" + + "://www.googleapis.com/auth/chat.messages" + + ".readonly,https://www.googleapis.com/aut" + + "h/chat.spaces,https://www.googleapis.com" + + "/auth/chat.spaces.create,https://www.goo" + + "gleapis.com/auth/chat.spaces.pins,https:" + + "//www.googleapis.com/auth/chat.spaces.pi" + + "ns.readonly,https://www.googleapis.com/a" + + "uth/chat.spaces.readonly,https://www.goo" + + "gleapis.com/auth/chat.users.availability" + ",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" + + "ers.availability.readonly,https://www.go" + + "ogleapis.com/auth/chat.users.readstate,h" + + "ttps://www.googleapis.com/auth/chat.user" + + "s.readstate.readonly,https://www.googlea" + + "pis.com/auth/chat.users.sections,https:/" + + "/www.googleapis.com/auth/chat.users.sect" + + "ions.readonly,https://www.googleapis.com" + + "/auth/chat.users.spacesettingsB\251\001\n\022com.g" + + "oogle.chat.v1B\020ChatServiceProtoP\001Z,cloud" + + ".google.com/go/chat/apiv1/chatpb;chatpb\242" + + "\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023Go" + + "ogle\\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/ThreadReadStateProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateProto.java index 9803d66f6e76..8e64446e907b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_GetThreadReadStateRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_chat_v1_GetThreadReadStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_UpdateThreadReadStateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_UpdateThreadReadStateRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -59,20 +63,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n&google/chat/v1/thread_read_state.proto" + "\022\016google.chat.v1\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\032\037go" - + "ogle/protobuf/timestamp.proto\"\314\001\n\017Thread" - + "ReadState\022\014\n\004name\030\001 \001(\t\0222\n\016last_read_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp:w\352At" - + "\n#chat.googleapis.com/ThreadReadState\022 + * Request message for UpdateThreadReadState API. + * + * + * Protobuf type {@code google.chat.v1.UpdateThreadReadStateRequest} + */ +@com.google.protobuf.Generated +public final class UpdateThreadReadStateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.UpdateThreadReadStateRequest) + UpdateThreadReadStateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateThreadReadStateRequest"); + } + + // Use UpdateThreadReadStateRequest.newBuilder() to construct. + private UpdateThreadReadStateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateThreadReadStateRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.UpdateThreadReadStateRequest.class, + com.google.chat.v1.UpdateThreadReadStateRequest.Builder.class); + } + + private int bitField0_; + public static final int THREAD_READ_STATE_FIELD_NUMBER = 1; + private com.google.chat.v1.ThreadReadState threadReadState_; + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the threadReadState field is set. + */ + @java.lang.Override + public boolean hasThreadReadState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threadReadState. + */ + @java.lang.Override + public com.google.chat.v1.ThreadReadState getThreadReadState() { + return threadReadState_ == null + ? com.google.chat.v1.ThreadReadState.getDefaultInstance() + : threadReadState_; + } + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.chat.v1.ThreadReadStateOrBuilder getThreadReadStateOrBuilder() { + return threadReadState_ == null + ? com.google.chat.v1.ThreadReadState.getDefaultInstance() + : threadReadState_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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, getThreadReadState()); + } + 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, getThreadReadState()); + } + 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.chat.v1.UpdateThreadReadStateRequest)) { + return super.equals(obj); + } + com.google.chat.v1.UpdateThreadReadStateRequest other = + (com.google.chat.v1.UpdateThreadReadStateRequest) obj; + + if (hasThreadReadState() != other.hasThreadReadState()) return false; + if (hasThreadReadState()) { + if (!getThreadReadState().equals(other.getThreadReadState())) 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 (hasThreadReadState()) { + hash = (37 * hash) + THREAD_READ_STATE_FIELD_NUMBER; + hash = (53 * hash) + getThreadReadState().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.chat.v1.UpdateThreadReadStateRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest 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.UpdateThreadReadStateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest 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.UpdateThreadReadStateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest 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.UpdateThreadReadStateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest 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.UpdateThreadReadStateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest 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.UpdateThreadReadStateRequest 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 UpdateThreadReadState API.
+   * 
+ * + * Protobuf type {@code google.chat.v1.UpdateThreadReadStateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.UpdateThreadReadStateRequest) + com.google.chat.v1.UpdateThreadReadStateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.UpdateThreadReadStateRequest.class, + com.google.chat.v1.UpdateThreadReadStateRequest.Builder.class); + } + + // Construct using com.google.chat.v1.UpdateThreadReadStateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetThreadReadStateFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + threadReadState_ = null; + if (threadReadStateBuilder_ != null) { + threadReadStateBuilder_.dispose(); + threadReadStateBuilder_ = 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.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.UpdateThreadReadStateRequest getDefaultInstanceForType() { + return com.google.chat.v1.UpdateThreadReadStateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.UpdateThreadReadStateRequest build() { + com.google.chat.v1.UpdateThreadReadStateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.UpdateThreadReadStateRequest buildPartial() { + com.google.chat.v1.UpdateThreadReadStateRequest result = + new com.google.chat.v1.UpdateThreadReadStateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.UpdateThreadReadStateRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threadReadState_ = + threadReadStateBuilder_ == null ? threadReadState_ : threadReadStateBuilder_.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.chat.v1.UpdateThreadReadStateRequest) { + return mergeFrom((com.google.chat.v1.UpdateThreadReadStateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.UpdateThreadReadStateRequest other) { + if (other == com.google.chat.v1.UpdateThreadReadStateRequest.getDefaultInstance()) + return this; + if (other.hasThreadReadState()) { + mergeThreadReadState(other.getThreadReadState()); + } + 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( + internalGetThreadReadStateFieldBuilder().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.chat.v1.ThreadReadState threadReadState_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ThreadReadState, + com.google.chat.v1.ThreadReadState.Builder, + com.google.chat.v1.ThreadReadStateOrBuilder> + threadReadStateBuilder_; + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the threadReadState field is set. + */ + public boolean hasThreadReadState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threadReadState. + */ + public com.google.chat.v1.ThreadReadState getThreadReadState() { + if (threadReadStateBuilder_ == null) { + return threadReadState_ == null + ? com.google.chat.v1.ThreadReadState.getDefaultInstance() + : threadReadState_; + } else { + return threadReadStateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setThreadReadState(com.google.chat.v1.ThreadReadState value) { + if (threadReadStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + threadReadState_ = value; + } else { + threadReadStateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setThreadReadState(com.google.chat.v1.ThreadReadState.Builder builderForValue) { + if (threadReadStateBuilder_ == null) { + threadReadState_ = builderForValue.build(); + } else { + threadReadStateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeThreadReadState(com.google.chat.v1.ThreadReadState value) { + if (threadReadStateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && threadReadState_ != null + && threadReadState_ != com.google.chat.v1.ThreadReadState.getDefaultInstance()) { + getThreadReadStateBuilder().mergeFrom(value); + } else { + threadReadState_ = value; + } + } else { + threadReadStateBuilder_.mergeFrom(value); + } + if (threadReadState_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearThreadReadState() { + bitField0_ = (bitField0_ & ~0x00000001); + threadReadState_ = null; + if (threadReadStateBuilder_ != null) { + threadReadStateBuilder_.dispose(); + threadReadStateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.chat.v1.ThreadReadState.Builder getThreadReadStateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetThreadReadStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.chat.v1.ThreadReadStateOrBuilder getThreadReadStateOrBuilder() { + if (threadReadStateBuilder_ != null) { + return threadReadStateBuilder_.getMessageOrBuilder(); + } else { + return threadReadState_ == null + ? com.google.chat.v1.ThreadReadState.getDefaultInstance() + : threadReadState_; + } + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ThreadReadState, + com.google.chat.v1.ThreadReadState.Builder, + com.google.chat.v1.ThreadReadStateOrBuilder> + internalGetThreadReadStateFieldBuilder() { + if (threadReadStateBuilder_ == null) { + threadReadStateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ThreadReadState, + com.google.chat.v1.ThreadReadState.Builder, + com.google.chat.v1.ThreadReadStateOrBuilder>( + getThreadReadState(), getParentForChildren(), isClean()); + threadReadState_ = null; + } + return threadReadStateBuilder_; + } + + 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_; + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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.chat.v1.UpdateThreadReadStateRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.UpdateThreadReadStateRequest) + private static final com.google.chat.v1.UpdateThreadReadStateRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.UpdateThreadReadStateRequest(); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateThreadReadStateRequest 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.UpdateThreadReadStateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequestOrBuilder.java new file mode 100644 index 000000000000..293657824b06 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequestOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/thread_read_state.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface UpdateThreadReadStateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.UpdateThreadReadStateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the threadReadState field is set. + */ + boolean hasThreadReadState(); + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threadReadState. + */ + com.google.chat.v1.ThreadReadState getThreadReadState(); + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.chat.v1.ThreadReadStateOrBuilder getThreadReadStateOrBuilder(); + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} 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 b4bdf14da99c..bfeba9a69924 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 @@ -1174,6 +1174,25 @@ service ChatService { option (google.api.method_signature) = "space_read_state,update_mask"; } + // Updates a user's read state within a thread, used to identify read and + // unread messages. For an example, see [Update a user's thread read + // state](https://developers.google.com/workspace/chat/update-thread-read-state). + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with the [authorization + // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.readstate` + rpc UpdateThreadReadState(UpdateThreadReadStateRequest) + returns (ThreadReadState) { + option (google.api.http) = { + patch: "/v1/{thread_read_state.name=users/*/spaces/*/threads/*/threadReadState}" + body: "thread_read_state" + }; + option (google.api.method_signature) = "thread_read_state,update_mask"; + } + // Returns details about a user's read state within a thread, used to identify // read and unread messages. For an example, see [Get details about a user's // thread read diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto index 23934346840d..4d9c833f2bd2 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto @@ -18,6 +18,7 @@ package google.chat.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Apps.Chat.V1"; @@ -73,3 +74,39 @@ message GetThreadReadStateRequest { } ]; } + +// Request message for UpdateThreadReadState API. +message UpdateThreadReadStateRequest { + // Required. The thread read state and fields to update. + // + // Only supports updating read state for the calling user. + // + // To refer to the calling user, set one of the following: + // + // - The `me` alias. For example, + // `users/me/spaces/{space}/threads/{thread}/threadReadState`. + // + // - Their Workspace email address. For example, + // `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. + // + // - Their user id. For example, + // `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + // + // Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` + ThreadReadState thread_read_state = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The field paths to update. Currently supported field paths: + // + // - `last_read_time` + // + // When `last_read_time` is before the latest message create time, the thread + // appears as unread in the UI. + // + // To mark the thread as read, set `last_read_time` to a timestamp equal to or + // later than the latest message create time. Future timestamps are coerced to + // the current request time. Setting a negative timestamp (before + // `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/AsyncUpdateThreadReadState.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/AsyncUpdateThreadReadState.java new file mode 100644 index 000000000000..e40529ccf348 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/AsyncUpdateThreadReadState.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateThreadReadState_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ThreadReadState; +import com.google.chat.v1.UpdateThreadReadStateRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateThreadReadState { + + public static void main(String[] args) throws Exception { + asyncUpdateThreadReadState(); + } + + public static void asyncUpdateThreadReadState() 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()) { + UpdateThreadReadStateRequest request = + UpdateThreadReadStateRequest.newBuilder() + .setThreadReadState(ThreadReadState.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + chatServiceClient.updateThreadReadStateCallable().futureCall(request); + // Do something. + ThreadReadState response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_UpdateThreadReadState_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadState.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadState.java new file mode 100644 index 000000000000..618653a40156 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadState.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateThreadReadState_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ThreadReadState; +import com.google.chat.v1.UpdateThreadReadStateRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateThreadReadState { + + public static void main(String[] args) throws Exception { + syncUpdateThreadReadState(); + } + + public static void syncUpdateThreadReadState() 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()) { + UpdateThreadReadStateRequest request = + UpdateThreadReadStateRequest.newBuilder() + .setThreadReadState(ThreadReadState.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ThreadReadState response = chatServiceClient.updateThreadReadState(request); + } + } +} +// [END chat_v1_generated_ChatService_UpdateThreadReadState_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadStateThreadreadstateFieldmask.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadStateThreadreadstateFieldmask.java new file mode 100644 index 000000000000..e7a516babe06 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadStateThreadreadstateFieldmask.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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateThreadReadState_ThreadreadstateFieldmask_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ThreadReadState; +import com.google.protobuf.FieldMask; + +public class SyncUpdateThreadReadStateThreadreadstateFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateThreadReadStateThreadreadstateFieldmask(); + } + + public static void syncUpdateThreadReadStateThreadreadstateFieldmask() 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()) { + ThreadReadState threadReadState = ThreadReadState.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ThreadReadState response = + chatServiceClient.updateThreadReadState(threadReadState, updateMask); + } + } +} +// [END chat_v1_generated_ChatService_UpdateThreadReadState_ThreadreadstateFieldmask_sync] diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 3426da96bbd3..6f707a49d391 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.40.0 + 0.41.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-chronicle' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.40.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.41.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/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-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.41.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-cloudapiregistry/README.md b/java-cloudapiregistry/README.md index 448256745d1d..4d4a061db853 100644 --- a/java-cloudapiregistry/README.md +++ b/java-cloudapiregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudapiregistry - 0.21.0 + 0.22.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudapiregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.21.0' +implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.22.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/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-cloudapiregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.22.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-cloudbuild/README.md b/java-cloudbuild/README.md index 32010bd157a7..a770e6cf7d75 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.104.0 + 3.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-build' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.104.0' +implementation 'com.google.cloud:google-cloud-build:3.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-build/latest/overview [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-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.105.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-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 63a55a61bc51..ba4f619369f1 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.100.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcommerceconsumerprocurement/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-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.101.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-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 36e9bd643158..f22ac0a4d569 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.66.0 + 0.67.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-cloudcontrolspartner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.66.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.67.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/overview [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-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.67.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-cloudquotas/README.md b/java-cloudquotas/README.md index c7052dc2a3c2..d8bf76ca93eb 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.70.0 + 0.71.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-cloudquotas' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.70.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.71.0" ``` ## Authentication @@ -182,7 +182,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/overview [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-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.71.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-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index 46b5a1e53d5f..61db46fcca89 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 0.29.0 + 0.30.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.29.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.30.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/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-cloudsecuritycompliance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.30.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-cloudsupport/README.md b/java-cloudsupport/README.md index dd0ced8c3cfe..6db54e1953a7 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.86.0 + 0.87.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudsupport' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.86.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.87.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsupport/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-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.87.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-commerceproducer/README.md b/java-commerceproducer/README.md index de38f816d758..ef7798a87807 100644 --- a/java-commerceproducer/README.md +++ b/java-commerceproducer/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-commerceproducer - 0.8.0 + 0.9.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-commerceproducer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-commerceproducer:0.8.0' +implementation 'com.google.cloud:google-cloud-commerceproducer:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-commerceproducer" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-commerceproducer" % "0.9.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-commerceproducer/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-commerceproducer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-commerceproducer/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-commerceproducer/0.9.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-compute/README.md b/java-compute/README.md index 2973a9eb11d8..a3fd8d8e30e1 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.112.0 + 1.113.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-compute' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.112.0' +implementation 'com.google.cloud:google-cloud-compute:1.113.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.112.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.113.0" ``` ## Authentication @@ -245,7 +245,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-compute/latest/overview [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-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.112.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.113.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-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 231f35fdf86f..f8cf59ecec18 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.88.0 + 0.89.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-confidentialcomputing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.88.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.89.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/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-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.89.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-configdelivery/README.md b/java-configdelivery/README.md index 2323b1c8df68..3b76250ed33c 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.36.0 + 0.37.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-configdelivery' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.36.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.37.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/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-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.37.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-connectgateway/README.md b/java-connectgateway/README.md index 8b15b6345a1f..470275182be6 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.54.0 + 0.55.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-connectgateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.54.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.55.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/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-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.55.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-contact-center-insights/README.md b/java-contact-center-insights/README.md index 66728154e4eb..b2979d574cc6 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-contact-center-insights' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.102.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contact-center-insights/latest/overview [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-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.103.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-container/README.md b/java-container/README.md index 115bef601ecb..628db512d6e8 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.105.0 + 2.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-container' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.105.0' +implementation 'com.google.cloud:google-cloud-container:2.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-container/latest/overview [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-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.106.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-containeranalysis/README.md b/java-containeranalysis/README.md index 4c5c47a6d299..3888e1178fe9 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-containeranalysis' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.103.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/overview [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-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.104.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-contentwarehouse/README.md b/java-contentwarehouse/README.md index e32413426bbc..80fbce7c9970 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-contentwarehouse' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.98.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contentwarehouse/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-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.99.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-data-fusion/README.md b/java-data-fusion/README.md index 6362c4a7325a..ce6363f32af5 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-data-fusion' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.102.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-data-fusion/latest/overview [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-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.103.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-databasecenter/README.md b/java-databasecenter/README.md index bf84f3371a75..d1baf58ae6ed 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.23.0 + 0.24.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-databasecenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.23.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.24.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/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-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.24.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-dataflow/README.md b/java-dataflow/README.md index e0c9cea08605..67147849351b 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.106.0 + 0.107.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dataflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.106.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.107.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataflow/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-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.107.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-dataform/README.md b/java-dataform/README.md index cc7c9c8c35ca..7e0ddd57412e 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dataform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.101.0' +implementation 'com.google.cloud:google-cloud-dataform:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataform/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-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.102.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-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java index c78015af400a..aa16f8fe3779 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java @@ -628,6 +628,26 @@ * * * + *

CreateWorkspaceLongRunning + *

Creates a new Workspace in a given Repository asynchronously. + * + *

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

+ *
    + *
  • createWorkspaceLongRunningAsync(CreateWorkspaceRequest request) + *

+ *

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

+ *
    + *
  • createWorkspaceLongRunningAsync(RepositoryName parent, Workspace workspace, String workspaceId) + *

  • createWorkspaceLongRunningAsync(String parent, Workspace workspace, String workspaceId) + *

+ *

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

+ *
    + *
  • createWorkspaceLongRunningOperationCallable() + *

  • createWorkspaceLongRunningCallable() + *

+ * + * + * *

DeleteWorkspace *

Deletes a single Workspace. * @@ -5224,6 +5244,177 @@ public final UnaryCallable createWorkspaceCal return stub.createWorkspaceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   Workspace workspace = Workspace.newBuilder().build();
+   *   String workspaceId = "workspaceId466560144";
+   *   Workspace response =
+   *       dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get();
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + @Nullable RepositoryName parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspaceLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   Workspace workspace = Workspace.newBuilder().build();
+   *   String workspaceId = "workspaceId466560144";
+   *   Workspace response =
+   *       dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get();
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + String parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspaceLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   Workspace response = dataformClient.createWorkspaceLongRunningAsync(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 createWorkspaceLongRunningAsync( + CreateWorkspaceRequest request) { + return createWorkspaceLongRunningOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   OperationFuture future =
+   *       dataformClient.createWorkspaceLongRunningOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createWorkspaceLongRunningOperationCallable() { + return stub.createWorkspaceLongRunningOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.createWorkspaceLongRunningCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createWorkspaceLongRunningCallable() { + return stub.createWorkspaceLongRunningCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single Workspace. diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java index 30455f383a64..9788b96168c8 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java @@ -346,6 +346,17 @@ public UnaryCallSettings createWorkspaceSetti return ((DataformStubSettings) getStubSettings()).createWorkspaceSettings(); } + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings createWorkspaceLongRunningSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkspaceLongRunningSettings(); + } + + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings + createWorkspaceLongRunningOperationSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkspaceLongRunningOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteWorkspace. */ public UnaryCallSettings deleteWorkspaceSettings() { return ((DataformStubSettings) getStubSettings()).deleteWorkspaceSettings(); @@ -954,6 +965,18 @@ public UnaryCallSettings.Builder createWorksp return getStubSettingsBuilder().createWorkspaceSettings(); } + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings.Builder + createWorkspaceLongRunningSettings() { + return getStubSettingsBuilder().createWorkspaceLongRunningSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings.Builder + createWorkspaceLongRunningOperationSettings() { + return getStubSettingsBuilder().createWorkspaceLongRunningOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteWorkspace. */ public UnaryCallSettings.Builder deleteWorkspaceSettings() { return getStubSettingsBuilder().deleteWorkspaceSettings(); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json index 87ad780ee4eb..3c7dd735f024 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json @@ -49,6 +49,9 @@ "CreateWorkspace": { "methods": ["createWorkspace", "createWorkspace", "createWorkspace", "createWorkspaceCallable"] }, + "CreateWorkspaceLongRunning": { + "methods": ["createWorkspaceLongRunningAsync", "createWorkspaceLongRunningAsync", "createWorkspaceLongRunningAsync", "createWorkspaceLongRunningOperationCallable", "createWorkspaceLongRunningCallable"] + }, "DeleteFolder": { "methods": ["deleteFolder", "deleteFolder", "deleteFolder", "deleteFolderCallable"] }, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java index 593f0c0f5d0d..9a77fc9ae7b7 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java @@ -55,6 +55,7 @@ import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1.DeleteFolderRequest; import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; @@ -392,6 +393,17 @@ public UnaryCallable createWorkspaceCallable( throw new UnsupportedOperationException("Not implemented: createWorkspaceCallable()"); } + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkspaceLongRunningOperationCallable()"); + } + + public UnaryCallable createWorkspaceLongRunningCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkspaceLongRunningCallable()"); + } + public UnaryCallable deleteWorkspaceCallable() { throw new UnsupportedOperationException("Not implemented: deleteWorkspaceCallable()"); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java index c7f89b99ac35..df22f76fe476 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java @@ -85,6 +85,7 @@ import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1.DeleteFolderRequest; import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; @@ -364,6 +365,10 @@ public class DataformStubSettings extends StubSettings { listWorkspacesSettings; private final UnaryCallSettings getWorkspaceSettings; private final UnaryCallSettings createWorkspaceSettings; + private final UnaryCallSettings + createWorkspaceLongRunningSettings; + private final OperationCallSettings + createWorkspaceLongRunningOperationSettings; private final UnaryCallSettings deleteWorkspaceSettings; private final UnaryCallSettings installNpmPackagesSettings; @@ -1780,6 +1785,17 @@ public UnaryCallSettings createWorkspaceSetti return createWorkspaceSettings; } + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings createWorkspaceLongRunningSettings() { + return createWorkspaceLongRunningSettings; + } + + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings + createWorkspaceLongRunningOperationSettings() { + return createWorkspaceLongRunningOperationSettings; + } + /** Returns the object with the settings used for calls to deleteWorkspace. */ public UnaryCallSettings deleteWorkspaceSettings() { return deleteWorkspaceSettings; @@ -2207,6 +2223,10 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { listWorkspacesSettings = settingsBuilder.listWorkspacesSettings().build(); getWorkspaceSettings = settingsBuilder.getWorkspaceSettings().build(); createWorkspaceSettings = settingsBuilder.createWorkspaceSettings().build(); + createWorkspaceLongRunningSettings = + settingsBuilder.createWorkspaceLongRunningSettings().build(); + createWorkspaceLongRunningOperationSettings = + settingsBuilder.createWorkspaceLongRunningOperationSettings().build(); deleteWorkspaceSettings = settingsBuilder.deleteWorkspaceSettings().build(); installNpmPackagesSettings = settingsBuilder.installNpmPackagesSettings().build(); pullGitCommitsSettings = settingsBuilder.pullGitCommitsSettings().build(); @@ -2355,6 +2375,11 @@ public static class Builder extends StubSettings.Builder getWorkspaceSettings; private final UnaryCallSettings.Builder createWorkspaceSettings; + private final UnaryCallSettings.Builder + createWorkspaceLongRunningSettings; + private final OperationCallSettings.Builder< + CreateWorkspaceRequest, Workspace, CreateWorkspaceMetadata> + createWorkspaceLongRunningOperationSettings; private final UnaryCallSettings.Builder deleteWorkspaceSettings; private final UnaryCallSettings.Builder installNpmPackagesSettings; @@ -2532,6 +2557,8 @@ protected Builder(@Nullable ClientContext clientContext) { listWorkspacesSettings = PagedCallSettings.newBuilder(LIST_WORKSPACES_PAGE_STR_FACT); getWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkspaceLongRunningSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkspaceLongRunningOperationSettings = OperationCallSettings.newBuilder(); deleteWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); installNpmPackagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); pullGitCommitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2618,6 +2645,7 @@ protected Builder(@Nullable ClientContext clientContext) { listWorkspacesSettings, getWorkspaceSettings, createWorkspaceSettings, + createWorkspaceLongRunningSettings, deleteWorkspaceSettings, installNpmPackagesSettings, pullGitCommitsSettings, @@ -2707,6 +2735,9 @@ protected Builder(DataformStubSettings settings) { listWorkspacesSettings = settings.listWorkspacesSettings.toBuilder(); getWorkspaceSettings = settings.getWorkspaceSettings.toBuilder(); createWorkspaceSettings = settings.createWorkspaceSettings.toBuilder(); + createWorkspaceLongRunningSettings = settings.createWorkspaceLongRunningSettings.toBuilder(); + createWorkspaceLongRunningOperationSettings = + settings.createWorkspaceLongRunningOperationSettings.toBuilder(); deleteWorkspaceSettings = settings.deleteWorkspaceSettings.toBuilder(); installNpmPackagesSettings = settings.installNpmPackagesSettings.toBuilder(); pullGitCommitsSettings = settings.pullGitCommitsSettings.toBuilder(); @@ -2791,6 +2822,7 @@ protected Builder(DataformStubSettings settings) { listWorkspacesSettings, getWorkspaceSettings, createWorkspaceSettings, + createWorkspaceLongRunningSettings, deleteWorkspaceSettings, installNpmPackagesSettings, pullGitCommitsSettings, @@ -3014,6 +3046,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createWorkspaceLongRunningSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteWorkspaceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -3339,6 +3376,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createWorkspaceLongRunningOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateWorkspaceMetadata.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 .createCompilationResultLongRunningOperationSettings() .setInitialCallSettings( @@ -3597,6 +3658,18 @@ public UnaryCallSettings.Builder createWorksp return createWorkspaceSettings; } + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings.Builder + createWorkspaceLongRunningSettings() { + return createWorkspaceLongRunningSettings; + } + + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings.Builder + createWorkspaceLongRunningOperationSettings() { + return createWorkspaceLongRunningOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteWorkspace. */ public UnaryCallSettings.Builder deleteWorkspaceSettings() { return deleteWorkspaceSettings; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java index 2e3454641c4d..07d5ddc61162 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java @@ -60,6 +60,7 @@ import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1.DeleteFolderRequest; import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; @@ -539,6 +540,17 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createWorkspaceLongRunningMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateWorkspaceLongRunning") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() @@ -1138,6 +1150,9 @@ public class GrpcDataformStub extends DataformStub { listWorkspacesPagedCallable; private final UnaryCallable getWorkspaceCallable; private final UnaryCallable createWorkspaceCallable; + private final UnaryCallable createWorkspaceLongRunningCallable; + private final OperationCallable + createWorkspaceLongRunningOperationCallable; private final UnaryCallable deleteWorkspaceCallable; private final UnaryCallable installNpmPackagesCallable; @@ -1625,6 +1640,18 @@ protected GrpcDataformStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + createWorkspaceLongRunningTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceLongRunningMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings deleteWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteWorkspaceMethodDescriptor) @@ -2340,6 +2367,17 @@ protected GrpcDataformStub( this.createWorkspaceCallable = callableFactory.createUnaryCallable( createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); + this.createWorkspaceLongRunningCallable = + callableFactory.createUnaryCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningSettings(), + clientContext); + this.createWorkspaceLongRunningOperationCallable = + callableFactory.createOperationCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningOperationSettings(), + clientContext, + operationsStub); this.deleteWorkspaceCallable = callableFactory.createUnaryCallable( deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); @@ -2824,6 +2862,17 @@ public UnaryCallable createWorkspaceCallable( return createWorkspaceCallable; } + @Override + public UnaryCallable createWorkspaceLongRunningCallable() { + return createWorkspaceLongRunningCallable; + } + + @Override + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + return createWorkspaceLongRunningOperationCallable; + } + @Override public UnaryCallable deleteWorkspaceCallable() { return deleteWorkspaceCallable; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java index cb745674056b..0574abeb4735 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java @@ -68,6 +68,7 @@ import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1.DeleteFolderRequest; import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; @@ -207,7 +208,9 @@ public class HttpJsonDataformStub extends DataformStub { .add(CreateCompilationResultMetadata.getDescriptor()) .add(MoveFolderMetadata.getDescriptor()) .add(MoveRepositoryMetadata.getDescriptor()) + .add(CreateWorkspaceMetadata.getDescriptor()) .add(DeleteFolderTreeMetadata.getDescriptor()) + .add(Workspace.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -1341,6 +1344,48 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + createWorkspaceLongRunningMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateWorkspaceLongRunning") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning", + 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, "workspaceId", request.getWorkspaceId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workspace", request.getWorkspace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkspaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteWorkspaceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -3121,6 +3166,9 @@ public class HttpJsonDataformStub extends DataformStub { listWorkspacesPagedCallable; private final UnaryCallable getWorkspaceCallable; private final UnaryCallable createWorkspaceCallable; + private final UnaryCallable createWorkspaceLongRunningCallable; + private final OperationCallable + createWorkspaceLongRunningOperationCallable; private final UnaryCallable deleteWorkspaceCallable; private final UnaryCallable installNpmPackagesCallable; @@ -3671,6 +3719,19 @@ protected HttpJsonDataformStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + createWorkspaceLongRunningTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceLongRunningMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings deleteWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteWorkspaceMethodDescriptor) @@ -4442,6 +4503,17 @@ protected HttpJsonDataformStub( this.createWorkspaceCallable = callableFactory.createUnaryCallable( createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); + this.createWorkspaceLongRunningCallable = + callableFactory.createUnaryCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningSettings(), + clientContext); + this.createWorkspaceLongRunningOperationCallable = + callableFactory.createOperationCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteWorkspaceCallable = callableFactory.createUnaryCallable( deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); @@ -4719,6 +4791,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listWorkspacesMethodDescriptor); methodDescriptors.add(getWorkspaceMethodDescriptor); methodDescriptors.add(createWorkspaceMethodDescriptor); + methodDescriptors.add(createWorkspaceLongRunningMethodDescriptor); methodDescriptors.add(deleteWorkspaceMethodDescriptor); methodDescriptors.add(installNpmPackagesMethodDescriptor); methodDescriptors.add(pullGitCommitsMethodDescriptor); @@ -5008,6 +5081,17 @@ public UnaryCallable createWorkspaceCallable( return createWorkspaceCallable; } + @Override + public UnaryCallable createWorkspaceLongRunningCallable() { + return createWorkspaceLongRunningCallable; + } + + @Override + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + return createWorkspaceLongRunningOperationCallable; + } + @Override public UnaryCallable deleteWorkspaceCallable() { return deleteWorkspaceCallable; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java index 1a059b8881b2..813b9ebb1850 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java @@ -648,6 +648,26 @@ * * * + *

CreateWorkspaceLongRunning + *

Creates a new Workspace in a given Repository asynchronously. + * + *

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

+ *
    + *
  • createWorkspaceLongRunningAsync(CreateWorkspaceRequest request) + *

+ *

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

+ *
    + *
  • createWorkspaceLongRunningAsync(RepositoryName parent, Workspace workspace, String workspaceId) + *

  • createWorkspaceLongRunningAsync(String parent, Workspace workspace, String workspaceId) + *

+ *

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

+ *
    + *
  • createWorkspaceLongRunningOperationCallable() + *

  • createWorkspaceLongRunningCallable() + *

+ * + * + * *

DeleteWorkspace *

Deletes a single Workspace. * @@ -5508,6 +5528,177 @@ public final UnaryCallable createWorkspaceCal return stub.createWorkspaceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   Workspace workspace = Workspace.newBuilder().build();
+   *   String workspaceId = "workspaceId466560144";
+   *   Workspace response =
+   *       dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get();
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + @Nullable RepositoryName parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspaceLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   Workspace workspace = Workspace.newBuilder().build();
+   *   String workspaceId = "workspaceId466560144";
+   *   Workspace response =
+   *       dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get();
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + String parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspaceLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   Workspace response = dataformClient.createWorkspaceLongRunningAsync(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 createWorkspaceLongRunningAsync( + CreateWorkspaceRequest request) { + return createWorkspaceLongRunningOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   OperationFuture future =
+   *       dataformClient.createWorkspaceLongRunningOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createWorkspaceLongRunningOperationCallable() { + return stub.createWorkspaceLongRunningOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

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 (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.createWorkspaceLongRunningCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createWorkspaceLongRunningCallable() { + return stub.createWorkspaceLongRunningCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single Workspace. diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java index ee27c8c71ef6..956a1cab0425 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java @@ -365,6 +365,17 @@ public UnaryCallSettings createWorkspaceSetti return ((DataformStubSettings) getStubSettings()).createWorkspaceSettings(); } + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings createWorkspaceLongRunningSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkspaceLongRunningSettings(); + } + + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings + createWorkspaceLongRunningOperationSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkspaceLongRunningOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteWorkspace. */ public UnaryCallSettings deleteWorkspaceSettings() { return ((DataformStubSettings) getStubSettings()).deleteWorkspaceSettings(); @@ -1029,6 +1040,18 @@ public UnaryCallSettings.Builder createWorksp return getStubSettingsBuilder().createWorkspaceSettings(); } + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings.Builder + createWorkspaceLongRunningSettings() { + return getStubSettingsBuilder().createWorkspaceLongRunningSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings.Builder + createWorkspaceLongRunningOperationSettings() { + return getStubSettingsBuilder().createWorkspaceLongRunningOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteWorkspace. */ public UnaryCallSettings.Builder deleteWorkspaceSettings() { return getStubSettingsBuilder().deleteWorkspaceSettings(); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json index f70c854a368c..628d28e3b5ee 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json @@ -52,6 +52,9 @@ "CreateWorkspace": { "methods": ["createWorkspace", "createWorkspace", "createWorkspace", "createWorkspaceCallable"] }, + "CreateWorkspaceLongRunning": { + "methods": ["createWorkspaceLongRunningAsync", "createWorkspaceLongRunningAsync", "createWorkspaceLongRunningAsync", "createWorkspaceLongRunningOperationCallable", "createWorkspaceLongRunningCallable"] + }, "DeleteBranch": { "methods": ["deleteBranch", "deleteBranchCallable"] }, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java index 3d17ac3e6e0e..54db9995000e 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java @@ -59,6 +59,7 @@ import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchResponse; @@ -425,6 +426,17 @@ public UnaryCallable createWorkspaceCallable( throw new UnsupportedOperationException("Not implemented: createWorkspaceCallable()"); } + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkspaceLongRunningOperationCallable()"); + } + + public UnaryCallable createWorkspaceLongRunningCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkspaceLongRunningCallable()"); + } + public UnaryCallable deleteWorkspaceCallable() { throw new UnsupportedOperationException("Not implemented: deleteWorkspaceCallable()"); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java index e17cbaa8cfad..7d5e0ab7cb9d 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -89,6 +89,7 @@ import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchResponse; @@ -389,6 +390,10 @@ public class DataformStubSettings extends StubSettings { listWorkspacesSettings; private final UnaryCallSettings getWorkspaceSettings; private final UnaryCallSettings createWorkspaceSettings; + private final UnaryCallSettings + createWorkspaceLongRunningSettings; + private final OperationCallSettings + createWorkspaceLongRunningOperationSettings; private final UnaryCallSettings deleteWorkspaceSettings; private final UnaryCallSettings installNpmPackagesSettings; @@ -1967,6 +1972,17 @@ public UnaryCallSettings createWorkspaceSetti return createWorkspaceSettings; } + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings createWorkspaceLongRunningSettings() { + return createWorkspaceLongRunningSettings; + } + + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings + createWorkspaceLongRunningOperationSettings() { + return createWorkspaceLongRunningOperationSettings; + } + /** Returns the object with the settings used for calls to deleteWorkspace. */ public UnaryCallSettings deleteWorkspaceSettings() { return deleteWorkspaceSettings; @@ -2439,6 +2455,10 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { listWorkspacesSettings = settingsBuilder.listWorkspacesSettings().build(); getWorkspaceSettings = settingsBuilder.getWorkspaceSettings().build(); createWorkspaceSettings = settingsBuilder.createWorkspaceSettings().build(); + createWorkspaceLongRunningSettings = + settingsBuilder.createWorkspaceLongRunningSettings().build(); + createWorkspaceLongRunningOperationSettings = + settingsBuilder.createWorkspaceLongRunningOperationSettings().build(); deleteWorkspaceSettings = settingsBuilder.deleteWorkspaceSettings().build(); installNpmPackagesSettings = settingsBuilder.installNpmPackagesSettings().build(); pullGitCommitsSettings = settingsBuilder.pullGitCommitsSettings().build(); @@ -2601,6 +2621,11 @@ public static class Builder extends StubSettings.Builder getWorkspaceSettings; private final UnaryCallSettings.Builder createWorkspaceSettings; + private final UnaryCallSettings.Builder + createWorkspaceLongRunningSettings; + private final OperationCallSettings.Builder< + CreateWorkspaceRequest, Workspace, CreateWorkspaceMetadata> + createWorkspaceLongRunningOperationSettings; private final UnaryCallSettings.Builder deleteWorkspaceSettings; private final UnaryCallSettings.Builder installNpmPackagesSettings; @@ -2799,6 +2824,8 @@ protected Builder(@Nullable ClientContext clientContext) { listWorkspacesSettings = PagedCallSettings.newBuilder(LIST_WORKSPACES_PAGE_STR_FACT); getWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkspaceLongRunningSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkspaceLongRunningOperationSettings = OperationCallSettings.newBuilder(); deleteWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); installNpmPackagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); pullGitCommitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2894,6 +2921,7 @@ protected Builder(@Nullable ClientContext clientContext) { listWorkspacesSettings, getWorkspaceSettings, createWorkspaceSettings, + createWorkspaceLongRunningSettings, deleteWorkspaceSettings, installNpmPackagesSettings, pullGitCommitsSettings, @@ -2993,6 +3021,9 @@ protected Builder(DataformStubSettings settings) { listWorkspacesSettings = settings.listWorkspacesSettings.toBuilder(); getWorkspaceSettings = settings.getWorkspaceSettings.toBuilder(); createWorkspaceSettings = settings.createWorkspaceSettings.toBuilder(); + createWorkspaceLongRunningSettings = settings.createWorkspaceLongRunningSettings.toBuilder(); + createWorkspaceLongRunningOperationSettings = + settings.createWorkspaceLongRunningOperationSettings.toBuilder(); deleteWorkspaceSettings = settings.deleteWorkspaceSettings.toBuilder(); installNpmPackagesSettings = settings.installNpmPackagesSettings.toBuilder(); pullGitCommitsSettings = settings.pullGitCommitsSettings.toBuilder(); @@ -3085,6 +3116,7 @@ protected Builder(DataformStubSettings settings) { listWorkspacesSettings, getWorkspaceSettings, createWorkspaceSettings, + createWorkspaceLongRunningSettings, deleteWorkspaceSettings, installNpmPackagesSettings, pullGitCommitsSettings, @@ -3319,6 +3351,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createWorkspaceLongRunningSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteWorkspaceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -3701,6 +3738,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createWorkspaceLongRunningOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateWorkspaceMetadata.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 .createCompilationResultLongRunningOperationSettings() .setInitialCallSettings( @@ -3974,6 +4035,18 @@ public UnaryCallSettings.Builder createWorksp return createWorkspaceSettings; } + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings.Builder + createWorkspaceLongRunningSettings() { + return createWorkspaceLongRunningSettings; + } + + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings.Builder + createWorkspaceLongRunningOperationSettings() { + return createWorkspaceLongRunningOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteWorkspace. */ public UnaryCallSettings.Builder deleteWorkspaceSettings() { return deleteWorkspaceSettings; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java index 9b2d7c8f00dd..147494450e4b 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java @@ -64,6 +64,7 @@ import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchResponse; @@ -569,6 +570,18 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createWorkspaceLongRunningMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/CreateWorkspaceLongRunning") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() @@ -1252,6 +1265,9 @@ public class GrpcDataformStub extends DataformStub { listWorkspacesPagedCallable; private final UnaryCallable getWorkspaceCallable; private final UnaryCallable createWorkspaceCallable; + private final UnaryCallable createWorkspaceLongRunningCallable; + private final OperationCallable + createWorkspaceLongRunningOperationCallable; private final UnaryCallable deleteWorkspaceCallable; private final UnaryCallable installNpmPackagesCallable; @@ -1767,6 +1783,18 @@ protected GrpcDataformStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + createWorkspaceLongRunningTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceLongRunningMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings deleteWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteWorkspaceMethodDescriptor) @@ -2568,6 +2596,17 @@ protected GrpcDataformStub( this.createWorkspaceCallable = callableFactory.createUnaryCallable( createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); + this.createWorkspaceLongRunningCallable = + callableFactory.createUnaryCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningSettings(), + clientContext); + this.createWorkspaceLongRunningOperationCallable = + callableFactory.createOperationCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningOperationSettings(), + clientContext, + operationsStub); this.deleteWorkspaceCallable = callableFactory.createUnaryCallable( deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); @@ -3105,6 +3144,17 @@ public UnaryCallable createWorkspaceCallable( return createWorkspaceCallable; } + @Override + public UnaryCallable createWorkspaceLongRunningCallable() { + return createWorkspaceLongRunningCallable; + } + + @Override + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + return createWorkspaceLongRunningOperationCallable; + } + @Override public UnaryCallable deleteWorkspaceCallable() { return deleteWorkspaceCallable; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java index 5a311a99a858..ccca84704321 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java @@ -72,6 +72,7 @@ import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchResponse; @@ -225,8 +226,10 @@ public class HttpJsonDataformStub extends DataformStub { .add(DeleteRepositoryLongRunningMetadata.getDescriptor()) .add(MoveRepositoryMetadata.getDescriptor()) .add(CreateCompilationResultMetadata.getDescriptor()) + .add(Workspace.getDescriptor()) .add(CompilationResult.getDescriptor()) .add(DeleteFolderTreeMetadata.getDescriptor()) + .add(CreateWorkspaceMetadata.getDescriptor()) .add(MoveFolderMetadata.getDescriptor()) .build(); @@ -1405,6 +1408,49 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + createWorkspaceLongRunningMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/CreateWorkspaceLongRunning") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning", + 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, "workspaceId", request.getWorkspaceId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workspace", request.getWorkspace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkspaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteWorkspaceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -3419,6 +3465,9 @@ public class HttpJsonDataformStub extends DataformStub { listWorkspacesPagedCallable; private final UnaryCallable getWorkspaceCallable; private final UnaryCallable createWorkspaceCallable; + private final UnaryCallable createWorkspaceLongRunningCallable; + private final OperationCallable + createWorkspaceLongRunningOperationCallable; private final UnaryCallable deleteWorkspaceCallable; private final UnaryCallable installNpmPackagesCallable; @@ -3998,6 +4047,19 @@ protected HttpJsonDataformStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + createWorkspaceLongRunningTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceLongRunningMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings deleteWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteWorkspaceMethodDescriptor) @@ -4861,6 +4923,17 @@ protected HttpJsonDataformStub( this.createWorkspaceCallable = callableFactory.createUnaryCallable( createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); + this.createWorkspaceLongRunningCallable = + callableFactory.createUnaryCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningSettings(), + clientContext); + this.createWorkspaceLongRunningOperationCallable = + callableFactory.createOperationCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteWorkspaceCallable = callableFactory.createUnaryCallable( deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); @@ -5177,6 +5250,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listWorkspacesMethodDescriptor); methodDescriptors.add(getWorkspaceMethodDescriptor); methodDescriptors.add(createWorkspaceMethodDescriptor); + methodDescriptors.add(createWorkspaceLongRunningMethodDescriptor); methodDescriptors.add(deleteWorkspaceMethodDescriptor); methodDescriptors.add(installNpmPackagesMethodDescriptor); methodDescriptors.add(pullGitCommitsMethodDescriptor); @@ -5487,6 +5561,17 @@ public UnaryCallable createWorkspaceCallable( return createWorkspaceCallable; } + @Override + public UnaryCallable createWorkspaceLongRunningCallable() { + return createWorkspaceLongRunningCallable; + } + + @Override + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + return createWorkspaceLongRunningOperationCallable; + } + @Override public UnaryCallable deleteWorkspaceCallable() { return deleteWorkspaceCallable; diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json index 1d5e5a15f384..6067ceae95ac 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json @@ -1286,6 +1286,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.CreateWorkspaceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.CreateWorkspaceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.CreateWorkspaceMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json index 5c1604893ad6..523d1be41db4 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json @@ -1322,6 +1322,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java index 6a565d41fb80..5d9305db46f0 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java @@ -2749,6 +2749,128 @@ public void createWorkspaceExceptionTest2() throws Exception { } } + @Test + public void createWorkspaceLongRunningTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).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 createWorkspaceLongRunningExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkspaceLongRunningTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).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 createWorkspaceLongRunningExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteWorkspaceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java index a592375e1ba0..c3680f57fbeb 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java @@ -2460,6 +2460,126 @@ public void createWorkspaceExceptionTest2() throws Exception { } } + @Test + public void createWorkspaceLongRunningTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workspace, actualRequest.getWorkspace()); + Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkspaceLongRunningExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).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 createWorkspaceLongRunningTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String parent = "parent-995424086"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workspace, actualRequest.getWorkspace()); + Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkspaceLongRunningExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).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 deleteWorkspaceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java index 2ff66696bbc3..5ad4fff5d095 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java @@ -707,6 +707,28 @@ public void createWorkspace( } } + @Override + public void createWorkspaceLongRunning( + CreateWorkspaceRequest 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 CreateWorkspaceLongRunning, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteWorkspace( DeleteWorkspaceRequest request, StreamObserver responseObserver) { diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java index 3b40aaf7c3d7..986894d820f4 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java @@ -2867,6 +2867,136 @@ public void createWorkspaceExceptionTest2() throws Exception { } } + @Test + public void createWorkspaceLongRunningTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setOriginalBranch("originalBranch1098005203") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .setEnableBranchManagement(true) + .setDepth(95472323) + .setShallow(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).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 createWorkspaceLongRunningExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkspaceLongRunningTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setOriginalBranch("originalBranch1098005203") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .setEnableBranchManagement(true) + .setDepth(95472323) + .setShallow(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).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 createWorkspaceLongRunningExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteWorkspaceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java index cddf2d8e9f7d..b2f3399bc749 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java @@ -2576,6 +2576,134 @@ public void createWorkspaceExceptionTest2() throws Exception { } } + @Test + public void createWorkspaceLongRunningTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setOriginalBranch("originalBranch1098005203") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .setEnableBranchManagement(true) + .setDepth(95472323) + .setShallow(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workspace, actualRequest.getWorkspace()); + Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkspaceLongRunningExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).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 createWorkspaceLongRunningTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setOriginalBranch("originalBranch1098005203") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .setEnableBranchManagement(true) + .setDepth(95472323) + .setShallow(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String parent = "parent-995424086"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workspace, actualRequest.getWorkspace()); + Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkspaceLongRunningExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).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 deleteWorkspaceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java index ebf8464c2498..a9a751290619 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java @@ -729,6 +729,28 @@ public void createWorkspace( } } + @Override + public void createWorkspaceLongRunning( + CreateWorkspaceRequest 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 CreateWorkspaceLongRunning, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteWorkspace( DeleteWorkspaceRequest request, StreamObserver responseObserver) { diff --git a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java index 2003c9028f11..bb78b29e1ab2 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java @@ -1399,6 +1399,52 @@ private DataformGrpc() {} return getCreateWorkspaceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkspaceLongRunning", + requestType = com.google.cloud.dataform.v1.CreateWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod; + if ((getCreateWorkspaceLongRunningMethod = DataformGrpc.getCreateWorkspaceLongRunningMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getCreateWorkspaceLongRunningMethod = DataformGrpc.getCreateWorkspaceLongRunningMethod) + == null) { + DataformGrpc.getCreateWorkspaceLongRunningMethod = + getCreateWorkspaceLongRunningMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkspaceLongRunning")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.CreateWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CreateWorkspaceLongRunning")) + .build(); + } + } + } + return getCreateWorkspaceLongRunningMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1.DeleteWorkspaceRequest, com.google.protobuf.Empty> getDeleteWorkspaceMethod; @@ -3947,6 +3993,20 @@ default void createWorkspace( getCreateWorkspaceMethod(), responseObserver); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + default void createWorkspaceLongRunning( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkspaceLongRunningMethod(), responseObserver); + } + /** * * @@ -5152,6 +5212,22 @@ public void createWorkspace( responseObserver); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public void createWorkspaceLongRunning( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkspaceLongRunningMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -6348,6 +6424,20 @@ public com.google.cloud.dataform.v1.Workspace createWorkspace( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createWorkspaceLongRunning( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateWorkspaceLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -7401,6 +7491,19 @@ public com.google.cloud.dataform.v1.Workspace createWorkspace( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createWorkspaceLongRunning( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkspaceLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -8447,6 +8550,19 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getCreateWorkspaceMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkspaceLongRunning(com.google.cloud.dataform.v1.CreateWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkspaceLongRunningMethod(), getCallOptions()), request); + } + /** * * @@ -9119,50 +9235,51 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_WORKSPACES = 27; private static final int METHODID_GET_WORKSPACE = 28; private static final int METHODID_CREATE_WORKSPACE = 29; - private static final int METHODID_DELETE_WORKSPACE = 30; - private static final int METHODID_INSTALL_NPM_PACKAGES = 31; - private static final int METHODID_PULL_GIT_COMMITS = 32; - private static final int METHODID_PUSH_GIT_COMMITS = 33; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 34; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 35; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 36; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 37; - private static final int METHODID_FETCH_FILE_DIFF = 38; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 39; - private static final int METHODID_SEARCH_FILES = 40; - private static final int METHODID_MAKE_DIRECTORY = 41; - private static final int METHODID_REMOVE_DIRECTORY = 42; - private static final int METHODID_MOVE_DIRECTORY = 43; - private static final int METHODID_READ_FILE = 44; - private static final int METHODID_REMOVE_FILE = 45; - private static final int METHODID_MOVE_FILE = 46; - private static final int METHODID_WRITE_FILE = 47; - private static final int METHODID_LIST_RELEASE_CONFIGS = 48; - private static final int METHODID_GET_RELEASE_CONFIG = 49; - private static final int METHODID_CREATE_RELEASE_CONFIG = 50; - private static final int METHODID_UPDATE_RELEASE_CONFIG = 51; - private static final int METHODID_DELETE_RELEASE_CONFIG = 52; - private static final int METHODID_LIST_COMPILATION_RESULTS = 53; - private static final int METHODID_GET_COMPILATION_RESULT = 54; - private static final int METHODID_CREATE_COMPILATION_RESULT = 55; - private static final int METHODID_CREATE_COMPILATION_RESULT_LONG_RUNNING = 56; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 57; - private static final int METHODID_LIST_WORKFLOW_CONFIGS = 58; - private static final int METHODID_GET_WORKFLOW_CONFIG = 59; - private static final int METHODID_CREATE_WORKFLOW_CONFIG = 60; - private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 61; - private static final int METHODID_DELETE_WORKFLOW_CONFIG = 62; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 63; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 64; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 65; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 66; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 67; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 68; - private static final int METHODID_GET_CONFIG = 69; - private static final int METHODID_UPDATE_CONFIG = 70; - private static final int METHODID_GET_IAM_POLICY = 71; - private static final int METHODID_SET_IAM_POLICY = 72; - private static final int METHODID_TEST_IAM_PERMISSIONS = 73; + private static final int METHODID_CREATE_WORKSPACE_LONG_RUNNING = 30; + private static final int METHODID_DELETE_WORKSPACE = 31; + private static final int METHODID_INSTALL_NPM_PACKAGES = 32; + private static final int METHODID_PULL_GIT_COMMITS = 33; + private static final int METHODID_PUSH_GIT_COMMITS = 34; + private static final int METHODID_FETCH_FILE_GIT_STATUSES = 35; + private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 36; + private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 37; + private static final int METHODID_RESET_WORKSPACE_CHANGES = 38; + private static final int METHODID_FETCH_FILE_DIFF = 39; + private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 40; + private static final int METHODID_SEARCH_FILES = 41; + private static final int METHODID_MAKE_DIRECTORY = 42; + private static final int METHODID_REMOVE_DIRECTORY = 43; + private static final int METHODID_MOVE_DIRECTORY = 44; + private static final int METHODID_READ_FILE = 45; + private static final int METHODID_REMOVE_FILE = 46; + private static final int METHODID_MOVE_FILE = 47; + private static final int METHODID_WRITE_FILE = 48; + private static final int METHODID_LIST_RELEASE_CONFIGS = 49; + private static final int METHODID_GET_RELEASE_CONFIG = 50; + private static final int METHODID_CREATE_RELEASE_CONFIG = 51; + private static final int METHODID_UPDATE_RELEASE_CONFIG = 52; + private static final int METHODID_DELETE_RELEASE_CONFIG = 53; + private static final int METHODID_LIST_COMPILATION_RESULTS = 54; + private static final int METHODID_GET_COMPILATION_RESULT = 55; + private static final int METHODID_CREATE_COMPILATION_RESULT = 56; + private static final int METHODID_CREATE_COMPILATION_RESULT_LONG_RUNNING = 57; + private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 58; + private static final int METHODID_LIST_WORKFLOW_CONFIGS = 59; + private static final int METHODID_GET_WORKFLOW_CONFIG = 60; + private static final int METHODID_CREATE_WORKFLOW_CONFIG = 61; + private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 62; + private static final int METHODID_DELETE_WORKFLOW_CONFIG = 63; + private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 64; + private static final int METHODID_GET_WORKFLOW_INVOCATION = 65; + private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 66; + private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 67; + private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 68; + private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 69; + private static final int METHODID_GET_CONFIG = 70; + private static final int METHODID_UPDATE_CONFIG = 71; + private static final int METHODID_GET_IAM_POLICY = 72; + private static final int METHODID_SET_IAM_POLICY = 73; + private static final int METHODID_TEST_IAM_PERMISSIONS = 74; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -9359,6 +9476,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_WORKSPACE_LONG_RUNNING: + serviceImpl.createWorkspaceLongRunning( + (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_WORKSPACE: serviceImpl.deleteWorkspace( (com.google.cloud.dataform.v1.DeleteWorkspaceRequest) request, @@ -9835,6 +9957,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1.CreateWorkspaceRequest, com.google.cloud.dataform.v1.Workspace>(service, METHODID_CREATE_WORKSPACE))) + .addMethod( + getCreateWorkspaceLongRunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSPACE_LONG_RUNNING))) .addMethod( getDeleteWorkspaceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -10209,6 +10338,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListWorkspacesMethod()) .addMethod(getGetWorkspaceMethod()) .addMethod(getCreateWorkspaceMethod()) + .addMethod(getCreateWorkspaceLongRunningMethod()) .addMethod(getDeleteWorkspaceMethod()) .addMethod(getInstallNpmPackagesMethod()) .addMethod(getPullGitCommitsMethod()) diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java index 25611c3c7571..34ac7e1e1589 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java @@ -1472,6 +1472,55 @@ private DataformGrpc() {} return getCreateWorkspaceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkspaceLongRunning", + requestType = com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod; + if ((getCreateWorkspaceLongRunningMethod = DataformGrpc.getCreateWorkspaceLongRunningMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getCreateWorkspaceLongRunningMethod = DataformGrpc.getCreateWorkspaceLongRunningMethod) + == null) { + DataformGrpc.getCreateWorkspaceLongRunningMethod = + getCreateWorkspaceLongRunningMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkspaceLongRunning")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CreateWorkspaceLongRunning")) + .build(); + } + } + } + return getCreateWorkspaceLongRunningMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest, com.google.protobuf.Empty> getDeleteWorkspaceMethod; @@ -4361,6 +4410,20 @@ default void createWorkspace( getCreateWorkspaceMethod(), responseObserver); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + default void createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkspaceLongRunningMethod(), responseObserver); + } + /** * * @@ -5693,6 +5756,22 @@ public void createWorkspace( responseObserver); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public void createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkspaceLongRunningMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -7028,6 +7107,20 @@ public com.google.cloud.dataform.v1beta1.Workspace createWorkspace( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateWorkspaceLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -8191,6 +8284,19 @@ public com.google.cloud.dataform.v1beta1.Workspace createWorkspace( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkspaceLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -9338,6 +9444,20 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getCreateWorkspaceMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkspaceLongRunningMethod(), getCallOptions()), request); + } + /** * * @@ -10110,56 +10230,57 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_WORKSPACES = 28; private static final int METHODID_GET_WORKSPACE = 29; private static final int METHODID_CREATE_WORKSPACE = 30; - private static final int METHODID_DELETE_WORKSPACE = 31; - private static final int METHODID_INSTALL_NPM_PACKAGES = 32; - private static final int METHODID_PULL_GIT_COMMITS = 33; - private static final int METHODID_SYNC_WORKSPACE_REFS = 34; - private static final int METHODID_FETCH_WORKSPACE_BRANCHES = 35; - private static final int METHODID_DELETE_BRANCH = 36; - private static final int METHODID_CHECKOUT_WORKSPACE_BRANCH = 37; - private static final int METHODID_FETCH_CURRENT_WORKSPACE_BRANCH = 38; - private static final int METHODID_PUSH_GIT_COMMITS = 39; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 40; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 41; - private static final int METHODID_FETCH_WORKSPACE_HISTORY = 42; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 43; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 44; - private static final int METHODID_FETCH_FILE_DIFF = 45; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 46; - private static final int METHODID_SEARCH_FILES = 47; - private static final int METHODID_MAKE_DIRECTORY = 48; - private static final int METHODID_REMOVE_DIRECTORY = 49; - private static final int METHODID_MOVE_DIRECTORY = 50; - private static final int METHODID_READ_FILE = 51; - private static final int METHODID_REMOVE_FILE = 52; - private static final int METHODID_MOVE_FILE = 53; - private static final int METHODID_WRITE_FILE = 54; - private static final int METHODID_LIST_RELEASE_CONFIGS = 55; - private static final int METHODID_GET_RELEASE_CONFIG = 56; - private static final int METHODID_CREATE_RELEASE_CONFIG = 57; - private static final int METHODID_UPDATE_RELEASE_CONFIG = 58; - private static final int METHODID_DELETE_RELEASE_CONFIG = 59; - private static final int METHODID_LIST_COMPILATION_RESULTS = 60; - private static final int METHODID_GET_COMPILATION_RESULT = 61; - private static final int METHODID_CREATE_COMPILATION_RESULT = 62; - private static final int METHODID_CREATE_COMPILATION_RESULT_LONG_RUNNING = 63; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 64; - private static final int METHODID_LIST_WORKFLOW_CONFIGS = 65; - private static final int METHODID_GET_WORKFLOW_CONFIG = 66; - private static final int METHODID_CREATE_WORKFLOW_CONFIG = 67; - private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 68; - private static final int METHODID_DELETE_WORKFLOW_CONFIG = 69; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 70; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 71; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 72; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 73; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 74; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 75; - private static final int METHODID_GET_CONFIG = 76; - private static final int METHODID_UPDATE_CONFIG = 77; - private static final int METHODID_GET_IAM_POLICY = 78; - private static final int METHODID_SET_IAM_POLICY = 79; - private static final int METHODID_TEST_IAM_PERMISSIONS = 80; + private static final int METHODID_CREATE_WORKSPACE_LONG_RUNNING = 31; + private static final int METHODID_DELETE_WORKSPACE = 32; + private static final int METHODID_INSTALL_NPM_PACKAGES = 33; + private static final int METHODID_PULL_GIT_COMMITS = 34; + private static final int METHODID_SYNC_WORKSPACE_REFS = 35; + private static final int METHODID_FETCH_WORKSPACE_BRANCHES = 36; + private static final int METHODID_DELETE_BRANCH = 37; + private static final int METHODID_CHECKOUT_WORKSPACE_BRANCH = 38; + private static final int METHODID_FETCH_CURRENT_WORKSPACE_BRANCH = 39; + private static final int METHODID_PUSH_GIT_COMMITS = 40; + private static final int METHODID_FETCH_FILE_GIT_STATUSES = 41; + private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 42; + private static final int METHODID_FETCH_WORKSPACE_HISTORY = 43; + private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 44; + private static final int METHODID_RESET_WORKSPACE_CHANGES = 45; + private static final int METHODID_FETCH_FILE_DIFF = 46; + private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 47; + private static final int METHODID_SEARCH_FILES = 48; + private static final int METHODID_MAKE_DIRECTORY = 49; + private static final int METHODID_REMOVE_DIRECTORY = 50; + private static final int METHODID_MOVE_DIRECTORY = 51; + private static final int METHODID_READ_FILE = 52; + private static final int METHODID_REMOVE_FILE = 53; + private static final int METHODID_MOVE_FILE = 54; + private static final int METHODID_WRITE_FILE = 55; + private static final int METHODID_LIST_RELEASE_CONFIGS = 56; + private static final int METHODID_GET_RELEASE_CONFIG = 57; + private static final int METHODID_CREATE_RELEASE_CONFIG = 58; + private static final int METHODID_UPDATE_RELEASE_CONFIG = 59; + private static final int METHODID_DELETE_RELEASE_CONFIG = 60; + private static final int METHODID_LIST_COMPILATION_RESULTS = 61; + private static final int METHODID_GET_COMPILATION_RESULT = 62; + private static final int METHODID_CREATE_COMPILATION_RESULT = 63; + private static final int METHODID_CREATE_COMPILATION_RESULT_LONG_RUNNING = 64; + private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 65; + private static final int METHODID_LIST_WORKFLOW_CONFIGS = 66; + private static final int METHODID_GET_WORKFLOW_CONFIG = 67; + private static final int METHODID_CREATE_WORKFLOW_CONFIG = 68; + private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 69; + private static final int METHODID_DELETE_WORKFLOW_CONFIG = 70; + private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 71; + private static final int METHODID_GET_WORKFLOW_INVOCATION = 72; + private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 73; + private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 74; + private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 75; + private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 76; + private static final int METHODID_GET_CONFIG = 77; + private static final int METHODID_UPDATE_CONFIG = 78; + private static final int METHODID_GET_IAM_POLICY = 79; + private static final int METHODID_SET_IAM_POLICY = 80; + private static final int METHODID_TEST_IAM_PERMISSIONS = 81; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10368,6 +10489,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_WORKSPACE_LONG_RUNNING: + serviceImpl.createWorkspaceLongRunning( + (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_WORKSPACE: serviceImpl.deleteWorkspace( (com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) request, @@ -10904,6 +11030,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, com.google.cloud.dataform.v1beta1.Workspace>( service, METHODID_CREATE_WORKSPACE))) + .addMethod( + getCreateWorkspaceLongRunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSPACE_LONG_RUNNING))) .addMethod( getDeleteWorkspaceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -11323,6 +11456,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListWorkspacesMethod()) .addMethod(getGetWorkspaceMethod()) .addMethod(getCreateWorkspaceMethod()) + .addMethod(getCreateWorkspaceLongRunningMethod()) .addMethod(getDeleteWorkspaceMethod()) .addMethod(getInstallNpmPackagesMethod()) .addMethod(getPullGitCommitsMethod()) diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadata.java new file mode 100644 index 000000000000..967ecab5f32f --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadata.java @@ -0,0 +1,1622 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
+ * Represents the metadata of the `CreateWorkspaceLongRunning` operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1.CreateWorkspaceMetadata} + */ +@com.google.protobuf.Generated +public final class CreateWorkspaceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.CreateWorkspaceMetadata) + CreateWorkspaceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateWorkspaceMetadata"); + } + + // Use CreateWorkspaceMetadata.newBuilder() to construct. + private CreateWorkspaceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateWorkspaceMetadata() { + id_ = ""; + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.class, + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.Builder.class); + } + + /** + * + * + *
+   * State of the LRO.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataform.v1.CreateWorkspaceMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The LRO has been created.
+     * 
+ * + * CREATED = 1; + */ + CREATED(1), + /** + * + * + *
+     * The LRO is in progress.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The RPC call has finished.
+     * 
+ * + * FINISHED = 3; + */ + FINISHED(3), + /** + * + * + *
+     * The LRO has succeeded.
+     * 
+ * + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * + * + *
+     * The LRO has failed.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The LRO has been created.
+     * 
+ * + * CREATED = 1; + */ + public static final int CREATED_VALUE = 1; + + /** + * + * + *
+     * The LRO is in progress.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
+     * The RPC call has finished.
+     * 
+ * + * FINISHED = 3; + */ + public static final int FINISHED_VALUE = 3; + + /** + * + * + *
+     * The LRO has succeeded.
+     * 
+ * + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + /** + * + * + *
+     * The LRO has failed.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + + 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 CREATED; + case 2: + return RUNNING; + case 3: + return FINISHED; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + 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.dataform.v1.CreateWorkspaceMetadata.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.dataform.v1.CreateWorkspaceMetadata.State) + } + + private int requestCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object request_; + + public enum RequestCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE_WORKSPACE_REQUEST(4), + REQUEST_NOT_SET(0); + private final int value; + + private RequestCase(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 RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 4: + return CREATE_WORKSPACE_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public static final int CREATE_WORKSPACE_REQUEST_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + @java.lang.Override + public boolean hasCreateWorkspaceRequest() { + return requestCase_ == 4; + } + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceRequest getCreateWorkspaceRequest() { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder() { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object 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(); + target_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.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 LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State getState() { + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State result = + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.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(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, target_); + } + if (state_ + != com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (requestCase_ == 4) { + output.writeMessage(4, (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_); + } + 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(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, target_); + } + if (state_ + != com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (requestCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_); + } + 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.dataform.v1.CreateWorkspaceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.CreateWorkspaceMetadata other = + (com.google.cloud.dataform.v1.CreateWorkspaceMetadata) obj; + + if (!getId().equals(other.getId())) return false; + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 4: + if (!getCreateWorkspaceRequest().equals(other.getCreateWorkspaceRequest())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (requestCase_) { + case 4: + hash = (37 * hash) + CREATE_WORKSPACE_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getCreateWorkspaceRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata 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.dataform.v1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata 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.dataform.v1.CreateWorkspaceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata 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.dataform.v1.CreateWorkspaceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata 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.dataform.v1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata 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.dataform.v1.CreateWorkspaceMetadata 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 metadata of the `CreateWorkspaceLongRunning` operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1.CreateWorkspaceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.CreateWorkspaceMetadata) + com.google.cloud.dataform.v1.CreateWorkspaceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.class, + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.CreateWorkspaceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (createWorkspaceRequestBuilder_ != null) { + createWorkspaceRequestBuilder_.clear(); + } + id_ = ""; + target_ = ""; + state_ = 0; + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.CreateWorkspaceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata build() { + com.google.cloud.dataform.v1.CreateWorkspaceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata buildPartial() { + com.google.cloud.dataform.v1.CreateWorkspaceMetadata result = + new com.google.cloud.dataform.v1.CreateWorkspaceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.CreateWorkspaceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs(com.google.cloud.dataform.v1.CreateWorkspaceMetadata result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 4 && createWorkspaceRequestBuilder_ != null) { + result.request_ = createWorkspaceRequestBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.CreateWorkspaceMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.CreateWorkspaceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.CreateWorkspaceMetadata other) { + if (other == com.google.cloud.dataform.v1.CreateWorkspaceMetadata.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getRequestCase()) { + case CREATE_WORKSPACE_REQUEST: + { + mergeCreateWorkspaceRequest(other.getCreateWorkspaceRequest()); + break; + } + case REQUEST_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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetCreateWorkspaceRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 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 requestCase_ = 0; + private java.lang.Object request_; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder> + createWorkspaceRequestBuilder_; + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + @java.lang.Override + public boolean hasCreateWorkspaceRequest() { + return requestCase_ == 4; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceRequest getCreateWorkspaceRequest() { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } else { + if (requestCase_ == 4) { + return createWorkspaceRequestBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateWorkspaceRequest( + com.google.cloud.dataform.v1.CreateWorkspaceRequest value) { + if (createWorkspaceRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + createWorkspaceRequestBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateWorkspaceRequest( + com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder builderForValue) { + if (createWorkspaceRequestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + createWorkspaceRequestBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateWorkspaceRequest( + com.google.cloud.dataform.v1.CreateWorkspaceRequest value) { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4 + && request_ + != com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance()) { + request_ = + com.google.cloud.dataform.v1.CreateWorkspaceRequest.newBuilder( + (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 4) { + createWorkspaceRequestBuilder_.mergeFrom(value); + } else { + createWorkspaceRequestBuilder_.setMessage(value); + } + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateWorkspaceRequest() { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + createWorkspaceRequestBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder + getCreateWorkspaceRequestBuilder() { + return internalGetCreateWorkspaceRequestFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder() { + if ((requestCase_ == 4) && (createWorkspaceRequestBuilder_ != null)) { + return createWorkspaceRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder> + internalGetCreateWorkspaceRequestFieldBuilder() { + if (createWorkspaceRequestBuilder_ == null) { + if (!(requestCase_ == 4)) { + request_ = com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + createWorkspaceRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder>( + (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 4; + onChanged(); + return createWorkspaceRequestBuilder_; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.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 LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State getState() { + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State result = + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CreateWorkspaceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.CreateWorkspaceMetadata) + private static final com.google.cloud.dataform.v1.CreateWorkspaceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.CreateWorkspaceMetadata(); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkspaceMetadata 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.dataform.v1.CreateWorkspaceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadataOrBuilder.java new file mode 100644 index 000000000000..129b414372d3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadataOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface CreateWorkspaceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CreateWorkspaceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + boolean hasCreateWorkspaceRequest(); + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + com.google.cloud.dataform.v1.CreateWorkspaceRequest getCreateWorkspaceRequest(); + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder getCreateWorkspaceRequestOrBuilder(); + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State getState(); + + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.RequestCase getRequestCase(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java index 90b6e2d155ae..664431b15bb4 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java @@ -196,6 +196,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_CreateWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_CreateWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1_DeleteWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1010,7 +1014,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"dataform.googleapis.com/Repository\022<\n" + "\tworkspace\030\002" + " \001(\0132#.google.cloud.dataform.v1.WorkspaceB\004\342A\001\002\022\032\n" - + "\014workspace_id\030\003 \001(\tB\004\342A\001\002\"R\n" + + "\014workspace_id\030\003 \001(\tB\004\342A\001\002\"\331\002\n" + + "\027CreateWorkspaceMetadata\022Z\n" + + "\030create_workspace_request\030\004 \001(" + + "\01320.google.cloud.dataform.v1.CreateWorkspaceRequestB\004\342A\001\003H\000\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\003\022\024\n" + + "\006target\030\002 \001(\tB\004\342A\001\003\022L\n" + + "\005state\030\003 \001(\01627.goo" + + "gle.cloud.dataform.v1.CreateWorkspaceMetadata.StateB\004\342A\001\003\"a\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007CREATED\020\001\022\013\n" + + "\007RUNNING\020\002\022\014\n" + + "\010FINISHED\020\003\022\r\n" + + "\tSUCCEEDED\020\004\022\n\n" + + "\006FAILED\020\005B\t\n" + + "\007request\"R\n" + "\026DeleteWorkspaceRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\"?\n" @@ -1033,12 +1052,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\"\370\002\n" + "\034FetchFileGitStatusesResponse\022n\n" - + "\030uncommitted_file_changes\030\001 \003(\0132L.google.cloud.d" - + "ataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\032\347\001\n" + + "\030uncommitted_file_changes\030\001 \003(\0132L.google.cloud.dataform.v1.F" + + "etchFileGitStatusesResponse.UncommittedFileChange\032\347\001\n" + "\025UncommittedFileChange\022\014\n" + "\004path\030\001 \001(\t\022g\n" - + "\005state\030\002 \001(\0162R.google.cloud.dataform.v1.FetchFileGitStat" - + "usesResponse.UncommittedFileChange.StateB\004\342A\001\003\"W\n" + + "\005state\030\002 \001(\0162R.google.cloud." + + "dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\004\342A\001\003\"W\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005ADDED\020\001\022\013\n" @@ -1055,8 +1074,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035CommitWorkspaceChangesRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022<\n" - + "\006author\030\004 \001(\0132&" - + ".google.cloud.dataform.v1.CommitAuthorB\004\342A\001\002\022\034\n" + + "\006author\030\004" + + " \001(\0132&.google.cloud.dataform.v1.CommitAuthorB\004\342A\001\002\022\034\n" + "\016commit_message\030\002 \001(\tB\004\342A\001\001\022\023\n" + "\005paths\030\003 \003(\tB\004\342A\001\001\" \n" + "\036CommitWorkspaceChangesResponse\"\202\001\n" @@ -1078,8 +1097,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004path\030\002 \001(\tB\004\342A\001\001\022\027\n" + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\004 \001(\tB\004\342A\001\001\022C\n" - + "\004view\030\005 \001(\0162/.goog" - + "le.cloud.dataform.v1.DirectoryContentsViewB\004\342A\001\001\"~\n" + + "\004view\030\005" + + " \001(\0162/.google.cloud.dataform.v1.DirectoryContentsViewB\004\342A\001\001\"~\n" + "\036QueryDirectoryContentsResponse\022C\n" + "\021directory_entries\030\001" + " \003(\0132(.google.cloud.dataform.v1.DirectoryEntry\022\027\n" @@ -1087,8 +1106,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016DirectoryEntry\022\016\n" + "\004file\030\001 \001(\tH\000\022\023\n" + "\tdirectory\030\002 \001(\tH\000\022C\n" - + "\010metadata\030\003" - + " \001(\01321.google.cloud.dataform.v1.FilesystemEntryMetadataB\007\n" + + "\010metadata\030\003 \001(\01321" + + ".google.cloud.dataform.v1.FilesystemEntryMetadataB\007\n" + "\005entry\"j\n" + "\027FilesystemEntryMetadata\022\030\n\n" + "size_bytes\030\001 \001(\003B\004\342A\001\003\0225\n" @@ -1097,7 +1116,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SearchFilesRequest\022=\n" + "\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" + + "\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"t\n" + "\023SearchFilesResponse\022>\n" @@ -1105,8 +1125,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\tB\004\342A\001\001\"\231\001\n" + "\014SearchResult\022:\n" + "\004file\030\001 \001(\0132*.google.cloud.dataform.v1.FileSearchResultH\000\022D\n" - + "\tdirectory\030\002 \001(\0132/.google" - + ".cloud.dataform.v1.DirectorySearchResultH\000B\007\n" + + "\tdirectory\030\002" + + " \001(\0132/.google.cloud.dataform.v1.DirectorySearchResultH\000B\007\n" + "\005entry\" \n" + "\020FileSearchResult\022\014\n" + "\004path\030\001 \001(\t\"%\n" @@ -1161,12 +1181,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ReleaseConfig\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\033\n\r" + "git_commitish\030\002 \001(\tB\004\342A\001\002\022V\n" - + "\027code_compilation_config\030\003 \001(\0132/.goo" - + "gle.cloud.dataform.v1.CodeCompilationConfigB\004\342A\001\001\022\033\n\r" + + "\027code_compilation_config\030\003" + + " \001(\0132/.google.cloud.dataform.v1.CodeCompilationConfigB\004\342A\001\001\022\033\n" + + "\r" + "cron_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n" + "\ttime_zone\030\007 \001(\tB\004\342A\001\001\022n\n" - + " recent_scheduled_release_records\030\005 \003(\0132>.google.cloud" - + ".dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\004\342A\001\003\022V\n" + + " recent_scheduled_release_records\030\005 \003(\0132>.google.cloud.dataform.v1" + + ".ReleaseConfig.ScheduledReleaseRecordB\004\342A\001\003\022V\n" + "\032release_compilation_result\030\006 \001(\tB2\342A\001\001\372A+\n" + ")dataform.googleapis.com/CompilationResult\022\026\n" + "\010disabled\030\010 \001(\010B\004\342A\001\001\022$\n" @@ -1178,9 +1199,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014release_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\010\n" + "\006result:\255\001\352A\251\001\n" - + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{pr" - + "oject}/locations/{location}/repositories" - + "/{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{project}/locat" + + "ions/{location}/repositories/{repository" + + "}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + "releaseConfigB\024\n" + "\022_internal_metadata\"\213\001\n" + "\031ListReleaseConfigsRequest\022;\n" @@ -1217,31 +1238,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016release_config\030\007 \001(\tB.\342A\001\005\372A\'\n" + "%dataform.googleapis.com/ReleaseConfigH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022V\n" - + "\027code_compilation_config\030\004 \001" - + "(\0132/.google.cloud.dataform.v1.CodeCompilationConfigB\004\342A\001\005\022%\n" + + "\027code_compilation_config\030\004 \001(\0132/.google." + + "cloud.dataform.v1.CodeCompilationConfigB\004\342A\001\005\022%\n" + "\027resolved_git_commit_sha\030\010 \001(\tB\004\342A\001\003\022#\n" + "\025dataform_core_version\030\005 \001(\tB\004\342A\001\003\022^\n" - + "\022compilation_errors\030\006 \003(" - + "\0132<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\004\342A\001\003\022R\n" + + "\022compilation_errors\030\006 \003(\0132<.google.c" + + "loud.dataform.v1.CompilationResult.CompilationErrorB\004\342A\001\003\022R\n" + "\025data_encryption_state\030\t" + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\004\342A\001\003\0225\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022$\n" + "\021internal_metadata\030\013 \001(\tB\004\342A\001\003H\001\210\001\001\022Z\n" - + "\031private_resource_metadata\030\014 \001(" - + "\01321.google.cloud.dataform.v1.PrivateResourceMetadataB\004\342A\001\003\022g\n" + + "\031private_resource_metadata\030\014 \001(\01321.google.c" + + "loud.dataform.v1.PrivateResourceMetadataB\004\342A\001\003\022g\n" + " gcs_repository_snapshot_metadata\030\r" - + " \001(\01327.google.cloud.data" - + "form.v1.GcsRepositorySnapshotMetadataB\004\342A\001\003\032\221\001\n" + + " \001(\01327.google.cloud.dataform.v1.GcsRepositorySnapshotMetadataB\004\342A\001\003\032\221\001\n" + "\020CompilationError\022\025\n" + "\007message\030\001 \001(\tB\004\342A\001\003\022\023\n" + "\005stack\030\002 \001(\tB\004\342A\001\003\022\022\n" + "\004path\030\003 \001(\tB\004\342A\001\003\022=\n\r" + "action_target\030\004 \001(\0132" + " .google.cloud.dataform.v1.TargetB\004\342A\001\003:\301\001\352A\275\001\n" - + ")dataform.googleapis.com/CompilationResult\022iprojects/{project}/locations/{locatio" - + "n}/repositories/{repository}/compilation" - + "Results/{compilation_result}*\022compilationResults2\021compilationResultB\010\n" + + ")dataform.googleapis.com/CompilationResult\022iprojects/" + + "{project}/locations/{location}/repositories/{repository}/compilationResults/{com" + + "pilation_result}*\022compilationResults2\021compilationResultB\010\n" + "\006sourceB\024\n" + "\022_internal_metadata\"\371\004\n" + "\025CodeCompilationConfig\022\036\n" @@ -1249,15 +1269,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016default_schema\030\002 \001(\tB\004\342A\001\001\022\036\n" + "\020default_location\030\010 \001(\tB\004\342A\001\001\022\036\n" + "\020assertion_schema\030\003 \001(\tB\004\342A\001\001\022M\n" - + "\004vars\030\004 \003(\01329.google.cloud" - + ".dataform.v1.CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" + + "\004vars\030\004 \003(\01329.google.cloud.dataform.v1" + + ".CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" + "\017database_suffix\030\005 \001(\tB\004\342A\001\001\022\033\n\r" + "schema_suffix\030\006 \001(\tB\004\342A\001\001\022\032\n" + "\014table_prefix\030\007 \001(\tB\004\342A\001\001\022+\n" + "\035builtin_assertion_name_prefix\030\n" + " \001(\tB\004\342A\001\001\022`\n" - + " default_notebook_runtime_options\030\t \001(\01320.google.cloud" - + ".dataform.v1.NotebookRuntimeOptionsB\004\342A\001\001\022G\n" + + " default_notebook_runtime_options\030\t" + + " \001(\01320.google.cloud.dataform.v1.NotebookRuntimeOptionsB\004\342A\001\001\022G\n" + "\017pipeline_config\030\014" + " \001(\0132(.google.cloud.dataform.v1.PipelineConfigB\004\342A\001\001\022\"\n" + "\017lineage_enabled\030\016 \001(\010B\004\342A\001\003H\000\210\001\001\032+\n" @@ -1273,50 +1293,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027repository_snapshot_uri\030\001 \001(\tB\004\342A\001\001\"\310\002\n" + "\026NotebookRuntimeOptions\022!\n" + "\021gcs_output_bucket\030\001 \001(\tB\004\342A\001\001H\000\022o\n" - + "#gcs_repository_snapshot_destination\030\003" - + " \001(\0132:.google.cloud.dataform.v1.GcsRepositorySnapshotDestinationB\004\342A\001\001H\001\022i\n" + + "#gcs_repository_snapshot_destination\030\003 \001(\0132:.goo" + + "gle.cloud.dataform.v1.GcsRepositorySnapshotDestinationB\004\342A\001\001H\001\022i\n" + "%ai_platform_notebook_runtime_template\030\002 \001(\tB:\342A\001\001\372A3\n" + "1aiplatform.googleapis.com/NotebookRuntimeTemplateB\020\n" + "\016execution_sinkB\035\n" + "\033repository_snapshot_storage\"\314\001\n" - + "\016PipelineConfig\022R\n\r" - + "pipeline_type\030\001 \001(\01625.googl" - + "e.cloud.dataform.v1.PipelineConfig.PipelineTypeB\004\342A\001\002\022\022\n" + + "\016PipelineConfig\022R\n" + + "\r" + + "pipeline_type\030\001 \001(\01625.google.cloud.data" + + "form.v1.PipelineConfig.PipelineTypeB\004\342A\001\002\022\022\n" + "\004path\030\002 \001(\tB\004\342A\001\002\"R\n" + "\014PipelineType\022\035\n" + "\031PIPELINE_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010DATAFORM\020\001\022\007\n" + "\003SQL\020\003\022\014\n" + "\010NOTEBOOK\020\004\"\275\001\n" - + "\035ListCompilationResultsRequest\022;\n" + + "\035ListCompil", + "ationResultsRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\230\001\n" + "\036ListCompilationResultsResponse\022H\n" - + "\023compilation_results\030\001" - + " \003(\0132+.google.cloud.dataform.v1.CompilationResult\022\027\n" + + "\023compilation_results\030\001 \003(" + + "\0132+.google.cloud.dataform.v1.CompilationResult\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"_\n" - + "\033GetCompilati", - "onResultRequest\022@\n" + + "\033GetCompilationResultRequest\022@\n" + "\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + ")dataform.googleapis.com/CompilationResult\"\254\001\n" + "\036CreateCompilationResultRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022M\n" - + "\022compilation_result\030\002" - + " \001(\0132+.google.cloud.dataform.v1.CompilationResultB\004\342A\001\002\"\355\002\n" + + "\022compilation_result\030\002 \001(\0132+.goog" + + "le.cloud.dataform.v1.CompilationResultB\004\342A\001\002\"\355\002\n" + "\037CreateCompilationResultMetadata\022\020\n" + "\002id\030\001 \001(\tB\004\342A\001\003\022\024\n" + "\006target\030\002 \001(\tB\004\342A\001\003\022T\n" - + "\005state\030\003 \001(\0162?.google.clo" - + "ud.dataform.v1.CreateCompilationResultMetadata.StateB\004\342A\001\003\022i\n" - + "!create_compilation_result_request\030\004 \001(\01328.google.cloud.dat" - + "aform.v1.CreateCompilationResultRequestB\004\342A\001\003\"a\n" + + "\005state\030\003 \001(\0162?.google.cloud.dataform." + + "v1.CreateCompilationResultMetadata.StateB\004\342A\001\003\022i\n" + + "!create_compilation_result_request\030\004" + + " \001(\01328.google.cloud.dataform.v1.CreateCompilationResultRequestB\004\342A\001\003\"a\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007CREATED\020\001\022\013\n" @@ -1330,10 +1350,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\003 \001(\tB\004\342A\001\001\"\340\002\n" + "\022RelationDescriptor\022\023\n" + "\013description\030\001 \001(\t\022N\n" - + "\007columns\030\002 \003(" - + "\0132=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\022Y\n" - + "\017bigquery_labels\030\003" - + " \003(\0132@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + + "\007columns\030\002 \003(\0132=.google.c" + + "loud.dataform.v1.RelationDescriptor.ColumnDescriptor\022Y\n" + + "\017bigquery_labels\030\003 \003(\0132@." + + "google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + "\020ColumnDescriptor\022\014\n" + "\004path\030\001 \003(\t\022\023\n" + "\013description\030\002 \001(\t\022\034\n" @@ -1342,20 +1362,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\306 \n" + "\027CompilationResultAction\022N\n" - + "\010relation\030\004 \001(\0132:.google.cloud.dat" - + "aform.v1.CompilationResultAction.RelationH\000\022R\n\n" - + "operations\030\005 \001(\0132<.google.cloud.d" - + "ataform.v1.CompilationResultAction.OperationsH\000\022P\n" - + "\tassertion\030\006 \001(\0132;.google.clou" - + "d.dataform.v1.CompilationResultAction.AssertionH\000\022T\n" - + "\013declaration\030\007 \001(\0132=.google." - + "cloud.dataform.v1.CompilationResultAction.DeclarationH\000\022N\n" - + "\010notebook\030\010 \001(\0132:.goog" - + "le.cloud.dataform.v1.CompilationResultAction.NotebookH\000\022]\n" - + "\020data_preparation\030\t \001(" - + "\0132A.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\000\022`\n" - + "\022bigquery_unit_test\030\013 \001(\0132B.google.cloud.datafo" - + "rm.v1.CompilationResultAction.BigQueryUnitTestH\000\0220\n" + + "\010relation\030\004" + + " \001(\0132:.google.cloud.dataform.v1.CompilationResultAction.RelationH\000\022R\n\n" + + "operations\030\005" + + " \001(\0132<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\000\022P\n" + + "\tassertion\030\006" + + " \001(\0132;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\000\022T\n" + + "\013declaration\030\007 \001(\0132=.google.cloud.datafo" + + "rm.v1.CompilationResultAction.DeclarationH\000\022N\n" + + "\010notebook\030\010 \001(\0132:.google.cloud.dat" + + "aform.v1.CompilationResultAction.NotebookH\000\022]\n" + + "\020data_preparation\030\t \001(\0132A.google.c" + + "loud.dataform.v1.CompilationResultAction.DataPreparationH\000\022`\n" + + "\022bigquery_unit_test\030\013" + + " \001(\0132B.google.cloud.dataform.v1.CompilationResultAction.BigQueryUnitTestH\000\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022:\n" + "\020canonical_target\030\002 \001(\0132 .google.cloud.dataform.v1.Target\022\021\n" + "\tfile_path\030\003 \001(\t\022$\n" @@ -1366,28 +1386,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022I\n" + "\023relation_descriptor\030\004" - + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022^\n" - + "\r" - + "relation_type\030\005 \001(\0162G.google.cloud.data" - + "form.v1.CompilationResultAction.Relation.RelationType\022\024\n" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022^\n\r" + + "relation_type\030\005 \001(\0162G.google.cloud.dataform.v1.Comp" + + "ilationResultAction.Relation.RelationType\022\024\n" + "\014select_query\030\006 \001(\t\022\026\n" + "\016pre_operations\030\007 \003(\t\022\027\n" + "\017post_operations\030\010 \003(\t\022s\n" - + "\030incremental_table_config\030\t \001(\0132Q.google.cloud.dataform.v1.CompilationRes" - + "ultAction.Relation.IncrementalTableConfig\022\034\n" + + "\030incremental_table_config\030\t \001(\0132Q.google.clou" + + "d.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\022\034\n" + "\024partition_expression\030\n" + " \001(\t\022\033\n" + "\023cluster_expressions\030\013 \003(\t\022!\n" + "\031partition_expiration_days\030\014 \001(\005\022 \n" + "\030require_partition_filter\030\r" + " \001(\010\022m\n" - + "\022additional_options\030\016 \003(\0132Q.google.cloud.dataform.v1.CompilationResu" - + "ltAction.Relation.AdditionalOptionsEntry\022\030\n\n" + + "\022additional_options\030\016 \003(\0132Q.google.cloud" + + ".dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\022\030\n\n" + "connection\030\017 \001(\tB\004\342A\001\001\022b\n" - + "\014table_format\030\020 \001(\0162F.google.cloud.dataform.v1.Comp" - + "ilationResultAction.Relation.TableFormatB\004\342A\001\001\022`\n" - + "\013file_format\030\021 \001(\0162E.google.clo" - + "ud.dataform.v1.CompilationResultAction.Relation.FileFormatB\004\342A\001\001\022\031\n" + + "\014table_format\030\020 \001(\0162F.g" + + "oogle.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\004\342A\001\001\022`\n" + + "\013file_format\030\021 \001(\0162E.google.cloud.dataform." + + "v1.CompilationResultAction.Relation.FileFormatB\004\342A\001\001\022\031\n" + "\013storage_uri\030\022 \001(\tB\004\342A\001\001\032\330\001\n" + "\026IncrementalTableConfig\022 \n" + "\030incremental_select_query\030\001 \001(\t\022\030\n" @@ -1410,16 +1429,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007ICEBERG\020\001\"6\n\n" + "FileFormat\022\033\n" + "\027FILE_FORMAT_UNSPECIFIED\020\000\022\013\n" - + "\007PARQUET\020\001\032\332\001\n" - + "\n" + + "\007PARQUET\020\001\032\332\001\n\n" + "Operations\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022I\n" - + "\023relation_descriptor\030\006" - + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022\017\n" - + "\007queries\030\004 \003(\t\022\022\n" - + "\n" + + "\023relation_descriptor\030\006 \001" + + "(\0132,.google.cloud.dataform.v1.RelationDescriptor\022\017\n" + + "\007queries\030\004 \003(\t\022\022\n\n" + "has_output\030\005 \001(\010\032\203\002\n" + "\tAssertion\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\0227\n\r" @@ -1427,11 +1444,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022\024\n" + "\014select_query\030\004 \001(\t\022I\n" - + "\023relation_descriptor\030\006 \001(\0132,.goog" - + "le.cloud.dataform.v1.RelationDescriptor\032X\n" + + "\023relation_descriptor\030\006" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032X\n" + "\013Declaration\022I\n" - + "\023relation_descriptor\030\001 " - + "\001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032z\n" + + "\023relation_descriptor\030\001" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032z\n" + "\010Notebook\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\020\n" @@ -1439,17 +1456,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\t\032\247\004\n" + "\017DataPreparation\022\027\n\r" + "contents_yaml\030\005 \001(\tH\000\022g\n" - + "\014contents_sql\030\006 \001(\0132O.google.cloud.dataform.v1.CompilationR" - + "esultAction.DataPreparation.SqlDefinitionH\000\022<\n" + + "\014contents_sql\030\006 \001(\0132O.google.cl" + + "oud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\004 \003(\t\032\315\001\n\r" + "SqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022a\n" - + "\013error_table\030\002 \001(\0132L.google" - + ".cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\022J\n" - + "\004load\030\003 " - + "\001(\0132<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\032V\n\n" + + "\013error_table\030\002 \001(\0132L.google.cloud.dataf" + + "orm.v1.CompilationResultAction.DataPreparation.ErrorTable\022J\n" + + "\004load\030\003 \001(\0132<.google" + + ".cloud.dataform.v1.CompilationResultAction.LoadConfig\032V\n\n" + "ErrorTable\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022\026\n" + "\016retention_days\030\002 \001(\005B\014\n\n" @@ -1462,14 +1479,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "test_query\030\005 \001(\t\022\035\n" + "\025expected_output_query\030\006 \001(\t\032\360\002\n\n" + "LoadConfig\022S\n" - + "\007replace\030\001 \001(\0132@.google.clo" - + "ud.dataform.v1.CompilationResultAction.SimpleLoadModeH\000\022R\n" - + "\006append\030\002 \001(\0132@.google" - + ".cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\000\022X\n" - + "\007maximum\030\003 \001(\0132E.g" - + "oogle.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\000\022W\n" - + "\006unique\030\004 \001(\0132E.google.cloud.dataform.v1.Compila" - + "tionResultAction.IncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132@.google.cloud.dataform." + + "v1.CompilationResultAction.SimpleLoadModeH\000\022R\n" + + "\006append\030\002 \001(\0132@.google.cloud.dataf" + + "orm.v1.CompilationResultAction.SimpleLoadModeH\000\022X\n" + + "\007maximum\030\003 \001(\0132E.google.cloud." + + "dataform.v1.CompilationResultAction.IncrementalLoadModeH\000\022W\n" + + "\006unique\030\004 \001(\0132E.goog" + + "le.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + "\004mode\032\020\n" + "\016SimpleLoadMode\032%\n" + "\023IncrementalLoadMode\022\016\n" @@ -1483,8 +1500,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"\227\001\n" + "%QueryCompilationResultActionsResponse\022U\n" - + "\032compilation_result_actions\030\001 \003" - + "(\01321.google.cloud.dataform.v1.CompilationResultAction\022\027\n" + + "\032compilation_result_actions\030\001 \003(\01321.google." + + "cloud.dataform.v1.CompilationResultAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\270\007\n" + "\016WorkflowConfig\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022F\n" @@ -1494,8 +1511,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.dataform.v1.InvocationConfigB\004\342A\001\001\022\033\n\r" + "cron_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n" + "\ttime_zone\030\007 \001(\tB\004\342A\001\001\022s\n" - + "\"recent_scheduled_execution_records\030\005" - + " \003(\0132A.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\004\342A\001\003\022\026\n" + + "\"recent_scheduled_execution_records\030\005 \003(\0132A.googl" + + "e.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\004\342A\001\003\022\026\n" + "\010disabled\030\010 \001(\010B\004\342A\001\001\0225\n" + "\013create_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" @@ -1509,9 +1526,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016execution_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\010\n" + "\006result:\262\001\352A\256\001\n" - + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locations/{location}/r" - + "epositories/{repository}/workflowConfigs" - + "/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{pro" + + "ject}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_c" + + "onfig}*\017workflowConfigs2\016workflowConfigB\024\n" + "\022_internal_metadata\"\341\007\n" + "\020InvocationConfig\022@\n" + "\020included_targets\030\001 \003(\0132" @@ -1522,14 +1539,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(fully_refresh_incremental_tables_enabled\030\005" + " \001(\010B\004\342A\001\001\022\035\n" + "\017service_account\030\006 \001(\tB\004\342A\001\001\022j\n" - + "\024end_user_auth_config\030\007 \001(\0132F.google.cloud.dataform.v1.InvocationCo" - + "nfig.EndUserAuthenticationConfigB\004\342A\001\001\022[\n" - + "\016query_priority\030\t \001(\01628.google.cloud.da" - + "taform.v1.InvocationConfig.QueryPriorityB\004\342A\001\001H\000\210\001\001\022+\n" + + "\024end_user_auth_config\030\007 \001(\0132F.google.cl" + + "oud.dataform.v1.InvocationConfig.EndUserAuthenticationConfigB\004\342A\001\001\022[\n" + + "\016query_priority\030\t \001(\01628.google.cloud.dataform.v1.In" + + "vocationConfig.QueryPriorityB\004\342A\001\001H\000\210\001\001\022+\n" + "\030concurrent_actions_limit\030\n" + " \001(\005B\004\342A\001\001H\001\210\001\001\022V\n" - + "\016execution_mode\030\020 \001(\016" - + "28.google.cloud.dataform.v1.InvocationConfig.ExecutionModeB\004\342A\001\001\032z\n" + + "\016execution_mode\030\020 \001(\01628.google.cl" + + "oud.dataform.v1.InvocationConfig.ExecutionModeB\004\342A\001\001\032z\n" + "\033EndUserAuthenticationConfig\022\030\n\n" + "user_email\030\002 \001(\tB\004\342A\001\003\022A\n" + "\014oauth_config\030\004" @@ -1561,14 +1578,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033CreateWorkflowConfigRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022G\n" - + "\017workflow_config\030\002" - + " \001(\0132(.google.cloud.dataform.v1.WorkflowConfigB\004\342A\001\002\022 \n" + + "\017workflow_config\030\002 \001(\0132(.go" + + "ogle.cloud.dataform.v1.WorkflowConfigB\004\342A\001\002\022 \n" + "\022workflow_config_id\030\003 \001(\tB\004\342A\001\002\"\235\001\n" + "\033UpdateWorkflowConfigRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022G\n" - + "\017workflow_config\030\002 \001(" - + "\0132(.google.cloud.dataform.v1.WorkflowConfigB\004\342A\001\002\"\\\n" + + "\017workflow_config\030\002" + + " \001(\0132(.google.cloud.dataform.v1.WorkflowConfigB\004\342A\001\002\"\\\n" + "\033DeleteWorkflowConfigRequest\022=\n" + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + "&dataform.googleapis.com/WorkflowConfig\"\347\010\n" @@ -1578,21 +1595,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017workflow_config\030\006 \001(\tB/\342A\001\005\372A(\n" + "&dataform.googleapis.com/WorkflowConfigH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022K\n" - + "\021invocation_config\030\003" - + " \001(\0132*.google.cloud.dataform.v1.InvocationConfigB\004\342A\001\005\022G\n" - + "\005state\030\004 \001(\01622.g" - + "oogle.cloud.dataform.v1.WorkflowInvocation.StateB\004\342A\001\003\0226\n" + + "\021invocation_config\030\003 \001(\0132" + + "*.google.cloud.dataform.v1.InvocationConfigB\004\342A\001\005\022G\n" + + "\005state\030\004 \001(\01622.google.cloud." + + "dataform.v1.WorkflowInvocation.StateB\004\342A\001\003\0226\n" + "\021invocation_timing\030\005" + " \001(\0132\025.google.type.IntervalB\004\342A\001\003\022W\n" + "\033resolved_compilation_result\030\007 \001(\tB2\342A\001\003\372A+\n" + ")dataform.googleapis.com/CompilationResult\022R\n" - + "\025data_encryption_state\030\010 \001(\0132-.google." - + "cloud.dataform.v1.DataEncryptionStateB\004\342A\001\003\022$\n" + + "\025data_encryption_state\030\010" + + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\004\342A\001\003\022$\n" + "\021internal_metadata\030\t \001(\tB\004\342A\001\003H\001\210\001\001\022Z\n" + "\031private_resource_metadata\030\n" + " \001(\01321.google.cloud.dataform.v1.PrivateResourceMetadataB\004\342A\001\003\022G\n" - + "\017pipeline_config\030\013 \001(\0132(" - + ".google.cloud.dataform.v1.PipelineConfigB\004\342A\001\003\"d\n" + + "\017pipeline_config\030\013" + + " \001(\0132(.google.cloud.dataform.v1.PipelineConfigB\004\342A\001\003\"d\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" @@ -1600,9 +1617,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003\022\n\n" + "\006FAILED\020\004\022\r\n" + "\tCANCELING\020\005:\306\001\352A\302\001\n" - + "*dataform.googleapis.com/WorkflowInvocation\022" - + "kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvoc" - + "ations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{p" + + "roject}/locations/{location}/repositories/{repository}/workflowInvocations/{work" + + "flow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + "\022compilation_sourceB\024\n" + "\022_internal_metadata\"\276\001\n" + "\036ListWorkflowInvocationsRequest\022;\n" @@ -1613,8 +1630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\233\001\n" + "\037ListWorkflowInvocationsResponse\022J\n" - + "\024workflow_invocations\030\001" - + " \003(\0132,.google.cloud.dataform.v1.WorkflowInvocation\022\027\n" + + "\024workflow_invocations\030\001 \003(\013" + + "2,.google.cloud.dataform.v1.WorkflowInvocation\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"a\n" + "\034GetWorkflowInvocationRequest\022A\n" @@ -1623,8 +1640,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037CreateWorkflowInvocationRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022O\n" - + "\023workflow_invocation\030\002" - + " \001(\0132,.google.cloud.dataform.v1.WorkflowInvocationB\004\342A\001\002\"d\n" + + "\023workflow_invocation\030\002 \001(\0132,." + + "google.cloud.dataform.v1.WorkflowInvocationB\004\342A\001\002\"d\n" + "\037DeleteWorkflowInvocationRequest\022A\n" + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n" + "*dataform.googleapis.com/WorkflowInvocation\"d\n" @@ -1633,21 +1650,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\"\"\n" + " CancelWorkflowInvocationResponse\"\310\023\n" + "\030WorkflowInvocationAction\022b\n" - + "\017bigquery_action\030\006 \001(\0132A.go" - + "ogle.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\004\342A\001\003H\000\022b\n" - + "\017notebook_action\030\010 \001(\0132A.google.cloud.dataform." - + "v1.WorkflowInvocationAction.NotebookActionB\004\342A\001\003H\000\022q\n" - + "\027data_preparation_action\030\t \001(\0132H.google.cloud.dataform.v1.WorkflowI" - + "nvocationAction.DataPreparationActionB\004\342A\001\003H\000\022t\n" - + "\031bigquery_unit_test_action\030\014 \001(\013" - + "2I.google.cloud.dataform.v1.WorkflowInvo" - + "cationAction.BigQueryUnitTestActionB\004\342A\001\003H\000\0226\n" + + "\017bigquery_action\030\006 \001(\0132A.google.cloud.d" + + "ataform.v1.WorkflowInvocationAction.BigQueryActionB\004\342A\001\003H\000\022b\n" + + "\017notebook_action\030\010 \001(\0132A.google.cloud.dataform.v1.WorkflowI" + + "nvocationAction.NotebookActionB\004\342A\001\003H\000\022q\n" + + "\027data_preparation_action\030\t \001(\0132H.google" + + ".cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\004\342A\001\003H\000\022t\n" + + "\031bigquery_unit_test_action\030\014 \001(\0132I.google.cl" + + "oud.dataform.v1.WorkflowInvocationAction.BigQueryUnitTestActionB\004\342A\001\003H\000\0226\n" + "\006target\030\001 \001(\0132" + " .google.cloud.dataform.v1.TargetB\004\342A\001\003\022@\n" + "\020canonical_target\030\002 \001(\0132" + " .google.cloud.dataform.v1.TargetB\004\342A\001\003\022M\n" - + "\005state\030\004 \001(\01628.google.cloud.data" - + "form.v1.WorkflowInvocationAction.StateB\004\342A\001\003\022\034\n" + + "\005state\030\004" + + " \001(\01628.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\004\342A\001\003\022\034\n" + "\016failure_reason\030\007 \001(\tB\004\342A\001\003\0226\n" + "\021invocation_timing\030\005" + " \001(\0132\025.google.type.IntervalB\004\342A\001\003\022$\n" @@ -1662,28 +1678,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tfile_path\030\003 \001(\tB\004\342A\001\003\032\204\t\n" + "\025DataPreparationAction\022\035\n\r" + "contents_yaml\030\002 \001(\tB\004\342A\001\003H\000\022t\n" - + "\014contents_sql\030\006 \001(\0132\\.google.cloud.dataform.v1.WorkflowIn" - + "vocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\033\n\r" + + "\014contents_sql\030\006 \001(\0132\\.google.cloud.dataform.v1.WorkflowInvocationActi" + + "on.DataPreparationAction.ActionSqlDefinitionH\000\022\033\n\r" + "generated_sql\030\003 \001(\tB\004\342A\001\003\022\024\n" + "\006job_id\030\004 \001(\tB\004\342A\001\003\032\204\002\n" + "\023ActionSqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022n\n" - + "\013error_table\030\002 \001(\0132Y.google.cloud.dataform.v1.Wor" - + "kflowInvocationAction.DataPreparationAction.ActionErrorTable\022n\n" - + "\013load_config\030\003 \001(\0132Y.google.cloud.dataform.v1.WorkflowInv" - + "ocationAction.DataPreparationAction.ActionLoadConfig\032\\\n" + + "\013error_table\030\002 \001(\0132Y.google.cloud.dataform.v1.WorkflowInvocat" + + "ionAction.DataPreparationAction.ActionErrorTable\022n\n" + + "\013load_config\030\003 \001(\0132Y.google.cloud.dataform.v1.WorkflowInvocationActio" + + "n.DataPreparationAction.ActionLoadConfig\032\\\n" + "\020ActionErrorTable\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022\026\n" + "\016retention_days\030\002 \001(\005\032\352\003\n" + "\020ActionLoadConfig\022p\n" - + "\007replace\030\001 \001(\0132].google.cloud.dataform.v1.WorkflowInvocationAction.Dat" - + "aPreparationAction.ActionSimpleLoadModeH\000\022o\n" - + "\006append\030\002 \001(\0132].google.cloud.datafor" - + "m.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022u\n" - + "\007maximum\030\003 \001(\0132b.google.cloud.dataform.v1.W" - + "orkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022t\n" - + "\006unique\030\004 \001(\0132b.google.cloud.dataform.v1.Wor" - + "kflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132].google.cloud.dataform.v1." + + "WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022o\n" + + "\006append\030\002 \001(\0132].google.cloud.dataform.v1.Workflo" + + "wInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022u\n" + + "\007maximum\030\003 \001(\0132b.google.cloud.dataform.v1.WorkflowInvoc" + + "ationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022t\n" + + "\006unique\030\004 \001(\0132b.google.cloud.dataform.v1.WorkflowInvocat" + + "ionAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + "\004mode\032\026\n" + "\024ActionSimpleLoadMode\032+\n" + "\031ActionIncrementalLoadMode\022\016\n" @@ -1713,16 +1729,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\232\001\n" + "&QueryWorkflowInvocationActionsResponse\022W\n" - + "\033workflow_invocation_actions\030\001" - + " \003(\01322.google.cloud.dataform.v1.WorkflowInvocationAction\022\027\n" + + "\033workflow_invocation_actions\030\001 \003(\01322.g" + + "oogle.cloud.dataform.v1.WorkflowInvocationAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\210\002\n" + "\006Config\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022H\n" + "\024default_kms_key_name\030\002 \001(\tB*\342A\001\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022$\n" + "\021internal_metadata\030\007 \001(\tB\004\342A\001\003H\000\210\001\001:d\352Aa\n" - + "\036dataform.googleapis.com/Config\022.projects/{pro" - + "ject}/locations/{location}/config*\007configs2\006configB\024\n" + + "\036dataform.googleapis.com/Config\022.projects/{project}/locati" + + "ons/{location}/config*\007configs2\006configB\024\n" + "\022_internal_metadata\"I\n" + "\020GetConfigRequest\0225\n" + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" @@ -1743,8 +1759,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022$\n" + "\021internal_metadata\030\007 \001(\tB\004\342A\001\003H\000\210\001\001\022(\n" + "\025creator_iam_principal\030\010 \001(\tB\004\342A\001\003H\001\210\001\001:n\352Ak\n" - + "\036dataform.googleapis.com/Folder\0228proje" - + "cts/{project}/locations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + + "\036dataform.googleapis.com/Folder\0228projects/{project" + + "}/locations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + "\022_internal_metadataB\030\n" + "\026_creator_iam_principal\"\211\001\n" + "\023CreateFolderRequest\022:\n" @@ -1782,8 +1798,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + "\006target\030\003 \001(\tB\004\342A\001\003\022M\n" - + "\005state\030\004" - + " \001(\01628.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\004\342A\001\003\022\036\n" + + "\005state\030\004 \001(\016" + + "28.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\004\342A\001\003\022\036\n" + "\020percent_complete\030\005 \001(\005B\004\342A\001\003\"[\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" @@ -1799,11 +1815,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\243\002\n" + "\033QueryFolderContentsResponse\022Z\n" - + "\007entries\030\001 \003(\0132I.go" - + "ogle.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132I.google.cloud.d" + + "ataform.v1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\216\001\n" + "\023FolderContentsEntry\0222\n" - + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + + "\006folder\030\001 ", + "\001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + "repository\030\002 \001(\0132$.google.cloud.dataform.v1.RepositoryH\000B\007\n" + "\005entry\"\275\001\n" + "\034QueryUserRootContentsRequest\022<\n" @@ -1814,9 +1831,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\243\002\n" + "\035QueryUserRootContentsResponse\022Z\n" - + "\007entries\030\001 ", - "\003(\0132I.google.cloud.dataform.v1.QueryUser" - + "RootContentsResponse.RootContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132I.google" + + ".cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\214\001\n" + "\021RootContentsEntry\0222\n" + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" @@ -1832,8 +1848,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021internal_metadata\030\005 \001(\tB\004\342A\001\003H\000\210\001\001\022(\n" + "\025creator_iam_principal\030\006 \001(" + "\tB\004\342A\001\003H\001\210\001\001:\204\001\352A\200\001\n" - + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{projec" - + "t}/locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{project}/locations" + + "/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + "teamFolderB\024\n" + "\022_internal_metadataB\030\n" + "\026_creator_iam_principal\"\226\001\n" @@ -1861,8 +1877,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\263\002\n" + "\037QueryTeamFolderContentsResponse\022b\n" - + "\007entries\030\001 \003(\0132Q.google.cloud.dataform.v1.QueryTeam" - + "FolderContentsResponse.TeamFolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132Q.google" + + ".cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\222\001\n" + "\027TeamFolderContentsEntry\0222\n" + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" @@ -1876,8 +1892,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\361\001\n" + "\031SearchTeamFoldersResponse\022[\n" - + "\007results\030\001 \003(\0132J.google.cloud.dataform." - + "v1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + + "\007results\030\001 \003(\0132J.google.cloud.dataform.v1.SearchTea" + + "mFoldersResponse.TeamFolderSearchResult\022\027\n" + "\017next_page_token\030\002 \001(\t\032^\n" + "\026TeamFolderSearchResult\022;\n" + "\013team_folder\030\002 \001(\0132$.google.cloud.dataform.v1.TeamFolderH\000B\007\n" @@ -1903,8 +1919,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + "\006target\030\003 \001(\tB\004\342A\001\003\022E\n" - + "\005state\030\004 \001(\0162" - + "6.google.cloud.dataform.v1.MoveRepositoryMetadata.State\022\030\n" + + "\005state\030\004 \001(\01626.google.clo" + + "ud.dataform.v1.MoveRepositoryMetadata.State\022\030\n" + "\020percent_complete\030\005 \001(\005\"Y\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" @@ -1915,375 +1931,388 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025DirectoryContentsView\022\'\n" + "#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\020\000\022!\n" + "\035DIRECTORY_CONTENTS_VIEW_BASIC\020\001\022$\n" - + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\254\200\001\n" + + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\310\202\001\n" + "\010Dataform\022\245\001\n\r" - + "GetTeamFolder\022..google.cloud.dataform.v1.GetTeamFolderRequest\032$.googl" - + "e.cloud.dataform.v1.TeamFolder\">\332A\004name\202" - + "\323\344\223\0021\022//v1/{name=projects/*/locations/*/teamFolders/*}\022\306\001\n" - + "\020CreateTeamFolder\0221.google.cloud.dataform.v1.CreateTeamFolderR" - + "equest\032$.google.cloud.dataform.v1.TeamFo" - + "lder\"Y\332A\022parent,team_folder\202\323\344\223\002>\"//v1/{" - + "parent=projects/*/locations/*}/teamFolders:\013team_folder\022\327\001\n" - + "\020UpdateTeamFolder\0221.google.cloud.dataform.v1.UpdateTeamFolder" - + "Request\032$.google.cloud.dataform.v1.TeamF" - + "older\"j\332A\027team_folder,update_mask\202\323\344\223\002J2" - + ";/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\013team_folder\022\235\001\n" - + "\020DeleteTeamFolder\0221.google.cloud.dataform.v" - + "1.DeleteTeamFolderRequest\032\026.google.proto" - + "buf.Empty\">\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/teamFolders/*}\022\365\001\n" - + "\024DeleteTeamFolderTree\0225.google.cloud.datafo" - + "rm.v1.DeleteTeamFolderTreeRequest\032\035.google.longrunning.Operation\"\206\001\312A1\n" + + "GetTeamFolder\022..google.cloud.dataform.v1." + + "GetTeamFolderRequest\032$.google.cloud.data" + + "form.v1.TeamFolder\">\332A\004name\202\323\344\223\0021\022//v1/{" + + "name=projects/*/locations/*/teamFolders/*}\022\306\001\n" + + "\020CreateTeamFolder\0221.google.cloud.dataform.v1.CreateTeamFolderRequest\032$.goo" + + "gle.cloud.dataform.v1.TeamFolder\"Y\332A\022par" + + "ent,team_folder\202\323\344\223\002>\"//v1/{parent=proje" + + "cts/*/locations/*}/teamFolders:\013team_folder\022\327\001\n" + + "\020UpdateTeamFolder\0221.google.cloud.dataform.v1.UpdateTeamFolderRequest\032$.go" + + "ogle.cloud.dataform.v1.TeamFolder\"j\332A\027te" + + "am_folder,update_mask\202\323\344\223\002J2;/v1/{team_f" + + "older.name=projects/*/locations/*/teamFolders/*}:\013team_folder\022\235\001\n" + + "\020DeleteTeamFolder\0221.google.cloud.dataform.v1.DeleteTeam" + + "FolderRequest\032\026.google.protobuf.Empty\">\332" + + "A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/teamFolders/*}\022\365\001\n" + + "\024DeleteTeamFolderTree\0225.google.cloud.dataform.v1.Delete" + + "TeamFolderTreeRequest\032\035.google.longrunning.Operation\"\206\001\312A1\n" + "\025google.protobuf.Empty\022\030DeleteFolderTreeMetadata\332A\n" - + "name,force\202\323\344\223\002?\":/v1/{name=projects/*" - + "/locations/*/teamFolders/*}:deleteTree:\001*\022\352\001\n" - + "\027QueryTeamFolderContents\0228.google.cloud.dataform.v1.QueryTeamFolderContents" - + "Request\0329.google.cloud.dataform.v1.Query" - + "TeamFolderContentsResponse\"Z\332A\013team_fold" - + "er\202\323\344\223\002F\022D/v1/{team_folder=projects/*/lo" - + "cations/*/teamFolders/*}:queryContents\022\276\001\n" - + "\021SearchTeamFolders\0222.google.cloud.data" - + "form.v1.SearchTeamFoldersRequest\0323.google.cloud.dataform.v1.SearchTeamFoldersRes" - + "ponse\"@\202\323\344\223\002:\0228/v1/{location=projects/*/locations/*}/teamFolders:search\022\225\001\n" - + "\tGetFolder\022*.google.cloud.dataform.v1.GetFolderRequest\032" - + " .google.cloud.dataform.v1.Fol" - + "der\":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/folders/*}\022\254\001\n" + + "name,force" + + "\202\323\344\223\002?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\001*\022\352\001\n" + + "\027QueryTeamFolderContents\0228.google.cloud.datafor" + + "m.v1.QueryTeamFolderContentsRequest\0329.google.cloud.dataform.v1.QueryTeamFolderCo" + + "ntentsResponse\"Z\332A\013team_folder\202\323\344\223\002F\022D/v" + + "1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\022\276\001\n" + + "\021SearchTeamFolders\0222.google.cloud.dataform.v1.Sear" + + "chTeamFoldersRequest\0323.google.cloud.data" + + "form.v1.SearchTeamFoldersResponse\"@\202\323\344\223\002" + + ":\0228/v1/{location=projects/*/locations/*}/teamFolders:search\022\225\001\n" + + "\tGetFolder\022*.google.cloud.dataform.v1.GetFolderRequest\032 ." + + "google.cloud.dataform.v1.Folder\":\332A\004name" + + "\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/folders/*}\022\254\001\n" + "\014CreateFolder\022-.google.cloud.dataform.v1.CreateFolderRequest\032" + " .google.cloud.dataform.v1.Folder\"K\332A\r" - + "parent,folder\202\323\344\223\0025\"+/v1/{parent=p" - + "rojects/*/locations/*}/folders:\006folder\022\270\001\n" + + "parent" + + ",folder\202\323\344\223\0025\"+/v1/{parent=projects/*/locations/*}/folders:\006folder\022\270\001\n" + "\014UpdateFolder\022-.google.cloud.dataform.v1.UpdateFolderRequest\032" - + " .google.cloud.dataform.v1.Folder\"W\332A\022folder,update_mask\202" - + "\323\344\223\002<22/v1/{folder.name=projects/*/locations/*/folders/*}:\006folder\022\221\001\n" - + "\014DeleteFolder\022-.google.cloud.dataform.v1.DeleteFold" - + "erRequest\032\026.google.protobuf.Empty\":\332A\004na" - + "me\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/folders/*}\022\351\001\n" - + "\020DeleteFolderTree\0221.google.cloud.dataform.v1.DeleteFolderTreeRe" - + "quest\032\035.google.longrunning.Operation\"\202\001\312A1\n" + + " .google.cloud.dataform.v1.Fo" + + "lder\"W\332A\022folder,update_mask\202\323\344\223\002<22/v1/{" + + "folder.name=projects/*/locations/*/folders/*}:\006folder\022\221\001\n" + + "\014DeleteFolder\022-.google.cloud.dataform.v1.DeleteFolderRequest\032\026." + + "google.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v" + + "1/{name=projects/*/locations/*/folders/*}\022\351\001\n" + + "\020DeleteFolderTree\0221.google.cloud.da" + + "taform.v1.DeleteFolderTreeRequest\032\035.google.longrunning.Operation\"\202\001\312A1\n" + "\025google.protobuf.Empty\022\030DeleteFolderTreeMetadata\332A\n" - + "name,force\202\323\344\223\002;\"6/v1/{nam" - + "e=projects/*/locations/*/folders/*}:deleteTree:\001*\022\326\001\n" - + "\023QueryFolderContents\0224.google.cloud.dataform.v1.QueryFolderContents" - + "Request\0325.google.cloud.dataform.v1.Query" - + "FolderContentsResponse\"R\332A\006folder\202\323\344\223\002C\022" - + "A/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\022\330\001\n" - + "\025QueryUserRootContents\0226.google.cloud.dataform.v1." - + "QueryUserRootContentsRequest\0327.google.cloud.dataform.v1.QueryUserRootContentsRes" - + "ponse\"N\332A\010location\202\323\344\223\002=\022;/v1/{location=" - + "projects/*/locations/*}:queryUserRootContents\022\351\001\n\n" - + "MoveFolder\022+.google.cloud.data" - + "form.v1.MoveFolderRequest\032\035.google.longrunning.Operation\"\216\001\312A+\n" - + "\025google.protobuf.Empty\022\022MoveFolderMetadata\332A\"name,destina" - + "tion_containing_folder\202\323\344\223\0025\"0/v1/{name=" - + "projects/*/locations/*/folders/*}:move:\001*\022\274\001\n" - + "\020ListRepositories\0221.google.cloud.dataform.v1.ListRepositoriesRequest\0322.goog" - + "le.cloud.dataform.v1.ListRepositoriesRes" - + "ponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/repositories\022\246\001\n\r" - + "GetRepository\022..google.cloud.dataform.v1.Ge" - + "tRepositoryRequest\032$.google.cloud.datafo" - + "rm.v1.Repository\"?\332A\004name\202\323\344\223\0022\0220/v1/{na" - + "me=projects/*/locations/*/repositories/*}\022\323\001\n" - + "\020CreateRepository\0221.google.cloud.dataform.v1.CreateRepositoryRequest\032$.goog" - + "le.cloud.dataform.v1.Repository\"f\332A\037pare" - + "nt,repository,repository_id\202\323\344\223\002>\"0/v1/{" - + "parent=projects/*/locations/*}/repositories:\n" + + "name,force\202\323\344\223\002;\"6/v1/{name=projects/*" + + "/locations/*/folders/*}:deleteTree:\001*\022\326\001\n" + + "\023QueryFolderContents\0224.google.cloud.dat" + + "aform.v1.QueryFolderContentsRequest\0325.google.cloud.dataform.v1.QueryFolderConten" + + "tsResponse\"R\332A\006folder\202\323\344\223\002C\022A/v1/{folder" + + "=projects/*/locations/*/folders/*}:queryFolderContents\022\330\001\n" + + "\025QueryUserRootContents\0226.google.cloud.dataform.v1.QueryUserRoo" + + "tContentsRequest\0327.google.cloud.dataform" + + ".v1.QueryUserRootContentsResponse\"N\332A\010lo" + + "cation\202\323\344\223\002=\022;/v1/{location=projects/*/locations/*}:queryUserRootContents\022\351\001\n\n" + + "MoveFolder\022+.google.cloud.dataform.v1.Move" + + "FolderRequest\032\035.google.longrunning.Operation\"\216\001\312A+\n" + + "\025google.protobuf.Empty\022\022MoveFolderMetadata\332A\"name,destination_contain" + + "ing_folder\202\323\344\223\0025\"0/v1/{name=projects/*/locations/*/folders/*}:move:\001*\022\274\001\n" + + "\020ListRepositories\0221.google.cloud.dataform.v1.Li" + + "stRepositoriesRequest\0322.google.cloud.dat" + + "aform.v1.ListRepositoriesResponse\"A\332A\006pa" + + "rent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/repositories\022\246\001\n\r" + + "GetRepository\022..google.cloud.dataform.v1.GetRepositoryR" + + "equest\032$.google.cloud.dataform.v1.Reposi" + + "tory\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/repositories/*}\022\323\001\n" + + "\020CreateRepository\0221.google.cloud.dataform.v1.Cr" + + "eateRepositoryRequest\032$.google.cloud.dat" + + "aform.v1.Repository\"f\332A\037parent,repositor" + + "y,repository_id\202\323\344\223\002>\"0/v1/{parent=projects/*/locations/*}/repositories:\n" + "repository\022\325\001\n" - + "\020UpdateRepository\0221.google.cloud.dataform.v1.UpdateRepository" - + "Request\032$.google.cloud.dataform.v1.Repos" - + "itory\"h\332A\026repository,update_mask\202\323\344\223\002I2;" - + "/v1/{repository.name=projects/*/locations/*/repositories/*}:\n" + + "\020UpdateRepository\0221.google.cloud.dataform.v1.UpdateRepositoryRequest\032$.go" + + "ogle.cloud.dataform.v1.Repository\"h\332A\026re" + + "pository,update_mask\202\323\344\223\002I2;/v1/{reposit" + + "ory.name=projects/*/locations/*/repositories/*}:\n" + "repository\022\236\001\n" - + "\020DeleteRepository\0221.google.cloud.dataform.v1." - + "DeleteRepositoryRequest\032\026.google.protobu" - + "f.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/repositories/*}\022\372\001\n" - + "\016MoveRepository\022/.google.cloud.dataform.v1.M" - + "oveRepositoryRequest\032\035.google.longrunning.Operation\"\227\001\312A/\n" - + "\025google.protobuf.Empty\022\026MoveRepositoryMetadata\332A\"name,destinat" - + "ion_containing_folder\202\323\344\223\002:\"5/v1/{name=p" - + "rojects/*/locations/*/repositories/*}:move:\001*\022\322\001\n" - + "\027CommitRepositoryChanges\0228.google.cloud.dataform.v1.CommitRepositoryCha" - + "ngesRequest\0329.google.cloud.dataform.v1.C" - + "ommitRepositoryChangesResponse\"B\202\323\344\223\002<\"7" - + "/v1/{name=projects/*/locations/*/repositories/*}:commit:\001*\022\302\001\n" - + "\022ReadRepositoryFile\0223.google.cloud.dataform.v1.ReadReposit" - + "oryFileRequest\0324.google.cloud.dataform.v" - + "1.ReadRepositoryFileResponse\"A\202\323\344\223\002;\0229/v" - + "1/{name=projects/*/locations/*/repositories/*}:readFile\022\372\001\n" - + " QueryRepositoryDirectoryContents\022A.google.cloud.dataform.v1." - + "QueryRepositoryDirectoryContentsRequest\032B.google.cloud.dataform.v1.QueryReposito" - + "ryDirectoryContentsResponse\"O\202\323\344\223\002I\022G/v1" - + "/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\322\001\n" - + "\026FetchRepositoryHistory\0227.google.cloud.dataform." - + "v1.FetchRepositoryHistoryRequest\0328.google.cloud.dataform.v1.FetchRepositoryHisto" - + "ryResponse\"E\202\323\344\223\002?\022=/v1/{name=projects/*" - + "/locations/*/repositories/*}:fetchHistory\022\202\002\n" - + "\"ComputeRepositoryAccessTokenStatus\022C.google.cloud.dataform.v1.ComputeRepos" - + "itoryAccessTokenStatusRequest\032D.google.cloud.dataform.v1.ComputeRepositoryAccess" - + "TokenStatusResponse\"Q\202\323\344\223\002K\022I/v1/{name=p" - + "rojects/*/locations/*/repositories/*}:computeAccessTokenStatus\022\320\001\n" - + "\023FetchRemoteBranches\0224.google.cloud.dataform.v1.FetchR" - + "emoteBranchesRequest\0325.google.cloud.data" - + "form.v1.FetchRemoteBranchesResponse\"L\202\323\344" - + "\223\002F\022D/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\022\303\001\n" - + "\016ListWorkspaces\022/.google.cloud.dataform.v1." - + "ListWorkspacesRequest\0320.google.cloud.dat" - + "aform.v1.ListWorkspacesResponse\"N\332A\006pare" - + "nt\202\323\344\223\002?\022=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\022\260\001\n" - + "\014GetWorkspace\022-.google.cloud.dataform.v1.GetW" - + "orkspaceRequest\032#.google.cloud.dataform." - + "v1.Workspace\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}\022\332\001\n" - + "\017CreateWorkspace\0220.google.cloud.dataform.v1.CreateWorkspaceRequest" - + "\032#.google.cloud.dataform.v1.Workspace\"p\332" - + "A\035parent,workspace,workspace_id\202\323\344\223\002J\"=/" - + "v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\022\251\001\n" - + "\017DeleteWorkspace\0220.google.cloud.dataform.v1.D" - + "eleteWorkspaceRequest\032\026.google.protobuf." - + "Empty\"L\332A\004name\202\323\344\223\002?*=/v1/{name=projects" - + "/*/locations/*/repositories/*/workspaces/*}\022\341\001\n" - + "\022InstallNpmPackages\0223.google.cloud.dataform.v1.InstallNpmPackagesRequest\032" - + "4.google.cloud.dataform.v1.InstallNpmPac" - + "kagesResponse\"`\202\323\344\223\002Z\"U/v1/{workspace=pr" - + "ojects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\001*\022\302\001\n" - + "\016PullGitCommits\022/.google.cloud.dataform.v1.Pu" - + "llGitCommitsRequest\0320.google.cloud.dataf" - + "orm.v1.PullGitCommitsResponse\"M\202\323\344\223\002G\"B/" - + "v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\001*\022\302\001\n" - + "\016PushGitCommits\022/.google.cloud.dataform.v1.PushG" - + "itCommitsRequest\0320.google.cloud.dataform" - + ".v1.PushGitCommitsResponse\"M\202\323\344\223\002G\"B/v1/" - + "{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\001*\022\341\001\n" - + "\024FetchFileGitStatuses\0225.google.cloud.dataform.v1.Fe" - + "tchFileGitStatusesRequest\0326.google.cloud.dataform.v1.FetchFileGitStatusesRespons" - + "e\"Z\202\323\344\223\002T\022R/v1/{name=projects/*/location" - + "s/*/repositories/*/workspaces/*}:fetchFileGitStatuses\022\335\001\n" - + "\023FetchGitAheadBehind\0224.google.cloud.dataform.v1.FetchGitAheadBe" - + "hindRequest\0325.google.cloud.dataform.v1.F" - + "etchGitAheadBehindResponse\"Y\202\323\344\223\002S\022Q/v1/" - + "{name=projects/*/locations/*/repositorie" - + "s/*/workspaces/*}:fetchGitAheadBehind\022\334\001\n" - + "\026CommitWorkspaceChanges\0227.google.cloud.dataform.v1.CommitWorkspaceChangesReques" - + "t\0328.google.cloud.dataform.v1.CommitWorks" - + "paceChangesResponse\"O\202\323\344\223\002I\"D/v1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}:commit:\001*\022\330\001\n" - + "\025ResetWorkspaceChanges\0226.google.cloud.dataform.v1.ResetW" - + "orkspaceChangesRequest\0327.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"" - + "N\202\323\344\223\002H\"C/v1/{name=projects/*/locations/" - + "*/repositories/*/workspaces/*}:reset:\001*\022\312\001\n\r" - + "FetchFileDiff\022..google.cloud.dataform.v1.FetchFileDiffRequest\032/.google.cloud" - + ".dataform.v1.FetchFileDiffResponse\"X\202\323\344\223" - + "\002R\022P/v1/{workspace=projects/*/locations/" - + "*/repositories/*/workspaces/*}:fetchFileDiff\022\356\001\n" - + "\026QueryDirectoryContents\0227.google.cloud.dataform.v1.QueryDirectoryContent" - + "sRequest\0328.google.cloud.dataform.v1.Quer" - + "yDirectoryContentsResponse\"a\202\323\344\223\002[\022Y/v1/" - + "{workspace=projects/*/locations/*/reposi" - + "tories/*/workspaces/*}:queryDirectoryContents\022\302\001\n" - + "\013SearchFiles\022,.google.cloud.dataform.v1.SearchFilesRequest\032-.google.clo" - + "ud.dataform.v1.SearchFilesResponse\"V\202\323\344\223" - + "\002P\022N/v1/{workspace=projects/*/locations/" - + "*/repositories/*/workspaces/*}:searchFiles\022\315\001\n\r" - + "MakeDirectory\022..google.cloud.dataform.v1.MakeDirectoryRequest\032/.google.cl" - + "oud.dataform.v1.MakeDirectoryResponse\"[\202" - + "\323\344\223\002U\"P/v1/{workspace=projects/*/locatio" - + "ns/*/repositories/*/workspaces/*}:makeDirectory:\001*\022\325\001\n" - + "\017RemoveDirectory\0220.google.cloud.dataform.v1.RemoveDirectoryRequest" - + "\0321.google.cloud.dataform.v1.RemoveDirect" - + "oryResponse\"]\202\323\344\223\002W\"R/v1/{workspace=proj" - + "ects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\001*\022\315\001\n\r" - + "MoveDirectory\022..google.cloud.dataform.v1.MoveDire" - + "ctoryRequest\032/.google.cloud.dataform.v1." - + "MoveDirectoryResponse\"[\202\323\344\223\002U\"P/v1/{work" - + "space=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\001*\022\266\001\n" - + "\010ReadFile\022).google.cloud.dataform.v1.ReadF" - + "ileRequest\032*.google.cloud.dataform.v1.Re" - + "adFileResponse\"S\202\323\344\223\002M\022K/v1/{workspace=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}:readFile\022\301\001\n\n" - + "RemoveFile\022+.google.cloud.dataform.v1.RemoveFileRequest\032" - + ",.google.cloud.dataform.v1.RemoveFileRes" - + "ponse\"X\202\323\344\223\002R\"M/v1/{workspace=projects/*" - + "/locations/*/repositories/*/workspaces/*}:removeFile:\001*\022\271\001\n" - + "\010MoveFile\022).google.cloud.dataform.v1.MoveFileRequest\032*.google" - + ".cloud.dataform.v1.MoveFileResponse\"V\202\323\344" - + "\223\002P\"K/v1/{workspace=projects/*/locations" - + "/*/repositories/*/workspaces/*}:moveFile:\001*\022\275\001\n" - + "\tWriteFile\022*.google.cloud.dataform.v1.WriteFileRequest\032+.google.cloud.dat" - + "aform.v1.WriteFileResponse\"W\202\323\344\223\002Q\"L/v1/" - + "{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\001*\022\323\001\n" - + "\022ListReleaseConfigs\0223.google.cloud.datafo" - + "rm.v1.ListReleaseConfigsRequest\0324.google.cloud.dataform.v1.ListReleaseConfigsRes" - + "ponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=proj" - + "ects/*/locations/*/repositories/*}/releaseConfigs\022\300\001\n" - + "\020GetReleaseConfig\0221.google.cloud.dataform.v1.GetReleaseConfigReques" - + "t\032\'.google.cloud.dataform.v1.ReleaseConf" - + "ig\"P\332A\004name\202\323\344\223\002C\022A/v1/{name=projects/*/" - + "locations/*/repositories/*/releaseConfigs/*}\022\372\001\n" - + "\023CreateReleaseConfig\0224.google.cloud.dataform.v1.CreateReleaseConfigReque" - + "st\032\'.google.cloud.dataform.v1.ReleaseCon" - + "fig\"\203\001\332A\'parent,release_config,release_c" - + "onfig_id\202\323\344\223\002S\"A/v1/{parent=projects/*/l" - + "ocations/*/repositories/*}/releaseConfigs:\016release_config\022\374\001\n" - + "\023UpdateReleaseConfig\0224.google.cloud.dataform.v1.UpdateRelea" - + "seConfigRequest\032\'.google.cloud.dataform." - + "v1.ReleaseConfig\"\205\001\332A\032release_config,upd" - + "ate_mask\202\323\344\223\002b2P/v1/{release_config.name" - + "=projects/*/locations/*/repositories/*/releaseConfigs/*}:\016release_config\022\265\001\n" - + "\023DeleteReleaseConfig\0224.google.cloud.dataform" - + ".v1.DeleteReleaseConfigRequest\032\026.google." - + "protobuf.Empty\"P\332A\004name\202\323\344\223\002C*A/v1/{name" - + "=projects/*/locations/*/repositories/*/releaseConfigs/*}\022\343\001\n" - + "\026ListCompilationResults\0227.google.cloud.dataform.v1.ListCompi" - + "lationResultsRequest\0328.google.cloud.dataform.v1.ListCompilationResultsResponse\"V" - + "\332A\006parent\202\323\344\223\002G\022E/v1/{parent=projects/*/" - + "locations/*/repositories/*}/compilationResults\022\320\001\n" - + "\024GetCompilationResult\0225.google.cloud.dataform.v1.GetCompilationResultR" - + "equest\032+.google.cloud.dataform.v1.Compil" - + "ationResult\"T\332A\004name\202\323\344\223\002G\022E/v1/{name=pr" - + "ojects/*/locations/*/repositories/*/compilationResults/*}\022\377\001\n" - + "\027CreateCompilationResult\0228.google.cloud.dataform.v1.CreateC" - + "ompilationResultRequest\032+.google.cloud.d" - + "ataform.v1.CompilationResult\"}\332A\031parent," - + "compilation_result\202\323\344\223\002[\"E/v1/{parent=pr" - + "ojects/*/locations/*/repositories/*}/compilationResults:\022compilation_result\022\306\002\n" - + "\"CreateCompilationResultLongRunning\0228.google.cloud.dataform.v1.CreateCompilationR" - + "esultRequest\032\035.google.longrunning.Operation\"\306\001\312A4\n" - + "\021CompilationResult\022\037CreateCompilationResultMetadata\332A\031parent,compilati" - + "on_result\202\323\344\223\002m\"W/v1/{parent=projects/*/" - + "locations/*/repositories/*}/compilationR" - + "esults:createLongRunning:\022compilation_result\022\365\001\n" - + "\035QueryCompilationResultActions\022>.google.cloud.dataform.v1.QueryCompilati" - + "onResultActionsRequest\032?.google.cloud.dataform.v1.QueryCompilationResultActionsR" - + "esponse\"S\202\323\344\223\002M\022K/v1/{name=projects/*/lo" - + "cations/*/repositories/*/compilationResults/*}:query\022\327\001\n" - + "\023ListWorkflowConfigs\0224.google.cloud.dataform.v1.ListWorkflowConf" - + "igsRequest\0325.google.cloud.dataform.v1.Li" - + "stWorkflowConfigsResponse\"S\332A\006parent\202\323\344\223" - + "\002D\022B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\022\304\001\n" - + "\021GetWorkflowConfig\0222.google.cloud.dataform.v1." - + "GetWorkflowConfigRequest\032(.google.cloud." - + "dataform.v1.WorkflowConfig\"Q\332A\004name\202\323\344\223\002" - + "D\022B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\022\201\002\n" - + "\024CreateWorkflowConfig\0225.google.cloud.dataform.v" - + "1.CreateWorkflowConfigRequest\032(.google.c" - + "loud.dataform.v1.WorkflowConfig\"\207\001\332A)par" - + "ent,workflow_config,workflow_config_id\202\323" - + "\344\223\002U\"B/v1/{parent=projects/*/locations/*" - + "/repositories/*}/workflowConfigs:\017workflow_config\022\203\002\n" - + "\024UpdateWorkflowConfig\0225.google.cloud.dataform.v1.UpdateWorkflowConf" - + "igRequest\032(.google.cloud.dataform.v1.Wor" - + "kflowConfig\"\211\001\332A\033workflow_config,update_", - "mask\202\323\344\223\002e2R/v1/{workflow_config.name=pr" - + "ojects/*/locations/*/repositories/*/work" - + "flowConfigs/*}:\017workflow_config\022\270\001\n\024Dele" - + "teWorkflowConfig\0225.google.cloud.dataform" - + ".v1.DeleteWorkflowConfigRequest\032\026.google" - + ".protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1/{nam" - + "e=projects/*/locations/*/repositories/*/" - + "workflowConfigs/*}\022\347\001\n\027ListWorkflowInvoc" - + "ations\0228.google.cloud.dataform.v1.ListWo" - + "rkflowInvocationsRequest\0329.google.cloud." - + "dataform.v1.ListWorkflowInvocationsRespo" - + "nse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=projec" - + "ts/*/locations/*/repositories/*}/workflo" - + "wInvocations\022\324\001\n\025GetWorkflowInvocation\0226" - + ".google.cloud.dataform.v1.GetWorkflowInv" - + "ocationRequest\032,.google.cloud.dataform.v" - + "1.WorkflowInvocation\"U\332A\004name\202\323\344\223\002H\022F/v1" - + "/{name=projects/*/locations/*/repositori" - + "es/*/workflowInvocations/*}\022\206\002\n\030CreateWo" - + "rkflowInvocation\0229.google.cloud.dataform" - + ".v1.CreateWorkflowInvocationRequest\032,.go" - + "ogle.cloud.dataform.v1.WorkflowInvocatio" - + "n\"\200\001\332A\032parent,workflow_invocation\202\323\344\223\002]\"" - + "F/v1/{parent=projects/*/locations/*/repo" - + "sitories/*}/workflowInvocations:\023workflo" - + "w_invocation\022\304\001\n\030DeleteWorkflowInvocatio" - + "n\0229.google.cloud.dataform.v1.DeleteWorkf" - + "lowInvocationRequest\032\026.google.protobuf.E" - + "mpty\"U\332A\004name\202\323\344\223\002H*F/v1/{name=projects/" - + "*/locations/*/repositories/*/workflowInv" - + "ocations/*}\022\353\001\n\030CancelWorkflowInvocation" - + "\0229.google.cloud.dataform.v1.CancelWorkfl" - + "owInvocationRequest\032:.google.cloud.dataf" - + "orm.v1.CancelWorkflowInvocationResponse\"" - + "X\202\323\344\223\002R\"M/v1/{name=projects/*/locations/" - + "*/repositories/*/workflowInvocations/*}:" - + "cancel:\001*\022\371\001\n\036QueryWorkflowInvocationAct" - + "ions\022?.google.cloud.dataform.v1.QueryWor" - + "kflowInvocationActionsRequest\032@.google.c" - + "loud.dataform.v1.QueryWorkflowInvocation" - + "ActionsResponse\"T\202\323\344\223\002N\022L/v1/{name=proje" - + "cts/*/locations/*/repositories/*/workflo" - + "wInvocations/*}:query\022\222\001\n\tGetConfig\022*.go" - + "ogle.cloud.dataform.v1.GetConfigRequest\032" - + " .google.cloud.dataform.v1.Config\"7\332A\004na" - + "me\202\323\344\223\002*\022(/v1/{name=projects/*/locations" - + "/*/config}\022\265\001\n\014UpdateConfig\022-.google.clo" - + "ud.dataform.v1.UpdateConfigRequest\032 .goo" - + "gle.cloud.dataform.v1.Config\"T\332A\022config," - + "update_mask\202\323\344\223\00292//v1/{config.name=proj" - + "ects/*/locations/*/config}:\006config\022\367\002\n\014G" - + "etIamPolicy\022\".google.iam.v1.GetIamPolicy" - + "Request\032\025.google.iam.v1.Policy\"\253\002\332A\010reso" - + "urce\202\323\344\223\002\231\002\022A/v1/{resource=projects/*/lo" - + "cations/*/repositories/*}:getIamPolicyZP" - + "\022N/v1/{resource=projects/*/locations/*/r" - + "epositories/*/workspaces/*}:getIamPolicy" - + "Z>\022.google.cloud.dataform.v1.QueryCompilationResult" + + "ActionsRequest\032?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"" + + "S\202\323\344\223\002M\022K/v1/{name=projects/*/locations/" + + "*/repositories/*/compilationResults/*}:query\022\327\001\n" + + "\023ListWorkflowConfigs\0224.google.cloud.dataform.v1.ListWorkflowConfigsReque" + + "st\0325.google.cloud.dataform.v1.ListWorkfl" + + "owConfigsResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1/" + + "{parent=projects/*/locations/*/repositor", + "ies/*}/workflowConfigs\022\304\001\n\021GetWorkflowCo" + + "nfig\0222.google.cloud.dataform.v1.GetWorkf" + + "lowConfigRequest\032(.google.cloud.dataform" + + ".v1.WorkflowConfig\"Q\332A\004name\202\323\344\223\002D\022B/v1/{" + + "name=projects/*/locations/*/repositories" + + "/*/workflowConfigs/*}\022\201\002\n\024CreateWorkflow" + + "Config\0225.google.cloud.dataform.v1.Create" + + "WorkflowConfigRequest\032(.google.cloud.dat" + + "aform.v1.WorkflowConfig\"\207\001\332A)parent,work" + + "flow_config,workflow_config_id\202\323\344\223\002U\"B/v" + + "1/{parent=projects/*/locations/*/reposit" + + "ories/*}/workflowConfigs:\017workflow_confi" + + "g\022\203\002\n\024UpdateWorkflowConfig\0225.google.clou" + + "d.dataform.v1.UpdateWorkflowConfigReques" + + "t\032(.google.cloud.dataform.v1.WorkflowCon" + + "fig\"\211\001\332A\033workflow_config,update_mask\202\323\344\223" + + "\002e2R/v1/{workflow_config.name=projects/*" + + "/locations/*/repositories/*/workflowConf" + + "igs/*}:\017workflow_config\022\270\001\n\024DeleteWorkfl" + + "owConfig\0225.google.cloud.dataform.v1.Dele" + + "teWorkflowConfigRequest\032\026.google.protobu" + + "f.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1/{name=projec" + + "ts/*/locations/*/repositories/*/workflow" + + "Configs/*}\022\347\001\n\027ListWorkflowInvocations\0228" + + ".google.cloud.dataform.v1.ListWorkflowIn" + + "vocationsRequest\0329.google.cloud.dataform" + + ".v1.ListWorkflowInvocationsResponse\"W\332A\006" + + "parent\202\323\344\223\002H\022F/v1/{parent=projects/*/loc" + + "ations/*/repositories/*}/workflowInvocat" + + "ions\022\324\001\n\025GetWorkflowInvocation\0226.google." + + "cloud.dataform.v1.GetWorkflowInvocationR" + + "equest\032,.google.cloud.dataform.v1.Workfl" + + "owInvocation\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=p" + + "rojects/*/locations/*/repositories/*/wor" + + "kflowInvocations/*}\022\206\002\n\030CreateWorkflowIn" + + "vocation\0229.google.cloud.dataform.v1.Crea" + + "teWorkflowInvocationRequest\032,.google.clo" + + "ud.dataform.v1.WorkflowInvocation\"\200\001\332A\032p" + + "arent,workflow_invocation\202\323\344\223\002]\"F/v1/{pa" + + "rent=projects/*/locations/*/repositories" + + "/*}/workflowInvocations:\023workflow_invoca" + + "tion\022\304\001\n\030DeleteWorkflowInvocation\0229.goog" + + "le.cloud.dataform.v1.DeleteWorkflowInvoc" + + "ationRequest\032\026.google.protobuf.Empty\"U\332A" + + "\004name\202\323\344\223\002H*F/v1/{name=projects/*/locati" + + "ons/*/repositories/*/workflowInvocations" + + "/*}\022\353\001\n\030CancelWorkflowInvocation\0229.googl" + + "e.cloud.dataform.v1.CancelWorkflowInvoca" + + "tionRequest\032:.google.cloud.dataform.v1.C" + + "ancelWorkflowInvocationResponse\"X\202\323\344\223\002R\"" + + "M/v1/{name=projects/*/locations/*/reposi" + + "tories/*/workflowInvocations/*}:cancel:\001" + + "*\022\371\001\n\036QueryWorkflowInvocationActions\022?.g" + + "oogle.cloud.dataform.v1.QueryWorkflowInv" + + "ocationActionsRequest\032@.google.cloud.dat" + + "aform.v1.QueryWorkflowInvocationActionsR" + + "esponse\"T\202\323\344\223\002N\022L/v1/{name=projects/*/lo" + + "cations/*/repositories/*/workflowInvocat" + + "ions/*}:query\022\222\001\n\tGetConfig\022*.google.clo" + + "ud.dataform.v1.GetConfigRequest\032 .google" + + ".cloud.dataform.v1.Config\"7\332A\004name\202\323\344\223\002*" + + "\022(/v1/{name=projects/*/locations/*/confi" + + "g}\022\265\001\n\014UpdateConfig\022-.google.cloud.dataf" + + "orm.v1.UpdateConfigRequest\032 .google.clou" + + "d.dataform.v1.Config\"T\332A\022config,update_m" + + "ask\202\323\344\223\00292//v1/{config.name=projects/*/l" + + "ocations/*/config}:\006config\022\367\002\n\014GetIamPol" + + "icy\022\".google.iam.v1.GetIamPolicyRequest\032" + + "\025.google.iam.v1.Policy\"\253\002\332A\010resource\202\323\344\223" + + "\002\231\002\022A/v1/{resource=projects/*/locations/" + + "*/repositories/*}:getIamPolicyZP\022N/v1/{r" + + "esource=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}:getIamPolicyZ>\022 * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=926 + * See google/cloud/dataform/v1/dataform.proto;l=940 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Deprecated @@ -342,7 +342,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=926 + * See google/cloud/dataform/v1/dataform.proto;l=940 * @return The tokenStatus. */ @java.lang.Deprecated @@ -1915,7 +1915,7 @@ public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=926 + * See google/cloud/dataform/v1/dataform.proto;l=940 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -1937,7 +1937,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=926 + * See google/cloud/dataform/v1/dataform.proto;l=940 * @return The tokenStatus. */ @java.lang.Override @@ -3329,7 +3329,7 @@ public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -3351,7 +3351,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ @@ -3376,7 +3376,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @return The tokenStatus. */ @java.lang.Override @@ -3404,7 +3404,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @param value The tokenStatus to set. * @return This builder for chaining. */ @@ -3433,7 +3433,7 @@ public Builder setTokenStatus( * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto index f626cad9b4dd..8ce71d1fe196 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto @@ -369,6 +369,20 @@ service Dataform { option (google.api.method_signature) = "parent,workspace,workspace_id"; } + // Creates a new Workspace in a given Repository asynchronously. + rpc CreateWorkspaceLongRunning(CreateWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning" + body: "workspace" + }; + option (google.api.method_signature) = "parent,workspace,workspace_id"; + option (google.longrunning.operation_info) = { + response_type: "Workspace" + metadata_type: "CreateWorkspaceMetadata" + }; + } + // Deletes a single Workspace. rpc DeleteWorkspace(DeleteWorkspaceRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -1518,6 +1532,46 @@ message CreateWorkspaceRequest { string workspace_id = 3 [(google.api.field_behavior) = REQUIRED]; } +// Represents the metadata of the `CreateWorkspaceLongRunning` operation. +message CreateWorkspaceMetadata { + // State of the LRO. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The LRO has been created. + CREATED = 1; + + // The LRO is in progress. + RUNNING = 2; + + // The RPC call has finished. + FINISHED = 3; + + // The LRO has succeeded. + SUCCEEDED = 4; + + // The LRO has failed. + FAILED = 5; + } + + // The unwrapped request. + oneof request { + // Output only. The CreateWorkspace requested. + CreateWorkspaceRequest create_workspace_request = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The ID of the LRO. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the LRO. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // `DeleteWorkspace` request message. message DeleteWorkspaceRequest { // Required. The workspace resource's name. diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java index b19823b4f34a..d57731580c02 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java @@ -208,7 +208,7 @@ public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The folderId. */ @java.lang.Override @@ -238,7 +238,7 @@ public java.lang.String getFolderId() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The bytes for folderId. */ @java.lang.Override @@ -986,7 +986,7 @@ public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The folderId. */ @java.lang.Deprecated @@ -1015,7 +1015,7 @@ public java.lang.String getFolderId() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The bytes for folderId. */ @java.lang.Deprecated @@ -1044,7 +1044,7 @@ public com.google.protobuf.ByteString getFolderIdBytes() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @param value The folderId to set. * @return This builder for chaining. */ @@ -1072,7 +1072,7 @@ public Builder setFolderId(java.lang.String value) { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1096,7 +1096,7 @@ public Builder clearFolderId() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @param value The bytes for folderId to set. * @return This builder for chaining. */ diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java index 0315e8e72b3b..e03f3c0d39a0 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateFolderRequestOrBuilder * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The folderId. */ @java.lang.Deprecated @@ -133,7 +133,7 @@ public interface CreateFolderRequestOrBuilder * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The bytes for folderId. */ @java.lang.Deprecated diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java index 25903c7edf84..b0ef428c67ce 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java @@ -208,7 +208,7 @@ public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuil * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. - * See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The teamFolderId. */ @java.lang.Override @@ -238,7 +238,7 @@ public java.lang.String getTeamFolderId() { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. - * See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The bytes for teamFolderId. */ @java.lang.Override @@ -988,7 +988,7 @@ public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuil * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The teamFolderId. */ @java.lang.Deprecated @@ -1017,7 +1017,7 @@ public java.lang.String getTeamFolderId() { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The bytes for teamFolderId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getTeamFolderIdBytes() { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @param value The teamFolderId to set. * @return This builder for chaining. */ @@ -1074,7 +1074,7 @@ public Builder setTeamFolderId(java.lang.String value) { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1098,7 +1098,7 @@ public Builder clearTeamFolderId() { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @param value The bytes for teamFolderId to set. * @return This builder for chaining. */ diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java index 98b528ae30af..e0bde33df3cf 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateTeamFolderRequestOrBuilder * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. - * See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The teamFolderId. */ @java.lang.Deprecated @@ -133,7 +133,7 @@ public interface CreateTeamFolderRequestOrBuilder * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. - * See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The bytes for teamFolderId. */ @java.lang.Deprecated diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadata.java new file mode 100644 index 000000000000..eec06002285b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadata.java @@ -0,0 +1,1624 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents the metadata of the `CreateWorkspaceLongRunning` operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateWorkspaceMetadata} + */ +@com.google.protobuf.Generated +public final class CreateWorkspaceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + CreateWorkspaceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateWorkspaceMetadata"); + } + + // Use CreateWorkspaceMetadata.newBuilder() to construct. + private CreateWorkspaceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateWorkspaceMetadata() { + id_ = ""; + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.class, + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.Builder.class); + } + + /** + * + * + *
+   * State of the LRO.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The LRO has been created.
+     * 
+ * + * CREATED = 1; + */ + CREATED(1), + /** + * + * + *
+     * The LRO is in progress.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The RPC call has finished.
+     * 
+ * + * FINISHED = 3; + */ + FINISHED(3), + /** + * + * + *
+     * The LRO has succeeded.
+     * 
+ * + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * + * + *
+     * The LRO has failed.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The LRO has been created.
+     * 
+ * + * CREATED = 1; + */ + public static final int CREATED_VALUE = 1; + + /** + * + * + *
+     * The LRO is in progress.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
+     * The RPC call has finished.
+     * 
+ * + * FINISHED = 3; + */ + public static final int FINISHED_VALUE = 3; + + /** + * + * + *
+     * The LRO has succeeded.
+     * 
+ * + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + /** + * + * + *
+     * The LRO has failed.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + + 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 CREATED; + case 2: + return RUNNING; + case 3: + return FINISHED; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + 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.dataform.v1beta1.CreateWorkspaceMetadata.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.dataform.v1beta1.CreateWorkspaceMetadata.State) + } + + private int requestCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object request_; + + public enum RequestCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE_WORKSPACE_REQUEST(4), + REQUEST_NOT_SET(0); + private final int value; + + private RequestCase(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 RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 4: + return CREATE_WORKSPACE_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public static final int CREATE_WORKSPACE_REQUEST_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + @java.lang.Override + public boolean hasCreateWorkspaceRequest() { + return requestCase_ == 4; + } + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest getCreateWorkspaceRequest() { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder() { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object 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(); + target_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.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 LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State getState() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State result = + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.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(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (requestCase_ == 4) { + output.writeMessage(4, (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_); + } + 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(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (requestCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_); + } + 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.dataform.v1beta1.CreateWorkspaceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata other = + (com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) obj; + + if (!getId().equals(other.getId())) return false; + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 4: + if (!getCreateWorkspaceRequest().equals(other.getCreateWorkspaceRequest())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (requestCase_) { + case 4: + hash = (37 * hash) + CREATE_WORKSPACE_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getCreateWorkspaceRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata 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.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata 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.dataform.v1beta1.CreateWorkspaceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata 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.dataform.v1beta1.CreateWorkspaceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata 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.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata 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.dataform.v1beta1.CreateWorkspaceMetadata 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 metadata of the `CreateWorkspaceLongRunning` operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateWorkspaceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.class, + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (createWorkspaceRequestBuilder_ != null) { + createWorkspaceRequestBuilder_.clear(); + } + id_ = ""; + target_ = ""; + state_ = 0; + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata build() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata result = + new com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 4 && createWorkspaceRequestBuilder_ != null) { + result.request_ = createWorkspaceRequestBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata other) { + if (other == com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getRequestCase()) { + case CREATE_WORKSPACE_REQUEST: + { + mergeCreateWorkspaceRequest(other.getCreateWorkspaceRequest()); + break; + } + case REQUEST_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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetCreateWorkspaceRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 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 requestCase_ = 0; + private java.lang.Object request_; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder> + createWorkspaceRequestBuilder_; + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + @java.lang.Override + public boolean hasCreateWorkspaceRequest() { + return requestCase_ == 4; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest getCreateWorkspaceRequest() { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } else { + if (requestCase_ == 4) { + return createWorkspaceRequestBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateWorkspaceRequest( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest value) { + if (createWorkspaceRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + createWorkspaceRequestBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateWorkspaceRequest( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder builderForValue) { + if (createWorkspaceRequestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + createWorkspaceRequestBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateWorkspaceRequest( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest value) { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4 + && request_ + != com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance()) { + request_ = + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.newBuilder( + (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 4) { + createWorkspaceRequestBuilder_.mergeFrom(value); + } else { + createWorkspaceRequestBuilder_.setMessage(value); + } + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateWorkspaceRequest() { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + createWorkspaceRequestBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder + getCreateWorkspaceRequestBuilder() { + return internalGetCreateWorkspaceRequestFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder() { + if ((requestCase_ == 4) && (createWorkspaceRequestBuilder_ != null)) { + return createWorkspaceRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder> + internalGetCreateWorkspaceRequestFieldBuilder() { + if (createWorkspaceRequestBuilder_ == null) { + if (!(requestCase_ == 4)) { + request_ = com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + createWorkspaceRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder>( + (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 4; + onChanged(); + return createWorkspaceRequestBuilder_; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.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 LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State getState() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State result = + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + private static final com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkspaceMetadata 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.dataform.v1beta1.CreateWorkspaceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadataOrBuilder.java new file mode 100644 index 000000000000..c3763be5fdf3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadataOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface CreateWorkspaceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + boolean hasCreateWorkspaceRequest(); + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest getCreateWorkspaceRequest(); + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder(); + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State getState(); + + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.RequestCase getRequestCase(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java index 1018db6079ce..7d39b4d82007 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java @@ -204,6 +204,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1106,7 +1110,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"dataform.googleapis.com/Repository\022A\n" + "\tworkspace\030\002" + " \001(\0132(.google.cloud.dataform.v1beta1.WorkspaceB\004\342A\001\002\022\032\n" - + "\014workspace_id\030\003 \001(\tB\004\342A\001\002\"R\n" + + "\014workspace_id\030\003 \001(\tB\004\342A\001\002\"\343\002\n" + + "\027CreateWorkspaceMetadata\022_\n" + + "\030create_workspace_request\030\004 \001(\01325.go" + + "ogle.cloud.dataform.v1beta1.CreateWorkspaceRequestB\004\342A\001\003H\000\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\003\022\024\n" + + "\006target\030\002 \001(\tB\004\342A\001\003\022Q\n" + + "\005state\030\003 \001(\0162<.goog" + + "le.cloud.dataform.v1beta1.CreateWorkspaceMetadata.StateB\004\342A\001\003\"a\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007CREATED\020\001\022\013\n" + + "\007RUNNING\020\002\022\014\n" + + "\010FINISHED\020\003\022\r\n" + + "\tSUCCEEDED\020\004\022\n\n" + + "\006FAILED\020\005B\t\n" + + "\007request\"R\n" + "\026DeleteWorkspaceRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\"?\n" @@ -1124,7 +1143,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\024\n" + "\006branch\030\002 \001(\tB\004\342A\001\002\022\"\n" - + "\024create_if_not_exists\030\003 \001(\010B\004\342A\001\001\022\033\n\r" + + "\024create_if_not_exists\030\003 \001(\010B\004\342A\001\001\022\033\n" + + "\r" + "source_branch\030\004 \001(\tB\004\342A\001\001\"\214\001\n" + "\030SyncWorkspaceRefsRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" @@ -1147,12 +1167,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\"\202\003\n" + "\034FetchFileGitStatusesResponse\022s\n" - + "\030uncommitted_file_changes\030\001 \003(\0132Q.google.cloud.dataform.v1beta1.Fetch" - + "FileGitStatusesResponse.UncommittedFileChange\032\354\001\n" + + "\030uncommitted_file_changes\030\001 \003(\0132Q.google.cloud.dataform.v1beta1.FetchFi" + + "leGitStatusesResponse.UncommittedFileChange\032\354\001\n" + "\025UncommittedFileChange\022\014\n" + "\004path\030\001 \001(\t\022l\n" - + "\005state\030\002 \001(\0162W.google.cloud.data" - + "form.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\004\342A\001\003\"W\n" + + "\005state\030\002 \001(\0162W.google.cloud.datafo" + + "rm.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\004\342A\001\003\"W\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005ADDED\020\001\022\013\n" @@ -1210,8 +1230,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016DirectoryEntry\022\016\n" + "\004file\030\001 \001(\tH\000\022\023\n" + "\tdirectory\030\002 \001(\tH\000\022H\n" - + "\010metadata\030\003 \001(\013" - + "26.google.cloud.dataform.v1beta1.FilesystemEntryMetadataB\007\n" + + "\010metadata\030\003 \001(\01326" + + ".google.cloud.dataform.v1beta1.FilesystemEntryMetadataB\007\n" + "\005entry\"j\n" + "\027FilesystemEntryMetadata\022\030\n\n" + "size_bytes\030\001 \001(\003B\004\342A\001\003\0225\n" @@ -1230,8 +1250,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014SearchResult\022?\n" + "\004file\030\001" + " \001(\0132/.google.cloud.dataform.v1beta1.FileSearchResultH\000\022I\n" - + "\tdirectory\030\002 \001(\01324.g" - + "oogle.cloud.dataform.v1beta1.DirectorySearchResultH\000B\007\n" + + "\tdirectory\030\002 \001(\01324.goo" + + "gle.cloud.dataform.v1beta1.DirectorySearchResultH\000B\007\n" + "\005entry\" \n" + "\020FileSearchResult\022\014\n" + "\004path\030\001 \001(\t\"%\n" @@ -1280,8 +1300,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031InstallNpmPackagesRequest\022=\n" + "\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022L\n" - + "\017pipeline_config\030\003 \001(\0132-.google.clou" - + "d.dataform.v1beta1.PipelineConfigB\004\342A\001\001\"\034\n" + + "\017pipeline_config\030\003" + + " \001(\0132-.google.cloud.dataform.v1beta1.PipelineConfigB\004\342A\001\001\"\034\n" + "\032InstallNpmPackagesResponse\"\373\006\n\r" + "ReleaseConfig\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\033\n\r" @@ -1290,8 +1310,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01324.google.cloud.dataform.v1beta1.CodeCompilationConfigB\004\342A\001\001\022\033\n\r" + "cron_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n" + "\ttime_zone\030\007 \001(\tB\004\342A\001\001\022s\n" - + " recent_scheduled_release_records\030\005 \003(\0132C.google.cloud.dataform.v1beta1.Re" - + "leaseConfig.ScheduledReleaseRecordB\004\342A\001\003\022V\n" + + " recent_scheduled_release_records\030\005 " + + "\003(\0132C.google.cloud.dataform.v1beta1.Rele" + + "aseConfig.ScheduledReleaseRecordB\004\342A\001\003\022V\n" + "\032release_compilation_result\030\006 \001(\tB2\342A\001\001\372A+\n" + ")dataform.googleapis.com/CompilationResult\022\026\n" + "\010disabled\030\010 \001(\010B\004\342A\001\001\022$\n" @@ -1303,19 +1324,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014release_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\010\n" + "\006result:\255\001\352A\251\001\n" - + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{project}/location" - + "s/{location}/repositories/{repository}/r" - + "eleaseConfigs/{release_config}*\016releaseConfigs2\r" + + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{project}/locations/" + + "{location}/repositories/{repository}/rel" + + "easeConfigs/{release_config}*\016releaseConfigs2\r" + "releaseConfigB\024\n" + "\022_internal_metadata\"\213\001\n" + "\031ListReleaseConfigsRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" + + "\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\221\001\n" + "\032ListReleaseConfigsResponse\022E\n" - + "\017release_configs\030\001 \003(" - + "\0132,.google.cloud.dataform.v1beta1.ReleaseConfig\022\027\n" + + "\017release_configs\030\001 \003(\0132" + + ",.google.cloud.dataform.v1beta1.ReleaseConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"W\n" + "\027GetReleaseConfigRequest\022<\n" @@ -1342,39 +1364,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016release_config\030\007 \001(\tB.\342A\001\005\372A\'\n" + "%dataform.googleapis.com/ReleaseConfigH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022[\n" - + "\027code_compilation_config\030\004 \001" - + "(\01324.google.cloud.dataform.v1beta1.CodeCompilationConfigB\004\342A\001\005\022%\n" + + "\027code_compilation_config\030\004 \001(\013" + + "24.google.cloud.dataform.v1beta1.CodeCompilationConfigB\004\342A\001\005\022%\n" + "\027resolved_git_commit_sha\030\010 \001(\tB\004\342A\001\003\022#\n" + "\025dataform_core_version\030\005 \001(\tB\004\342A\001\003\022c\n" - + "\022compilation_errors\030\006 \003(\0132A.google.cloud.dataform.v1beta1.C" - + "ompilationResult.CompilationErrorB\004\342A\001\003\022W\n" - + "\025data_encryption_state\030\t \001(\01322.google." - + "cloud.dataform.v1beta1.DataEncryptionStateB\004\342A\001\003\0225\n" + + "\022compilation_errors\030\006" + + " \003(\0132A.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorB\004\342A\001\003\022W\n" + + "\025data_encryption_state\030\t \001(\01322.google.cl" + + "oud.dataform.v1beta1.DataEncryptionStateB\004\342A\001\003\0225\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022$\n" + "\021internal_metadata\030\013 \001(\tB\004\342A\001\003H\001\210\001\001\022_\n" - + "\031private_resource_metadata\030\014 \001(\01326.google.cloud.dataform" - + ".v1beta1.PrivateResourceMetadataB\004\342A\001\003\022l\n" + + "\031private_resource_metadata\030\014" + + " \001(\01326.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\004\342A\001\003\022l\n" + " gcs_repository_snapshot_metadata\030\r" - + " \001(\013" - + "2<.google.cloud.dataform.v1beta1.GcsRepositorySnapshotMetadataB\004\342A\001\003\032\226\001\n" + + " \001(\0132<" + + ".google.cloud.dataform.v1beta1.GcsRepositorySnapshotMetadataB\004\342A\001\003\032\226\001\n" + "\020CompilationError\022\025\n" + "\007message\030\001 \001(\tB\004\342A\001\003\022\023\n" + "\005stack\030\002 \001(\tB\004\342A\001\003\022\022\n" + "\004path\030\003 \001(\tB\004\342A\001\003\022B\n\r" + "action_target\030\004" + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\004\342A\001\003:\301\001\352A\275\001\n" - + ")dataform.googleapis.com/CompilationResult\022iproject" - + "s/{project}/locations/{location}/repositories/{repository}/compilationResults/{c" - + "ompilation_result}*\022compilationResults2\021compilationResultB\010\n" + + ")dataform.googleapis.com/CompilationResult\022iprojects/", + "{project}/locations/{location}/repositories/{repository}/compilationResults/{com" + + "pilation_result}*\022compilationResults2\021compilationResultB\010\n" + "\006sourceB\024\n" + "\022_internal_metadata\"\254\004\n" + "\025WorkflowTriggerConfig\022W\n" - + "\tcondition\030\001 \001(\0162>.google.cloud.dataform.v" - + "1beta1.WorkflowTriggerConfig.ConditionB\004\342A\001\001\022O\n" - + "\021workflow_triggers\030\002 \003(\0132..google" - + ".cloud.dataform.v1beta1.WorkflowTriggerB", - "\004\342A\001\002\022?\n" + + "\tcondition\030\001 \001(\0162>.google.cloud.dataform.v1b" + + "eta1.WorkflowTriggerConfig.ConditionB\004\342A\001\001\022O\n" + + "\021workflow_triggers\030\002 \003(\0132..google.c" + + "loud.dataform.v1beta1.WorkflowTriggerB\004\342A\001\002\022?\n" + "\026min_execution_duration\030\003" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\022:\n" + "\021max_wait_duration\030\004" @@ -1404,15 +1425,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016default_schema\030\002 \001(\tB\004\342A\001\001\022\036\n" + "\020default_location\030\010 \001(\tB\004\342A\001\001\022\036\n" + "\020assertion_schema\030\003 \001(\tB\004\342A\001\001\022R\n" - + "\004vars\030\004 \003(\0132>.go" - + "ogle.cloud.dataform.v1beta1.CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" + + "\004vars\030\004 \003(\0132>.goog" + + "le.cloud.dataform.v1beta1.CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" + "\017database_suffix\030\005 \001(\tB\004\342A\001\001\022\033\n\r" + "schema_suffix\030\006 \001(\tB\004\342A\001\001\022\032\n" + "\014table_prefix\030\007 \001(\tB\004\342A\001\001\022+\n" + "\035builtin_assertion_name_prefix\030\n" + " \001(\tB\004\342A\001\001\022e\n" - + " default_notebook_runtime_options\030\t \001(\013" - + "25.google.cloud.dataform.v1beta1.NotebookRuntimeOptionsB\004\342A\001\001\022L\n" + + " default_notebook_runtime_options\030\t \001(\01325" + + ".google.cloud.dataform.v1beta1.NotebookRuntimeOptionsB\004\342A\001\001\022L\n" + "\017pipeline_config\030\014" + " \001(\0132-.google.cloud.dataform.v1beta1.PipelineConfigB\004\342A\001\001\022\"\n" + "\017lineage_enabled\030\016 \001(\010B\004\342A\001\003H\000\210\001\001\032+\n" @@ -1428,15 +1449,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027repository_snapshot_uri\030\001 \001(\tB\004\342A\001\001\"\315\002\n" + "\026NotebookRuntimeOptions\022!\n" + "\021gcs_output_bucket\030\001 \001(\tB\004\342A\001\001H\000\022t\n" - + "#gcs_repository_snapshot_destination\030\003 \001(\0132?.google" - + ".cloud.dataform.v1beta1.GcsRepositorySnapshotDestinationB\004\342A\001\001H\001\022i\n" + + "#gcs_repository_snapshot_destination\030\003 \001(\0132?.google.c" + + "loud.dataform.v1beta1.GcsRepositorySnapshotDestinationB\004\342A\001\001H\001\022i\n" + "%ai_platform_notebook_runtime_template\030\002 \001(\tB:\342A\001\001\372A3\n" + "1aiplatform.googleapis.com/NotebookRuntimeTemplateB\020\n" + "\016execution_sinkB\035\n" + "\033repository_snapshot_storage\"\321\001\n" - + "\016PipelineConfig\022W\n\r" - + "pipeline_type\030\001 \001(\0162:.google.cloud.da" - + "taform.v1beta1.PipelineConfig.PipelineTypeB\004\342A\001\002\022\022\n" + + "\016PipelineConfig\022W\n" + + "\r" + + "pipeline_type\030\001 \001(\0162:.google.cloud.data" + + "form.v1beta1.PipelineConfig.PipelineTypeB\004\342A\001\002\022\022\n" + "\004path\030\002 \001(\tB\004\342A\001\002\"R\n" + "\014PipelineType\022\035\n" + "\031PIPELINE_TYPE_UNSPECIFIED\020\000\022\014\n" @@ -1461,15 +1483,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CreateCompilationResultRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022R\n" - + "\022compilation_result\030\002" - + " \001(\01320.google.cloud.dataform.v1beta1.CompilationResultB\004\342A\001\002\"\367\002\n" + + "\022compilation_result\030\002 " + + "\001(\01320.google.cloud.dataform.v1beta1.CompilationResultB\004\342A\001\002\"\367\002\n" + "\037CreateCompilationResultMetadata\022\020\n" + "\002id\030\001 \001(\tB\004\342A\001\003\022\024\n" + "\006target\030\002 \001(\tB\004\342A\001\003\022Y\n" - + "\005state\030\003 \001(\0162D.googl" - + "e.cloud.dataform.v1beta1.CreateCompilationResultMetadata.StateB\004\342A\001\003\022n\n" - + "!create_compilation_result_request\030\004 \001(\0132=.google" - + ".cloud.dataform.v1beta1.CreateCompilationResultRequestB\004\342A\001\003\"a\n" + + "\005state\030\003 \001(\0162D.google." + + "cloud.dataform.v1beta1.CreateCompilationResultMetadata.StateB\004\342A\001\003\022n\n" + + "!create_compilation_result_request\030\004 \001(\0132=.google.c" + + "loud.dataform.v1beta1.CreateCompilationResultRequestB\004\342A\001\003\"a\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007CREATED\020\001\022\013\n" @@ -1483,10 +1505,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\003 \001(\tB\004\342A\001\001\"\352\002\n" + "\022RelationDescriptor\022\023\n" + "\013description\030\001 \001(\t\022S\n" - + "\007columns\030\002 \003(\0132B.google.cloud.dataform" - + ".v1beta1.RelationDescriptor.ColumnDescriptor\022^\n" - + "\017bigquery_labels\030\003 \003(\0132E.google.c" - + "loud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + + "\007columns\030\002 \003(\0132B.google.cloud.dataform.v" + + "1beta1.RelationDescriptor.ColumnDescriptor\022^\n" + + "\017bigquery_labels\030\003 \003(\0132E.google.clo" + + "ud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + "\020ColumnDescriptor\022\014\n" + "\004path\030\001 \003(\t\022\023\n" + "\013description\030\002 \001(\t\022\034\n" @@ -1497,18 +1519,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CompilationResultAction\022S\n" + "\010relation\030\004" + " \001(\0132?.google.cloud.dataform.v1beta1.CompilationResultAction.RelationH\000\022W\n\n" - + "operations\030\005 \001(\0132A.google.cloud.dataform.v1" - + "beta1.CompilationResultAction.OperationsH\000\022U\n" - + "\tassertion\030\006 \001(\0132@.google.cloud.dat" - + "aform.v1beta1.CompilationResultAction.AssertionH\000\022Y\n" - + "\013declaration\030\007 \001(\0132B.google." - + "cloud.dataform.v1beta1.CompilationResultAction.DeclarationH\000\022S\n" - + "\010notebook\030\010 \001(\0132?" - + ".google.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\000\022b\n" - + "\020data_preparation\030\t \001(\0132F.google.cloud.dataform.v1be" - + "ta1.CompilationResultAction.DataPreparationH\000\022e\n" - + "\022bigquery_unit_test\030\013 \001(\0132G.goog" - + "le.cloud.dataform.v1beta1.CompilationResultAction.BigQueryUnitTestH\000\0225\n" + + "operations\030\005 \001(\0132A.google.cloud.dataform.v1be" + + "ta1.CompilationResultAction.OperationsH\000\022U\n" + + "\tassertion\030\006 \001(\0132@.google.cloud.dataf" + + "orm.v1beta1.CompilationResultAction.AssertionH\000\022Y\n" + + "\013declaration\030\007 \001(\0132B.google.cl" + + "oud.dataform.v1beta1.CompilationResultAction.DeclarationH\000\022S\n" + + "\010notebook\030\010 \001(\0132?.g" + + "oogle.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\000\022b\n" + + "\020data_preparation\030\t \001(\0132F.google.cloud.dataform.v1beta" + + "1.CompilationResultAction.DataPreparationH\000\022e\n" + + "\022bigquery_unit_test\030\013 \001(\0132G.google" + + ".cloud.dataform.v1beta1.CompilationResultAction.BigQueryUnitTestH\000\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022?\n" + "\020canonical_target\030\002" + " \001(\0132%.google.cloud.dataform.v1beta1.Target\022\021\n" @@ -1521,28 +1543,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022N\n" + "\023relation_descriptor\030\004" - + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022c\n" - + "\r" - + "relation_type\030\005 \001(\0162L.google.cloud.data" - + "form.v1beta1.CompilationResultAction.Relation.RelationType\022\024\n" + + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022c\n\r" + + "relation_type\030\005 \001(\0162L.google.cloud.datafo" + + "rm.v1beta1.CompilationResultAction.Relation.RelationType\022\024\n" + "\014select_query\030\006 \001(\t\022\026\n" + "\016pre_operations\030\007 \003(\t\022\027\n" + "\017post_operations\030\010 \003(\t\022x\n" - + "\030incremental_table_config\030\t \001(\0132V.google.cloud.dataform.v1beta1.Comp" - + "ilationResultAction.Relation.IncrementalTableConfig\022\034\n" + + "\030incremental_table_config\030\t \001(\0132V.google.cloud.dataform.v1beta1.Compil" + + "ationResultAction.Relation.IncrementalTableConfig\022\034\n" + "\024partition_expression\030\n" + " \001(\t\022\033\n" + "\023cluster_expressions\030\013 \003(\t\022!\n" + "\031partition_expiration_days\030\014 \001(\005\022 \n" + "\030require_partition_filter\030\r" + " \001(\010\022r\n" - + "\022additional_options\030\016 \003(\0132V.google.cloud.dataform.v1beta1." - + "CompilationResultAction.Relation.AdditionalOptionsEntry\022\030\n\n" + + "\022additional_options\030\016 \003(\0132V.google.cloud.dataform.v1beta1.Co" + + "mpilationResultAction.Relation.AdditionalOptionsEntry\022\030\n\n" + "connection\030\017 \001(\tB\004\342A\001\001\022g\n" - + "\014table_format\030\020 \001(\0162K.google.cloud.d" - + "ataform.v1beta1.CompilationResultAction.Relation.TableFormatB\004\342A\001\001\022e\n" - + "\013file_format\030\021 \001(\0162J.google.cloud.dataform.v1beta1." - + "CompilationResultAction.Relation.FileFormatB\004\342A\001\001\022\031\n" + + "\014table_format\030\020 \001(\0162K.google.cloud.dat" + + "aform.v1beta1.CompilationResultAction.Relation.TableFormatB\004\342A\001\001\022e\n" + + "\013file_format\030\021 \001(\0162J.google.cloud.dataform.v1beta1.Co" + + "mpilationResultAction.Relation.FileFormatB\004\342A\001\001\022\031\n" + "\013storage_uri\030\022 \001(\tB\004\342A\001\001\032\330\001\n" + "\026IncrementalTableConfig\022 \n" + "\030incremental_select_query\030\001 \001(\t\022\030\n" @@ -1571,8 +1592,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022N\n" - + "\023relation_descriptor\030\006" - + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022\017\n" + + "\023relation_descriptor\030\006 \001" + + "(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022\017\n" + "\007queries\030\004 \003(\t\022\022\n\n" + "has_output\030\005 \001(\010\032\222\002\n" + "\tAssertion\022A\n" @@ -1582,8 +1603,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022\024\n" + "\014select_query\030\004 \001(\t\022N\n" - + "\023relation_descriptor\030\006 \001(\01321" - + ".google.cloud.dataform.v1beta1.RelationDescriptor\032]\n" + + "\023relation_descriptor\030\006 \001(\01321.g" + + "oogle.cloud.dataform.v1beta1.RelationDescriptor\032]\n" + "\013Declaration\022N\n" + "\023relation_descriptor\030\001" + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\032\177\n" @@ -1595,18 +1616,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\t\032\300\004\n" + "\017DataPreparation\022\027\n\r" + "contents_yaml\030\005 \001(\tH\000\022l\n" - + "\014contents_sql\030\006 \001(\0132T.google.cloud.data" - + "form.v1beta1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022A\n" + + "\014contents_sql\030\006 \001(\0132T.google.cloud.datafo" + + "rm.v1beta1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022A\n" + "\022dependency_targets\030\001" + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\004 \003(\t\032\327\001\n\r" + "SqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022f\n" - + "\013error_table\030\002 \001(\0132Q.google.cloud.dat" - + "aform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\022O\n" - + "\004load\030\003 \001(\0132A" - + ".google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\032[\n\n" + + "\013error_table\030\002 \001(\0132Q.google.cloud.dataf" + + "orm.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\022O\n" + + "\004load\030\003 \001(\0132A.g" + + "oogle.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\032[\n\n" + "ErrorTable\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022\026\n" + "\016retention_days\030\002 \001(\005B\014\n\n" @@ -1620,14 +1641,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "test_query\030\005 \001(\t\022\035\n" + "\025expected_output_query\030\006 \001(\t\032\204\003\n\n" + "LoadConfig\022X\n" - + "\007replace\030\001 \001(\0132E." - + "google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022W\n" - + "\006append\030\002 \001(\0132E.google.cloud.dataform.v1beta1.C" - + "ompilationResultAction.SimpleLoadModeH\000\022]\n" - + "\007maximum\030\003 \001(\0132J.google.cloud.dataform" - + ".v1beta1.CompilationResultAction.IncrementalLoadModeH\000\022\\\n" - + "\006unique\030\004 \001(\0132J.google." - + "cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132E.go" + + "ogle.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022W\n" + + "\006append\030\002" + + " \001(\0132E.google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022]\n" + + "\007maximum\030\003 \001(\0132J.google.cloud.dataform.v" + + "1beta1.CompilationResultAction.IncrementalLoadModeH\000\022\\\n" + + "\006unique\030\004 \001(\0132J.google.cl" + + "oud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + "\004mode\032\020\n" + "\016SimpleLoadMode\032%\n" + "\023IncrementalLoadMode\022\016\n" @@ -1641,8 +1662,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"\234\001\n" + "%QueryCompilationResultActionsResponse\022Z\n" - + "\032compilation_result_actions\030\001 \003(\01326.googl" - + "e.cloud.dataform.v1beta1.CompilationResultAction\022\027\n" + + "\032compilation_result_actions\030\001 \003(\01326.google." + + "cloud.dataform.v1beta1.CompilationResultAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\237\010\n" + "\016WorkflowConfig\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022F\n" @@ -1652,9 +1673,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.dataform.v1beta1.InvocationConfigB\004\342A\001\001\022\033\n\r" + "cron_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n" + "\ttime_zone\030\007 \001(\tB\004\342A\001\001\022x\n" - + "\"recent_scheduled_execution_records\030\005" - + " \003(\0132F.google.cloud.dataform.v1beta1.Wor" - + "kflowConfig.ScheduledExecutionRecordB\004\342A\001\003\022\026\n" + + "\"recent_scheduled_execution_records\030\005 \003" + + "(\0132F.google.cloud.dataform.v1beta1.Workf" + + "lowConfig.ScheduledExecutionRecordB\004\342A\001\003\022\026\n" + "\010disabled\030\010 \001(\010B\004\342A\001\001\0225\n" + "\013create_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" @@ -1670,9 +1691,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016execution_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\010\n" + "\006result:\262\001\352A\256\001\n" - + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/loca" - + "tions/{location}/repositories/{repositor" - + "y}/workflowConfigs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locati" + + "ons/{location}/repositories/{repository}" + + "/workflowConfigs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + "\022_internal_metadata\"\372\007\n" + "\020InvocationConfig\022E\n" + "\020included_targets\030\001" @@ -1683,14 +1704,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(fully_refresh_incremental_tables_enabled\030\005" + " \001(\010B\004\342A\001\001\022\035\n" + "\017service_account\030\006 \001(\tB\004\342A\001\001\022o\n" - + "\024end_user_auth_config\030\007 \001(\0132K.google.cloud.d" - + "ataform.v1beta1.InvocationConfig.EndUserAuthenticationConfigB\004\342A\001\001\022`\n" - + "\016query_priority\030\t \001(\0162=.google.cloud.dataform.v1bet" - + "a1.InvocationConfig.QueryPriorityB\004\342A\001\001H\000\210\001\001\022+\n" + + "\024end_user_auth_config\030\007 \001(\0132K.google.cloud.dat" + + "aform.v1beta1.InvocationConfig.EndUserAuthenticationConfigB\004\342A\001\001\022`\n" + + "\016query_priority\030\t \001(\0162=.google.cloud.dataform.v1beta1" + + ".InvocationConfig.QueryPriorityB\004\342A\001\001H\000\210\001\001\022+\n" + "\030concurrent_actions_limit\030\n" + " \001(\005B\004\342A\001\001H\001\210\001\001\022[\n" - + "\016execution_mode\030\020 \001(\0162=.goog" - + "le.cloud.dataform.v1beta1.InvocationConfig.ExecutionModeB\004\342A\001\001\032\177\n" + + "\016execution_mode\030\020 \001(\0162=.google" + + ".cloud.dataform.v1beta1.InvocationConfig.ExecutionModeB\004\342A\001\001\032\177\n" + "\033EndUserAuthenticationConfig\022\030\n\n" + "user_email\030\002 \001(\tB\004\342A\001\003\022F\n" + "\014oauth_config\030\004" @@ -1712,8 +1733,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\224\001\n" + "\033ListWorkflowConfigsResponse\022G\n" - + "\020workflow_configs\030\001 \003(\0132-.goog" - + "le.cloud.dataform.v1beta1.WorkflowConfig\022\027\n" + + "\020workflow_configs\030\001 \003(\0132-.google" + + ".cloud.dataform.v1beta1.WorkflowConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"Y\n" + "\030GetWorkflowConfigRequest\022=\n" @@ -1739,10 +1760,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017workflow_config\030\006 \001(\tB/\342A\001\005\372A(\n" + "&dataform.googleapis.com/WorkflowConfigH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022P\n" - + "\021invocation_config\030\003 \001(\0132/.google.c" - + "loud.dataform.v1beta1.InvocationConfigB\004\342A\001\005\022L\n" - + "\005state\030\004 \001(\01627.google.cloud.dataf" - + "orm.v1beta1.WorkflowInvocation.StateB\004\342A\001\003\0226\n" + + "\021invocation_config\030\003 \001(\0132/.google.clo" + + "ud.dataform.v1beta1.InvocationConfigB\004\342A\001\005\022L\n" + + "\005state\030\004 \001(\01627.google.cloud.datafor" + + "m.v1beta1.WorkflowInvocation.StateB\004\342A\001\003\0226\n" + "\021invocation_timing\030\005" + " \001(\0132\025.google.type.IntervalB\004\342A\001\003\022W\n" + "\033resolved_compilation_result\030\007 \001(\tB2\342A\001\003\372A+\n" @@ -1751,10 +1772,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\004\342A\001\003\022$\n" + "\021internal_metadata\030\t \001(\tB\004\342A\001\003H\001\210\001\001\022_\n" + "\031private_resource_metadata\030\n" - + " \001(\01326.google.c" - + "loud.dataform.v1beta1.PrivateResourceMetadataB\004\342A\001\003\022L\n" - + "\017pipeline_config\030\013 \001(\0132-.g" - + "oogle.cloud.dataform.v1beta1.PipelineConfigB\004\342A\001\003\"d\n" + + " \001(\01326.google.clo" + + "ud.dataform.v1beta1.PrivateResourceMetadataB\004\342A\001\003\022L\n" + + "\017pipeline_config\030\013 \001(\0132-.goo" + + "gle.cloud.dataform.v1beta1.PipelineConfigB\004\342A\001\003\"d\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" @@ -1762,16 +1783,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003\022\n\n" + "\006FAILED\020\004\022\r\n" + "\tCANCELING\020\005:\306\001\352A\302\001\n" - + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{project}/locations/{locati" - + "on}/repositories/{repository}/workflowIn" - + "vocations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{project}/locations/{location" + + "}/repositories/{repository}/workflowInvo" + + "cations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + "\022compilation_sourceB\024\n" + "\022_internal_metadata\"\276\001\n" + "\036ListWorkflowInvocationsRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\240\001\n" @@ -1796,20 +1816,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\"\"\n" + " CancelWorkflowInvocationResponse\"\223\024\n" + "\030WorkflowInvocationAction\022g\n" - + "\017bigquery_action\030\006 \001(\0132F.google.cloud.dataform.v1beta1" - + ".WorkflowInvocationAction.BigQueryActionB\004\342A\001\003H\000\022g\n" - + "\017notebook_action\030\010 \001(\0132F.goog" - + "le.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookActionB\004\342A\001\003H\000\022v\n" - + "\027data_preparation_action\030\t \001(\0132M.google.clou" - + "d.dataform.v1beta1.WorkflowInvocationAction.DataPreparationActionB\004\342A\001\003H\000\022y\n" - + "\031bigquery_unit_test_action\030\014 \001(\0132N.google.cl" - + "oud.dataform.v1beta1.WorkflowInvocationAction.BigQueryUnitTestActionB\004\342A\001\003H\000\022;\n" + + "\017bigquery_action\030\006 \001(\0132F.google.cloud.dataform.v1beta1.W" + + "orkflowInvocationAction.BigQueryActionB\004\342A\001\003H\000\022g\n" + + "\017notebook_action\030\010 \001(\0132F.google" + + ".cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookActionB\004\342A\001\003H\000\022v\n" + + "\027data_preparation_action\030\t \001(\0132M.google.cloud." + + "dataform.v1beta1.WorkflowInvocationAction.DataPreparationActionB\004\342A\001\003H\000\022y\n" + + "\031bigquery_unit_test_action\030\014 \001(\0132N.google.clou" + + "d.dataform.v1beta1.WorkflowInvocationAction.BigQueryUnitTestActionB\004\342A\001\003H\000\022;\n" + "\006target\030\001" + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\004\342A\001\003\022E\n" - + "\020canonical_target\030\002 " - + "\001(\0132%.google.cloud.dataform.v1beta1.TargetB\004\342A\001\003\022R\n" - + "\005state\030\004 \001(\0162=.google.cloud.d" - + "ataform.v1beta1.WorkflowInvocationAction.StateB\004\342A\001\003\022\034\n" + + "\020canonical_target\030\002 \001(" + + "\0132%.google.cloud.dataform.v1beta1.TargetB\004\342A\001\003\022R\n" + + "\005state\030\004 \001(\0162=.google.cloud.dat" + + "aform.v1beta1.WorkflowInvocationAction.StateB\004\342A\001\003\022\034\n" + "\016failure_reason\030\007 \001(\tB\004\342A\001\003\0226\n" + "\021invocation_timing\030\005" + " \001(\0132\025.google.type.IntervalB\004\342A\001\003\022$\n" @@ -1822,32 +1842,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010contents\030\001 \001(\tB\004\342A\001\003\022\024\n" + "\006job_id\030\002 \001(\tB\004\342A\001\003\022\027\n" + "\tfile_path\030\003 \001(\tB\004\342A\001\003\032\254\t\n" - + "\025DataPreparationAction\022\035\n" - + "\r" + + "\025DataPreparationAction\022\035\n\r" + "contents_yaml\030\002 \001(\tB\004\342A\001\003H\000\022y\n" - + "\014contents_sql\030\006 \001(\0132a.google.cloud.dataform.v1bet" - + "a1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\033\n\r" + + "\014contents_sql\030\006 \001(\0132a.google.cloud.dataform.v1beta1" + + ".WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\033\n\r" + "generated_sql\030\003 \001(\tB\004\342A\001\003\022\024\n" + "\006job_id\030\004 \001(\tB\004\342A\001\003\032\216\002\n" + "\023ActionSqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022s\n" - + "\013error_table\030\002 \001(\0132^.google.cloud.da" - + "taform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\022s\n" - + "\013load_config\030\003 \001(\0132^.google.cloud.dataf" - + "orm.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\032a\n" + + "\013error_table\030\002 \001(\0132^.google.cloud.data" + + "form.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\022s\n" + + "\013load_config\030\003 \001(\0132^.google.cloud.datafor" + + "m.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\032a\n" + "\020ActionErrorTable\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022\026\n" + "\016retention_days\030\002 \001(\005\032\376\003\n" + "\020ActionLoadConfig\022u\n" - + "\007replace\030\001 \001(\0132b.google.cloud.dataform.v1b" - + "eta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022t\n" - + "\006append\030\002 \001(\0132b.google.cloud.dataform.v1bet" - + "a1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022z\n" - + "\007maximum\030\003 \001(\0132g.google.cloud.dataform.v1beta" - + "1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022y\n" - + "\006unique\030\004 \001(\0132g.google.cloud.dataform.v1b" - + "eta1.WorkflowInvocationAction.DataPrepar" - + "ationAction.ActionIncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132b.google.cloud.dataform.v1bet" + + "a1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022t\n" + + "\006append\030\002 \001(\0132b.google.cloud.dataform.v1beta1" + + ".WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022z\n" + + "\007maximum\030\003 \001(\0132g.google.cloud.dataform.v1beta1." + + "WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022y\n" + + "\006unique\030\004 \001(\0132g.google.cloud.dataform.v1bet" + + "a1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + "\004mode\032\026\n" + "\024ActionSimpleLoadMode\032+\n" + "\031ActionIncrementalLoadMode\022\016\n" @@ -1859,14 +1877,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027expected_results_job_id\030\003 \001(\tB\004\342A\001\003\022)\n" + "\033expected_results_sql_script\030\004 \001(\tB\004\342A\001\003\022#\n" + "\025total_processed_bytes\030\005 \001(\003B\004\342A\001\003\022 \n" - + "\022total_billed_bytes\030\006 \001(\003B\004\342A\001\003\"r\n" + + "\022tota", + "l_billed_bytes\030\006 \001(\003B\004\342A\001\003\"r\n" + "\005State\022\013\n" + "\007PENDING\020\000\022\013\n" + "\007RUNNING\020\001\022\013\n" + "\007SKIPPED\020\002\022\014\n" + "\010DISABLED\020\003\022\r\n" + "\tSUCCEEDED\020\004\022\r\n" - + "\tCANCELLED\020\005\022\n\n" + + "\tCANCELLED\020\005\022\n" + + "\n" + "\006FAILED\020\006\022\n\n" + "\006QUEUED\020\007B\010\n" + "\006actionB\024\n" @@ -1876,8 +1896,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\237\001\n" - + "&QueryWorkflowInvoca", - "tionActionsResponse\022\\\n" + + "&QueryWorkflowInvocationActionsResponse\022\\\n" + "\033workflow_invocation_actions\030\001" + " \003(\01327.google.cloud.dataform.v1beta1.WorkflowInvocationAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\210\002\n" @@ -1886,15 +1905,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024default_kms_key_name\030\002 \001(\tB*\342A\001\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022$\n" + "\021internal_metadata\030\007 \001(\tB\004\342A\001\003H\000\210\001\001:d\352Aa\n" - + "\036dataform.googleapis.com/Config\022." - + "projects/{project}/locations/{location}/config*\007configs2\006configB\024\n" + + "\036dataform.googleapis.com/Config\022.pr" + + "ojects/{project}/locations/{location}/config*\007configs2\006configB\024\n" + "\022_internal_metadata\"I\n" + "\020GetConfigRequest\0225\n" + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" + "\036dataform.googleapis.com/Config\"\211\001\n" + "\023UpdateConfigRequest\022;\n" - + "\006config\030\001 \001(\013" - + "2%.google.cloud.dataform.v1beta1.ConfigB\004\342A\001\002\0225\n" + + "\006config\030\001 \001(\0132%" + + ".google.cloud.dataform.v1beta1.ConfigB\004\342A\001\002\0225\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"\327\003\n" + "\006Folder\022\022\n" @@ -1908,15 +1927,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022$\n" + "\021internal_metadata\030\007 \001(\tB\004\342A\001\003H\000\210\001\001\022(\n" + "\025creator_iam_principal\030\010 \001(\tB\004\342A\001\003H\001\210\001\001:n\352Ak\n" - + "\036dataform.googleapis.com/Folder\0228projects/{project}/location" - + "s/{location}/folders/{folder}*\007folders2\006folderB\024\n" + + "\036dataform.googleapis.com/Folder\0228projects/{project}/locations/" + + "{location}/folders/{folder}*\007folders2\006folderB\024\n" + "\022_internal_metadataB\030\n" + "\026_creator_iam_principal\"\245\001\n" + "\023CreateFolderRequest\022:\n" + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + "!locations.googleapis.com/Location\022;\n" - + "\006folder\030\002 \001(\0132%.goo" - + "gle.cloud.dataform.v1beta1.FolderB\004\342A\001\002\022\025\n" + + "\006folder\030\002" + + " \001(\0132%.google.cloud.dataform.v1beta1.FolderB\004\342A\001\002\022\025\n" + "\tfolder_id\030\003 \001(\tB\002\030\001\"\236\001\n" + "\021MoveFolderRequest\0225\n" + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" @@ -1930,8 +1949,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023UpdateFolderRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022;\n" - + "\006folder\030\002 \001(\0132%.goog" - + "le.cloud.dataform.v1beta1.FolderB\004\342A\001\002\"L\n" + + "\006folder\030\002" + + " \001(\0132%.google.cloud.dataform.v1beta1.FolderB\004\342A\001\002\"L\n" + "\023DeleteFolderRequest\0225\n" + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" + "\036dataform.googleapis.com/Folder\"e\n" @@ -1949,8 +1968,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + "\006target\030\003 \001(\tB\004\342A\001\003\022R\n" - + "\005state\030\004 \001(\0162=.google.cloud.d" - + "ataform.v1beta1.DeleteFolderTreeMetadata.StateB\004\342A\001\003\022\036\n" + + "\005state\030\004 \001(\0162=.google.cloud.dat" + + "aform.v1beta1.DeleteFolderTreeMetadata.StateB\004\342A\001\003\022\036\n" + "\020percent_complete\030\005 \001(\005B\004\342A\001\003\"[\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" @@ -1966,12 +1985,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\262\002\n" + "\033QueryFolderContentsResponse\022_\n" - + "\007entries\030\001 \003(\0132N.google.cloud.dataform.v1be" - + "ta1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132N.google.cloud.dataform.v1beta" + + "1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\230\001\n" + "\023FolderContentsEntry\0227\n" - + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n" - + "\n" + + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" + "repository\030\002 \001(\0132).google.cloud.dataform.v1beta1.RepositoryH\000B\007\n" + "\005entry\"\275\001\n" + "\034QueryUserRootContentsRequest\022<\n" @@ -1982,8 +2000,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\262\002\n" + "\035QueryUserRootContentsResponse\022_\n" - + "\007entries\030\001 \003(\0132N.goo" - + "gle.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132N.googl" + + "e.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\226\001\n" + "\021RootContentsEntry\0227\n" + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" @@ -1999,16 +2017,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021internal_metadata\030\005 \001(\tB\004\342A\001\003H\000\210\001\001\022(\n" + "\025creator_iam_principal\030\006 \001(" + "\tB\004\342A\001\003H\001\210\001\001:\204\001\352A\200\001\n" - + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{" - + "project}/locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{pr" + + "oject}/locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + "teamFolderB\024\n" + "\022_internal_metadataB\030\n" + "\026_creator_iam_principal\"\267\001\n" + "\027CreateTeamFolderRequest\022:\n" + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + "!locations.googleapis.com/Location\022D\n" - + "\013team_folder\030\002 \001(\0132)." - + "google.cloud.dataform.v1beta1.TeamFolderB\004\342A\001\002\022\032\n" + + "\013team_folder\030\002 \001(\0132).go" + + "ogle.cloud.dataform.v1beta1.TeamFolderB\004\342A\001\002\022\032\n" + "\016team_folder_id\030\003 \001(\tB\002\030\001\"Q\n" + "\024GetTeamFolderRequest\0229\n" + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" @@ -2029,8 +2047,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\302\002\n" + "\037QueryTeamFolderContentsResponse\022g\n" - + "\007entries\030\001 \003(\0132V.google.cloud.dataform.v1beta1." - + "QueryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132V.google.cloud.dataform.v1beta1.Qu" + + "eryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\234\001\n" + "\027TeamFolderContentsEntry\0227\n" + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" @@ -2044,8 +2062,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\373\001\n" + "\031SearchTeamFoldersResponse\022`\n" - + "\007results\030\001 \003(\0132O.goo" - + "gle.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + + "\007results\030\001 \003(\0132O.googl" + + "e.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + "\017next_page_token\030\002 \001(\t\032c\n" + "\026TeamFolderSearchResult\022@\n" + "\013team_folder\030\002" @@ -2072,8 +2090,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + "\006target\030\003 \001(\tB\004\342A\001\003\022J\n" - + "\005state\030\004 \001(\0162;.goog" - + "le.cloud.dataform.v1beta1.MoveRepositoryMetadata.State\022\030\n" + + "\005state\030\004 \001(\0162;.google" + + ".cloud.dataform.v1beta1.MoveRepositoryMetadata.State\022\030\n" + "\020percent_complete\030\005 \001(\005\"Y\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" @@ -2087,8 +2105,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022;\n" + "\006target\030\003 \001(\tB+\342A\001\003\372A$\n" + "\"dataform.googleapis.com/Repository\022]\n" - + "\005state\030\004 \001(\0162H.goo" - + "gle.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.StateB\004\342A\001\003\022\036\n" + + "\005state\030\004 \001(\0162H.googl" + + "e.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.StateB\004\342A\001\003\022\036\n" + "\020percent_complete\030\005 \001(\005B\004\342A\001\003\022#\n" + "\025child_resources_count\030\006 \001(\003B\004\342A\001\003\022-\n" + "\037remaining_child_resources_count\030\007 \001(\003B\004\342A\001\003\"F\n" @@ -2100,8 +2118,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035FetchWorkspaceBranchesRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022_\n" - + "\006filter\030\002 \001(\0162I.google.cloud.dataform.v1bet" - + "a1.FetchWorkspaceBranchesRequest.BranchFilterB\004\342A\001\001\022\027\n" + + "\006filter\030\002 \001(\0162I.google.cloud.dataform.v1beta1" + + ".FetchWorkspaceBranchesRequest.BranchFilterB\004\342A\001\001\022\027\n" + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\004 \001(\tB\004\342A\001\001\"W\n" + "\014BranchFilter\022\035\n" @@ -2124,468 +2142,478 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025DirectoryContentsView\022\'\n" + "#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\020\000\022!\n" + "\035DIRECTORY_CONTENTS_VIEW_BASIC\020\001\022$\n" - + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\370\225\001\n" + + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\236\230\001\n" + "\010Dataform\022\264\001\n\r" - + "GetTeamFolder\0223.google.cloud.dataform.v1beta1.GetTeamFolderRequ" - + "est\032).google.cloud.dataform.v1beta1.Team" - + "Folder\"C\332A\004name\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\325\001\n" - + "\020CreateTeamFolder\0226.google.cloud.dataform" - + ".v1beta1.CreateTeamFolderRequest\032).googl" - + "e.cloud.dataform.v1beta1.TeamFolder\"^\332A\022" - + "parent,team_folder\202\323\344\223\002C\"4/v1beta1/{pare" - + "nt=projects/*/locations/*}/teamFolders:\013team_folder\022\346\001\n" - + "\020UpdateTeamFolder\0226.google.cloud.dataform.v1beta1.UpdateTeamFolde" - + "rRequest\032).google.cloud.dataform.v1beta1" - + ".TeamFolder\"o\332A\027team_folder,update_mask\202" - + "\323\344\223\002O2@/v1beta1/{team_folder.name=projec" - + "ts/*/locations/*/teamFolders/*}:\013team_folder\022\247\001\n" - + "\020DeleteTeamFolder\0226.google.cloud.dataform.v1beta1.DeleteTeamFolderReques" - + "t\032\026.google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026" - + "*4/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\377\001\n" - + "\024DeleteTeamFolderTree\022:.google.cloud.dataform.v1beta1.DeleteTe" - + "amFolderTreeRequest\032\035.google.longrunning.Operation\"\213\001\312A1\n" + + "GetTeamFolder\0223.google.cloud.dataform.v1beta1.GetTeamFolderReques" + + "t\032).google.cloud.dataform.v1beta1.TeamFo" + + "lder\"C\332A\004name\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\325\001\n" + + "\020CreateTeamFolder\0226.google.cloud.dataform.v" + + "1beta1.CreateTeamFolderRequest\032).google." + + "cloud.dataform.v1beta1.TeamFolder\"^\332A\022pa" + + "rent,team_folder\202\323\344\223\002C\"4/v1beta1/{parent" + + "=projects/*/locations/*}/teamFolders:\013team_folder\022\346\001\n" + + "\020UpdateTeamFolder\0226.google.cloud.dataform.v1beta1.UpdateTeamFolderR" + + "equest\032).google.cloud.dataform.v1beta1.T" + + "eamFolder\"o\332A\027team_folder,update_mask\202\323\344" + + "\223\002O2@/v1beta1/{team_folder.name=projects" + + "/*/locations/*/teamFolders/*}:\013team_folder\022\247\001\n" + + "\020DeleteTeamFolder\0226.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest\032" + + "\026.google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026*4" + + "/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\377\001\n" + + "\024DeleteTeamFolderTree\022:.google.cloud.dataform.v1beta1.DeleteTeam" + + "FolderTreeRequest\032\035.google.longrunning.Operation\"\213\001\312A1\n" + "\025google.protobuf.Empty\022\030DeleteFolderTreeMetadata\332A\n" - + "name,force\202\323" - + "\344\223\002D\"?/v1beta1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\001*\022\371\001\n" - + "\027QueryTeamFolderContents\022=.google.cloud.data" - + "form.v1beta1.QueryTeamFolderContentsRequest\032>.google.cloud.dataform.v1beta1.Quer" - + "yTeamFolderContentsResponse\"_\332A\013team_fol" - + "der\202\323\344\223\002K\022I/v1beta1/{team_folder=project" - + "s/*/locations/*/teamFolders/*}:queryContents\022\315\001\n" - + "\021SearchTeamFolders\0227.google.cloud.dataform.v1beta1.SearchTeamFoldersRequ" - + "est\0328.google.cloud.dataform.v1beta1.Sear" - + "chTeamFoldersResponse\"E\202\323\344\223\002?\022=/v1beta1/" - + "{location=projects/*/locations/*}/teamFolders:search\022\244\001\n" - + "\tGetFolder\022/.google.cloud.dataform.v1beta1.GetFolderRequest\032%.go" - + "ogle.cloud.dataform.v1beta1.Folder\"?\332A\004n" - + "ame\202\323\344\223\0022\0220/v1beta1/{name=projects/*/locations/*/folders/*}\022\273\001\n" - + "\014CreateFolder\0222.google.cloud.dataform.v1beta1.CreateFolde" - + "rRequest\032%.google.cloud.dataform.v1beta1.Folder\"P\332A\r" - + "parent,folder\202\323\344\223\002:\"0/v1beta" - + "1/{parent=projects/*/locations/*}/folders:\006folder\022\307\001\n" - + "\014UpdateFolder\0222.google.cloud.dataform.v1beta1.UpdateFolderRequest\032%" - + ".google.cloud.dataform.v1beta1.Folder\"\\\332" - + "A\022folder,update_mask\202\323\344\223\002A27/v1beta1/{fo" - + "lder.name=projects/*/locations/*/folders/*}:\006folder\022\233\001\n" - + "\014DeleteFolder\0222.google.cloud.dataform.v1beta1.DeleteFolderRequest" - + "\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223\0022*" - + "0/v1beta1/{name=projects/*/locations/*/folders/*}\022\363\001\n" - + "\020DeleteFolderTree\0226.google.cloud.dataform.v1beta1.DeleteFolderTreeR" - + "equest\032\035.google.longrunning.Operation\"\207\001\312A1\n" + + "name,force\202\323\344\223" + + "\002D\"?/v1beta1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\001*\022\371\001\n" + + "\027QueryTeamFolderContents\022=.google.cloud.datafo" + + "rm.v1beta1.QueryTeamFolderContentsRequest\032>.google.cloud.dataform.v1beta1.QueryT" + + "eamFolderContentsResponse\"_\332A\013team_folde" + + "r\202\323\344\223\002K\022I/v1beta1/{team_folder=projects/" + + "*/locations/*/teamFolders/*}:queryContents\022\315\001\n" + + "\021SearchTeamFolders\0227.google.cloud.dataform.v1beta1.SearchTeamFoldersReques" + + "t\0328.google.cloud.dataform.v1beta1.Search" + + "TeamFoldersResponse\"E\202\323\344\223\002?\022=/v1beta1/{l" + + "ocation=projects/*/locations/*}/teamFolders:search\022\244\001\n" + + "\tGetFolder\022/.google.cloud.dataform.v1beta1.GetFolderRequest\032%.goog" + + "le.cloud.dataform.v1beta1.Folder\"?\332A\004nam" + + "e\202\323\344\223\0022\0220/v1beta1/{name=projects/*/locations/*/folders/*}\022\273\001\n" + + "\014CreateFolder\0222.google.cloud.dataform.v1beta1.CreateFolderR" + + "equest\032%.google.cloud.dataform.v1beta1.Folder\"P\332A\r" + + "parent,folder\202\323\344\223\002:\"0/v1beta1/" + + "{parent=projects/*/locations/*}/folders:\006folder\022\307\001\n" + + "\014UpdateFolder\0222.google.cloud.dataform.v1beta1.UpdateFolderRequest\032%.g" + + "oogle.cloud.dataform.v1beta1.Folder\"\\\332A\022" + + "folder,update_mask\202\323\344\223\002A27/v1beta1/{fold" + + "er.name=projects/*/locations/*/folders/*}:\006folder\022\233\001\n" + + "\014DeleteFolder\0222.google.cloud.dataform.v1beta1.DeleteFolderRequest\032\026" + + ".google.protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/" + + "v1beta1/{name=projects/*/locations/*/folders/*}\022\363\001\n" + + "\020DeleteFolderTree\0226.google.cloud.dataform.v1beta1.DeleteFolderTreeReq" + + "uest\032\035.google.longrunning.Operation\"\207\001\312A1\n" + "\025google.protobuf.Empty\022\030DeleteFolderTreeMetadata\332A\n" - + "name,force\202\323\344\223\002@\";/v1beta" - + "1/{name=projects/*/locations/*/folders/*}:deleteTree:\001*\022\345\001\n" - + "\023QueryFolderContents\0229.google.cloud.dataform.v1beta1.QueryFol" - + "derContentsRequest\032:.google.cloud.dataform.v1beta1.QueryFolderContentsResponse\"W" - + "\332A\006folder\202\323\344\223\002H\022F/v1beta1/{folder=projec" - + "ts/*/locations/*/folders/*}:queryFolderContents\022\347\001\n" - + "\025QueryUserRootContents\022;.google.cloud.dataform.v1beta1.QueryUserRootC" - + "ontentsRequest\032<.google.cloud.dataform.v" - + "1beta1.QueryUserRootContentsResponse\"S\332A" - + "\010location\202\323\344\223\002B\022@/v1beta1/{location=proj" - + "ects/*/locations/*}:queryUserRootContents\022\363\001\n\n" - + "MoveFolder\0220.google.cloud.dataform" - + ".v1beta1.MoveFolderRequest\032\035.google.longrunning.Operation\"\223\001\312A+\n" - + "\025google.protobuf.Empty\022\022MoveFolderMetadata\332A\"name,destin" - + "ation_containing_folder\202\323\344\223\002:\"5/v1beta1/" - + "{name=projects/*/locations/*/folders/*}:move:\001*\022\313\001\n" - + "\020ListRepositories\0226.google.cloud.dataform.v1beta1.ListRepositoriesReq" - + "uest\0327.google.cloud.dataform.v1beta1.Lis" - + "tRepositoriesResponse\"F\332A\006parent\202\323\344\223\0027\0225" - + "/v1beta1/{parent=projects/*/locations/*}/repositories\022\265\001\n\r" - + "GetRepository\0223.google.cloud.dataform.v1beta1.GetRepositoryReq" - + "uest\032).google.cloud.dataform.v1beta1.Rep" - + "ository\"D\332A\004name\202\323\344\223\0027\0225/v1beta1/{name=p" - + "rojects/*/locations/*/repositories/*}\022\342\001\n" - + "\020CreateRepository\0226.google.cloud.datafo" - + "rm.v1beta1.CreateRepositoryRequest\032).goo" - + "gle.cloud.dataform.v1beta1.Repository\"k\332" - + "A\037parent,repository,repository_id\202\323\344\223\002C\"" - + "5/v1beta1/{parent=projects/*/locations/*}/repositories:\n" + + "name,force\202\323\344\223\002@\";/v1beta1/" + + "{name=projects/*/locations/*/folders/*}:deleteTree:\001*\022\345\001\n" + + "\023QueryFolderContents\0229.google.cloud.dataform.v1beta1.QueryFolde" + + "rContentsRequest\032:.google.cloud.dataform" + + ".v1beta1.QueryFolderContentsResponse\"W\332A" + + "\006folder\202\323\344\223\002H\022F/v1beta1/{folder=projects" + + "/*/locations/*/folders/*}:queryFolderContents\022\347\001\n" + + "\025QueryUserRootContents\022;.google.cloud.dataform.v1beta1.QueryUserRootCon" + + "tentsRequest\032<.google.cloud.dataform.v1b" + + "eta1.QueryUserRootContentsResponse\"S\332A\010l" + + "ocation\202\323\344\223\002B\022@/v1beta1/{location=projec" + + "ts/*/locations/*}:queryUserRootContents\022\363\001\n\n" + + "MoveFolder\0220.google.cloud.dataform.v" + + "1beta1.MoveFolderRequest\032\035.google.longrunning.Operation\"\223\001\312A+\n" + + "\025google.protobuf.Empty\022\022MoveFolderMetadata\332A\"name,destinat" + + "ion_containing_folder\202\323\344\223\002:\"5/v1beta1/{n" + + "ame=projects/*/locations/*/folders/*}:move:\001*\022\313\001\n" + + "\020ListRepositories\0226.google.cloud.dataform.v1beta1.ListRepositoriesReque" + + "st\0327.google.cloud.dataform.v1beta1.ListR" + + "epositoriesResponse\"F\332A\006parent\202\323\344\223\0027\0225/v" + + "1beta1/{parent=projects/*/locations/*}/repositories\022\265\001\n\r" + + "GetRepository\0223.google.cloud.dataform.v1beta1.GetRepositoryReque" + + "st\032).google.cloud.dataform.v1beta1.Repos" + + "itory\"D\332A\004name\202\323\344\223\0027\0225/v1beta1/{name=projects/*/locations/*/repositories/*}\022\342\001\n" + + "\020CreateRepository\0226.google.cloud.dataform" + + ".v1beta1.CreateRepositoryRequest\032).googl" + + "e.cloud.dataform.v1beta1.Repository\"k\332A\037" + + "parent,repository,repository_id\202\323\344\223\002C\"5/" + + "v1beta1/{parent=projects/*/locations/*}/repositories:\n" + "repository\022\344\001\n" - + "\020UpdateRepository\0226.google.cloud.dataform.v1beta1." - + "UpdateRepositoryRequest\032).google.cloud.d" - + "ataform.v1beta1.Repository\"m\332A\026repositor" - + "y,update_mask\202\323\344\223\002N2@/v1beta1/{repositor" - + "y.name=projects/*/locations/*/repositories/*}:\n" + + "\020UpdateRepository\0226.google.cloud.dataform.v1beta1.Up" + + "dateRepositoryRequest\032).google.cloud.dat" + + "aform.v1beta1.Repository\"m\332A\026repository," + + "update_mask\202\323\344\223\002N2@/v1beta1/{repository." + + "name=projects/*/locations/*/repositories/*}:\n" + "repository\022\250\001\n" - + "\020DeleteRepository\0226.google.cloud.dataform.v1beta1.DeleteRep" - + "ositoryRequest\032\026.google.protobuf.Empty\"D" - + "\332A\004name\202\323\344\223\0027*5/v1beta1/{name=projects/*/locations/*/repositories/*}\022\256\002\n" - + "\033DeleteRepositoryLongRunning\022A.google.cloud.data" - + "form.v1beta1.DeleteRepositoryLongRunning" - + "Request\032\035.google.longrunning.Operation\"\254\001\312AJ\n" + + "\020DeleteRepository\0226.google.cloud.dataform.v1beta1.DeleteRepos" + + "itoryRequest\032\026.google.protobuf.Empty\"D\332A" + + "\004name\202\323\344\223\0027*5/v1beta1/{name=projects/*/locations/*/repositories/*}\022\256\002\n" + + "\033DeleteRepositoryLongRunning\022A.google.cloud.datafo" + + "rm.v1beta1.DeleteRepositoryLongRunningRe" + + "quest\032\035.google.longrunning.Operation\"\254\001\312AJ\n" + "#DeleteRepositoryLongRunningResponse\022#DeleteRepositoryLongRunningMetadata\332A\n" - + "name,force\202\323\344\223\002L\"G/v1beta1/{name=projec" - + "ts/*/locations/*/repositories/*}:deleteLongRunning:\001*\022\204\002\n" - + "\016MoveRepository\0224.google.cloud.dataform.v1beta1.MoveRepositoryR" - + "equest\032\035.google.longrunning.Operation\"\234\001\312A/\n" - + "\025google.protobuf.Empty\022\026MoveReposito" - + "ryMetadata\332A\"name,destination_containing" - + "_folder\202\323\344\223\002?\":/v1beta1/{name=projects/*/locations/*/repositories/*}:move:\001*\022\341\001\n" - + "\027CommitRepositoryChanges\022=.google.cloud.dataform.v1beta1.CommitRepositoryChanges" - + "Request\032>.google.cloud.dataform.v1beta1." - + "CommitRepositoryChangesResponse\"G\202\323\344\223\002A\"" - + "/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile\022\211\002\n" - + " QueryRepositoryDirectoryContents\022F.google.cloud.dataform.v1beta1.QueryRepositor" - + "yDirectoryContentsRequest\032G.google.cloud.dataform.v1beta1.QueryRepositoryDirecto" - + "ryContentsResponse\"T\202\323\344\223\002N\022L/v1beta1/{na" - + "me=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\341\001\n" - + "\026FetchRepositoryHistory\022<.google.cloud.dataform.v1be" - + "ta1.FetchRepositoryHistoryRequest\032=.google.cloud.dataform.v1beta1.FetchRepositor" - + "yHistoryResponse\"J\202\323\344\223\002D\022B/v1beta1/{name" - + "=projects/*/locations/*/repositories/*}:fetchHistory\022\221\002\n" - + "\"ComputeRepositoryAccessTokenStatus\022H.google.cloud.dataform.v1be" - + "ta1.ComputeRepositoryAccessTokenStatusRequest\032I.google.cloud.dataform.v1beta1.Co" - + "mputeRepositoryAccessTokenStatusResponse" - + "\"V\202\323\344\223\002P\022N/v1beta1/{name=projects/*/loca" - + "tions/*/repositories/*}:computeAccessTokenStatus\022\337\001\n" - + "\023FetchRemoteBranches\0229.google.cloud.dataform.v1beta1.FetchRemoteBran" - + "chesRequest\032:.google.cloud.dataform.v1be" - + "ta1.FetchRemoteBranchesResponse\"Q\202\323\344\223\002K\022" - + "I/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\022\322\001\n" - + "\016ListWorkspaces\0224.google.cloud.dataform.v1" - + "beta1.ListWorkspacesRequest\0325.google.cloud.dataform.v1beta1.ListWorkspacesRespon" - + "se\"S\332A\006parent\202\323\344\223\002D\022B/v1beta1/{parent=pr" - + "ojects/*/locations/*/repositories/*}/workspaces\022\277\001\n" - + "\014GetWorkspace\0222.google.cloud.dataform.v1beta1.GetWorkspaceRequest\032(.g" - + "oogle.cloud.dataform.v1beta1.Workspace\"Q" - + "\332A\004name\202\323\344\223\002D\022B/v1beta1/{name=projects/*" - + "/locations/*/repositories/*/workspaces/*}\022\351\001\n" - + "\017CreateWorkspace\0225.google.cloud.dataform.v1beta1.CreateWorkspaceRequest\032(.g" - + "oogle.cloud.dataform.v1beta1.Workspace\"u" - + "\332A\035parent,workspace,workspace_id\202\323\344\223\002O\"B" - + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:" + + "name,force\202\323\344\223\002L\"G/v1beta1/{name=projects" + + "/*/locations/*/repositories/*}:deleteLongRunning:\001*\022\204\002\n" + + "\016MoveRepository\0224.google.cloud.dataform.v1beta1.MoveRepositoryReq" + + "uest\032\035.google.longrunning.Operation\"\234\001\312A/\n" + + "\025google.protobuf.Empty\022\026MoveRepository" + + "Metadata\332A\"name,destination_containing_f" + + "older\202\323\344\223\002?\":/v1beta1/{name=projects/*/locations/*/repositories/*}:move:\001*\022\341\001\n" + + "\027CommitRepositoryChanges\022=.google.cloud.da" + + "taform.v1beta1.CommitRepositoryChangesRequest\032>.google.cloud.dataform.v1beta1.Co" + + "mmitRepositoryChangesResponse\"G\202\323\344\223\002A\"/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile\022\211\002\n" + + " QueryRepositoryDirectoryContents\022F.google.cloud.dataform.v1beta1.QueryRepositoryD" + + "irectoryContentsRequest\032G.google.cloud.dataform.v1beta1.QueryRepositoryDirectory" + + "ContentsResponse\"T\202\323\344\223\002N\022L/v1beta1/{name" + + "=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\341\001\n" + + "\026FetchRepositoryHistory\022<.google.cloud.dataform.v1beta" + + "1.FetchRepositoryHistoryRequest\032=.google.cloud.dataform.v1beta1.FetchRepositoryH" + + "istoryResponse\"J\202\323\344\223\002D\022B/v1beta1/{name=p" + + "rojects/*/locations/*/repositories/*}:fetchHistory\022\221\002\n" + + "\"ComputeRepositoryAccessTokenStatus\022H.google.cloud.dataform.v1beta" + + "1.ComputeRepositoryAccessTokenStatusRequest\032I.google.cloud.dataform.v1beta1.Comp" + + "uteRepositoryAccessTokenStatusResponse\"V" + + "\202\323\344\223\002P\022N/v1beta1/{name=projects/*/locati" + + "ons/*/repositories/*}:computeAccessTokenStatus\022\337\001\n" + + "\023FetchRemoteBranches\0229.google.cloud.dataform.v1beta1.FetchRemoteBranch" + + "esRequest\032:.google.cloud.dataform.v1beta" + + "1.FetchRemoteBranchesResponse\"Q\202\323\344\223\002K\022I/" + + "v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\022\322\001\n" + + "\016ListWorkspaces\0224.google.cloud.dataform.v1be" + + "ta1.ListWorkspacesRequest\0325.google.cloud.dataform.v1beta1.ListWorkspacesResponse" + + "\"S\332A\006parent\202\323\344\223\002D\022B/v1beta1/{parent=proj" + + "ects/*/locations/*/repositories/*}/workspaces\022\277\001\n" + + "\014GetWorkspace\0222.google.cloud.dataform.v1beta1.GetWorkspaceRequest\032(.goo" + + "gle.cloud.dataform.v1beta1.Workspace\"Q\332A" + + "\004name\202\323\344\223\002D\022B/v1beta1/{name=projects/*/l" + + "ocations/*/repositories/*/workspaces/*}\022\351\001\n" + + "\017CreateWorkspace\0225.google.cloud.dataform.v1beta1.CreateWorkspaceRequest\032(.goo" + + "gle.cloud.dataform.v1beta1.Workspace\"u\332A" + + "\035parent,workspace,workspace_id\202\323\344\223\002O\"B/v" + + "1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:" + + "\tworkspace\022\243\002\n" + + "\032CreateWorkspaceLongRunning\0225.google.clou" + + "d.dataform.v1beta1.CreateWorkspaceRequest\032\035.google.longrunning.Operation\"\256\001\312A$\n" + + "\tWorkspace\022\027CreateWorkspaceMetadata\332A\035par" + + "ent,workspace,workspace_id\202\323\344\223\002a\"T/v1bet" + + "a1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning:" + "\tworkspace\022\263\001\n" - + "\017DeleteWorkspace\0225.google.cloud.datafor" - + "m.v1beta1.DeleteWorkspaceRequest\032\026.googl" - + "e.protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1beta" - + "1/{name=projects/*/locations/*/repositories/*/workspaces/*}\022\360\001\n" - + "\022InstallNpmPackages\0228.google.cloud.dataform.v1beta1.Insta" - + "llNpmPackagesRequest\0329.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse\"" - + "e\202\323\344\223\002_\"Z/v1beta1/{workspace=projects/*/" - + "locations/*/repositories/*/workspaces/*}:installNpmPackages:\001*\022\321\001\n" - + "\016PullGitCommits\0224.google.cloud.dataform.v1beta1.PullGi" - + "tCommitsRequest\0325.google.cloud.dataform." - + "v1beta1.PullGitCommitsResponse\"R\202\323\344\223\002L\"G" - + "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\001*\022\347\001\n" - + "\021SyncWorkspaceRefs\0227.google.cloud.dataform" - + ".v1beta1.SyncWorkspaceRefsRequest\0328.google.cloud.dataform.v1beta1.SyncWorkspaceR" - + "efsResponse\"_\202\323\344\223\002Y\"T/v1beta1/{name=proj" - + "ects/*/locations/*/repositories/*/workspaces/*}:syncWorkspaceRefs:\001*\022\357\001\n" - + "\026FetchWorkspaceBranches\022<.google.cloud.dataform." - + "v1beta1.FetchWorkspaceBranchesRequest\032=.google.cloud.dataform.v1beta1.FetchWorks" - + "paceBranchesResponse\"X\202\323\344\223\002R\022P/v1beta1/{" - + "name=projects/*/locations/*/repositories/*/workspaces/*}:fetchBranches\022\323\001\n" - + "\014DeleteBranch\0222.google.cloud.dataform.v1beta1." - + "DeleteBranchRequest\0323.google.cloud.dataf" - + "orm.v1beta1.DeleteBranchResponse\"Z\202\323\344\223\002T" - + "\"O/v1beta1/{name=projects/*/locations/*/" - + "repositories/*/workspaces/*}:deleteBranch:\001*\022\310\001\n" - + "\027CheckoutWorkspaceBranch\022=.google.cloud.dataform.v1beta1.CheckoutWorkspa" - + "ceBranchRequest\032\026.google.protobuf.Empty\"" - + "V\202\323\344\223\002P\"K/v1beta1/{name=projects/*/locat" - + "ions/*/repositories/*/workspaces/*}:checkout:\001*\022\203\002\n" - + "\033FetchCurrentWorkspaceBranch\022A.google.cloud.dataform.v1beta1.FetchCur" - + "rentWorkspaceBranchRequest\032B.google.cloud.dataform.v1beta1.FetchCurrentWorkspace" - + "BranchResponse\"]\202\323\344\223\002W\022U/v1beta1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}:fetchCurrentBranch\022\321\001\n" - + "\016PushGitCommits\0224.google.cloud.dataform.v1beta1" - + ".PushGitCommitsRequest\0325.google.cloud.da", - "taform.v1beta1.PushGitCommitsResponse\"R\202" - + "\323\344\223\002L\"G/v1beta1/{name=projects/*/locatio" - + "ns/*/repositories/*/workspaces/*}:push:\001" - + "*\022\360\001\n\024FetchFileGitStatuses\022:.google.clou" - + "d.dataform.v1beta1.FetchFileGitStatusesR" - + "equest\032;.google.cloud.dataform.v1beta1.F" - + "etchFileGitStatusesResponse\"_\202\323\344\223\002Y\022W/v1" - + "beta1/{name=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:fetchFileGitStat" - + "uses\022\354\001\n\023FetchGitAheadBehind\0229.google.cl" - + "oud.dataform.v1beta1.FetchGitAheadBehind" - + "Request\032:.google.cloud.dataform.v1beta1." - + "FetchGitAheadBehindResponse\"^\202\323\344\223\002X\022V/v1" - + "beta1/{name=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:fetchGitAheadBeh" - + "ind\022\353\001\n\025FetchWorkspaceHistory\022;.google.c" - + "loud.dataform.v1beta1.FetchWorkspaceHist" - + "oryRequest\032<.google.cloud.dataform.v1bet" - + "a1.FetchWorkspaceHistoryResponse\"W\202\323\344\223\002Q" - + "\022O/v1beta1/{name=projects/*/locations/*/" - + "repositories/*/workspaces/*}:fetchHistor" - + "y\022\353\001\n\026CommitWorkspaceChanges\022<.google.cl" - + "oud.dataform.v1beta1.CommitWorkspaceChan" - + "gesRequest\032=.google.cloud.dataform.v1bet" - + "a1.CommitWorkspaceChangesResponse\"T\202\323\344\223\002" - + "N\"I/v1beta1/{name=projects/*/locations/*" - + "/repositories/*/workspaces/*}:commit:\001*\022" - + "\347\001\n\025ResetWorkspaceChanges\022;.google.cloud" - + ".dataform.v1beta1.ResetWorkspaceChangesR" - + "equest\032<.google.cloud.dataform.v1beta1.R" - + "esetWorkspaceChangesResponse\"S\202\323\344\223\002M\"H/v" - + "1beta1/{name=projects/*/locations/*/repo" - + "sitories/*/workspaces/*}:reset:\001*\022\331\001\n\rFe" - + "tchFileDiff\0223.google.cloud.dataform.v1be" - + "ta1.FetchFileDiffRequest\0324.google.cloud." - + "dataform.v1beta1.FetchFileDiffResponse\"]" - + "\202\323\344\223\002W\022U/v1beta1/{workspace=projects/*/l" - + "ocations/*/repositories/*/workspaces/*}:" - + "fetchFileDiff\022\375\001\n\026QueryDirectoryContents" - + "\022<.google.cloud.dataform.v1beta1.QueryDi" - + "rectoryContentsRequest\032=.google.cloud.da" - + "taform.v1beta1.QueryDirectoryContentsRes" - + "ponse\"f\202\323\344\223\002`\022^/v1beta1/{workspace=proje" - + "cts/*/locations/*/repositories/*/workspa" - + "ces/*}:queryDirectoryContents\022\321\001\n\013Search" - + "Files\0221.google.cloud.dataform.v1beta1.Se" - + "archFilesRequest\0322.google.cloud.dataform" - + ".v1beta1.SearchFilesResponse\"[\202\323\344\223\002U\022S/v" - + "1beta1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:searchFile" - + "s\022\334\001\n\rMakeDirectory\0223.google.cloud.dataf" - + "orm.v1beta1.MakeDirectoryRequest\0324.googl" - + "e.cloud.dataform.v1beta1.MakeDirectoryRe" - + "sponse\"`\202\323\344\223\002Z\"U/v1beta1/{workspace=proj" + + "\017DeleteWorkspace\0225.google.cloud.dataform.v1beta1.DeleteWorkspaceReq" + + "uest\032\026.google.protobuf.Empty\"Q\332A\004name\202\323\344" + + "\223\002D*B/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}\022\360\001\n" + + "\022InstallNpmPackages\0228.google.cloud.dataform.v" + + "1beta1.InstallNpmPackagesRequest\0329.google.cloud.dataform.v1beta1.InstallNpmPacka" + + "gesResponse\"e\202\323\344\223\002_\"Z/v1beta1/{workspace" + + "=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\001*\022\321\001\n" + + "\016PullGitCommits\0224.google.cloud.dataform.v1" + + "beta1.PullGitCommitsRequest\0325.google.cloud.dataform.v1beta1.PullGitCommitsRespon" + + "se\"R\202\323\344\223\002L\"G/v1beta1/{name=projects/*/lo" + + "cations/*/repositories/*/workspaces/*}:pull:\001*\022\347\001\n" + + "\021SyncWorkspaceRefs\0227.google.cloud.dataform.v1beta1.SyncWorkspaceRefsRe" + + "quest\0328.google.cloud.dataform.v1beta1.Sy" + + "ncWorkspaceRefsResponse\"_\202\323\344\223\002Y\"T/v1beta" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}:syncWorkspaceRefs:\001*\022\357\001\n" + + "\026FetchWorkspaceBranches\022<.google.cloud.dataform.v1beta1.FetchWorkspaceBranch" + + "esRequest\032=.google.cloud.dataform.v1beta" + + "1.FetchWorkspaceBranchesResponse\"X\202\323\344\223\002R" + + "\022P/v1beta1/{name=projects/*/locations/*/" + + "repositories/*/workspaces/*}:fetchBranches\022\323\001\n" + + "\014DeleteBranch\0222.google.cloud.dataform.v1beta1.DeleteBranchRequest\0323.google" + + ".cloud.dataform.v1beta1.DeleteBranchResp", + "onse\"Z\202\323\344\223\002T\"O/v1beta1/{name=projects/*/" + + "locations/*/repositories/*/workspaces/*}" + + ":deleteBranch:\001*\022\310\001\n\027CheckoutWorkspaceBr" + + "anch\022=.google.cloud.dataform.v1beta1.Che" + + "ckoutWorkspaceBranchRequest\032\026.google.pro" + + "tobuf.Empty\"V\202\323\344\223\002P\"K/v1beta1/{name=proj" + "ects/*/locations/*/repositories/*/worksp" - + "aces/*}:makeDirectory:\001*\022\344\001\n\017RemoveDirec" - + "tory\0225.google.cloud.dataform.v1beta1.Rem" - + "oveDirectoryRequest\0326.google.cloud.dataf" - + "orm.v1beta1.RemoveDirectoryResponse\"b\202\323\344" - + "\223\002\\\"W/v1beta1/{workspace=projects/*/loca" - + "tions/*/repositories/*/workspaces/*}:rem" - + "oveDirectory:\001*\022\334\001\n\rMoveDirectory\0223.goog" - + "le.cloud.dataform.v1beta1.MoveDirectoryR" - + "equest\0324.google.cloud.dataform.v1beta1.M" - + "oveDirectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{" - + "workspace=projects/*/locations/*/reposit" - + "ories/*/workspaces/*}:moveDirectory:\001*\022\305" - + "\001\n\010ReadFile\022..google.cloud.dataform.v1be" - + "ta1.ReadFileRequest\032/.google.cloud.dataf" - + "orm.v1beta1.ReadFileResponse\"X\202\323\344\223\002R\022P/v" - + "1beta1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:readFile\022\320" - + "\001\n\nRemoveFile\0220.google.cloud.dataform.v1" - + "beta1.RemoveFileRequest\0321.google.cloud.d" - + "ataform.v1beta1.RemoveFileResponse\"]\202\323\344\223" - + "\002W\"R/v1beta1/{workspace=projects/*/locat" - + "ions/*/repositories/*/workspaces/*}:remo" - + "veFile:\001*\022\310\001\n\010MoveFile\022..google.cloud.da" - + "taform.v1beta1.MoveFileRequest\032/.google." - + "cloud.dataform.v1beta1.MoveFileResponse\"" - + "[\202\323\344\223\002U\"P/v1beta1/{workspace=projects/*/" + + "aces/*}:checkout:\001*\022\203\002\n\033FetchCurrentWork" + + "spaceBranch\022A.google.cloud.dataform.v1be" + + "ta1.FetchCurrentWorkspaceBranchRequest\032B" + + ".google.cloud.dataform.v1beta1.FetchCurr" + + "entWorkspaceBranchResponse\"]\202\323\344\223\002W\022U/v1b" + + "eta1/{name=projects/*/locations/*/reposi" + + "tories/*/workspaces/*}:fetchCurrentBranc" + + "h\022\321\001\n\016PushGitCommits\0224.google.cloud.data" + + "form.v1beta1.PushGitCommitsRequest\0325.goo" + + "gle.cloud.dataform.v1beta1.PushGitCommit" + + "sResponse\"R\202\323\344\223\002L\"G/v1beta1/{name=projec" + + "ts/*/locations/*/repositories/*/workspac" + + "es/*}:push:\001*\022\360\001\n\024FetchFileGitStatuses\022:" + + ".google.cloud.dataform.v1beta1.FetchFile" + + "GitStatusesRequest\032;.google.cloud.datafo" + + "rm.v1beta1.FetchFileGitStatusesResponse\"" + + "_\202\323\344\223\002Y\022W/v1beta1/{name=projects/*/locat" + + "ions/*/repositories/*/workspaces/*}:fetc" + + "hFileGitStatuses\022\354\001\n\023FetchGitAheadBehind" + + "\0229.google.cloud.dataform.v1beta1.FetchGi" + + "tAheadBehindRequest\032:.google.cloud.dataf" + + "orm.v1beta1.FetchGitAheadBehindResponse\"" + + "^\202\323\344\223\002X\022V/v1beta1/{name=projects/*/locat" + + "ions/*/repositories/*/workspaces/*}:fetc" + + "hGitAheadBehind\022\353\001\n\025FetchWorkspaceHistor" + + "y\022;.google.cloud.dataform.v1beta1.FetchW" + + "orkspaceHistoryRequest\032<.google.cloud.da" + + "taform.v1beta1.FetchWorkspaceHistoryResp" + + "onse\"W\202\323\344\223\002Q\022O/v1beta1/{name=projects/*/" + "locations/*/repositories/*/workspaces/*}" - + ":moveFile:\001*\022\314\001\n\tWriteFile\022/.google.clou" - + "d.dataform.v1beta1.WriteFileRequest\0320.go" - + "ogle.cloud.dataform.v1beta1.WriteFileRes" - + "ponse\"\\\202\323\344\223\002V\"Q/v1beta1/{workspace=proje" - + "cts/*/locations/*/repositories/*/workspa" - + "ces/*}:writeFile:\001*\022\342\001\n\022ListReleaseConfi" - + "gs\0228.google.cloud.dataform.v1beta1.ListR" - + "eleaseConfigsRequest\0329.google.cloud.data" - + "form.v1beta1.ListReleaseConfigsResponse\"" - + "W\332A\006parent\202\323\344\223\002H\022F/v1beta1/{parent=proje" - + "cts/*/locations/*/repositories/*}/releas" - + "eConfigs\022\317\001\n\020GetReleaseConfig\0226.google.c" - + "loud.dataform.v1beta1.GetReleaseConfigRe" - + "quest\032,.google.cloud.dataform.v1beta1.Re" - + "leaseConfig\"U\332A\004name\202\323\344\223\002H\022F/v1beta1/{na" - + "me=projects/*/locations/*/repositories/*" - + "/releaseConfigs/*}\022\211\002\n\023CreateReleaseConf" - + "ig\0229.google.cloud.dataform.v1beta1.Creat" - + "eReleaseConfigRequest\032,.google.cloud.dat" - + "aform.v1beta1.ReleaseConfig\"\210\001\332A\'parent," - + "release_config,release_config_id\202\323\344\223\002X\"F" - + "/v1beta1/{parent=projects/*/locations/*/" - + "repositories/*}/releaseConfigs:\016release_" - + "config\022\213\002\n\023UpdateReleaseConfig\0229.google." - + "cloud.dataform.v1beta1.UpdateReleaseConf" - + "igRequest\032,.google.cloud.dataform.v1beta" - + "1.ReleaseConfig\"\212\001\332A\032release_config,upda" - + "te_mask\202\323\344\223\002g2U/v1beta1/{release_config." - + "name=projects/*/locations/*/repositories" - + "/*/releaseConfigs/*}:\016release_config\022\277\001\n" - + "\023DeleteReleaseConfig\0229.google.cloud.data" - + "form.v1beta1.DeleteReleaseConfigRequest\032" - + "\026.google.protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F" - + "/v1beta1/{name=projects/*/locations/*/re" - + "positories/*/releaseConfigs/*}\022\362\001\n\026ListC" - + "ompilationResults\022<.google.cloud.datafor" - + "m.v1beta1.ListCompilationResultsRequest\032" - + "=.google.cloud.dataform.v1beta1.ListComp" - + "ilationResultsResponse\"[\332A\006parent\202\323\344\223\002L\022" - + "J/v1beta1/{parent=projects/*/locations/*" - + "/repositories/*}/compilationResults\022\337\001\n\024" - + "GetCompilationResult\022:.google.cloud.data" - + "form.v1beta1.GetCompilationResultRequest" - + "\0320.google.cloud.dataform.v1beta1.Compila" - + "tionResult\"Y\332A\004name\202\323\344\223\002L\022J/v1beta1/{nam" - + "e=projects/*/locations/*/repositories/*/" - + "compilationResults/*}\022\217\002\n\027CreateCompilat" - + "ionResult\022=.google.cloud.dataform.v1beta" - + "1.CreateCompilationResultRequest\0320.googl" - + "e.cloud.dataform.v1beta1.CompilationResu" - + "lt\"\202\001\332A\031parent,compilation_result\202\323\344\223\002`\"" - + "J/v1beta1/{parent=projects/*/locations/*" - + "/repositories/*}/compilationResults:\022com" - + "pilation_result\022\320\002\n\"CreateCompilationRes" - + "ultLongRunning\022=.google.cloud.dataform.v" - + "1beta1.CreateCompilationResultRequest\032\035." - + "google.longrunning.Operation\"\313\001\312A4\n\021Comp" - + "ilationResult\022\037CreateCompilationResultMe" - + "tadata\332A\031parent,compilation_result\202\323\344\223\002r" - + "\"\\/v1beta1/{parent=projects/*/locations/" - + "*/repositories/*}/compilationResults:cre" - + "ateLongRunning:\022compilation_result\022\204\002\n\035Q" - + "ueryCompilationResultActions\022C.google.cl" - + "oud.dataform.v1beta1.QueryCompilationRes" - + "ultActionsRequest\032D.google.cloud.datafor" - + "m.v1beta1.QueryCompilationResultActionsR" - + "esponse\"X\202\323\344\223\002R\022P/v1beta1/{name=projects" - + "/*/locations/*/repositories/*/compilatio" - + "nResults/*}:query\022\346\001\n\023ListWorkflowConfig" - + "s\0229.google.cloud.dataform.v1beta1.ListWo" - + "rkflowConfigsRequest\032:.google.cloud.data" - + "form.v1beta1.ListWorkflowConfigsResponse" - + "\"X\332A\006parent\202\323\344\223\002I\022G/v1beta1/{parent=proj" - + "ects/*/locations/*/repositories/*}/workf" - + "lowConfigs\022\323\001\n\021GetWorkflowConfig\0227.googl" - + "e.cloud.dataform.v1beta1.GetWorkflowConf" - + "igRequest\032-.google.cloud.dataform.v1beta" - + "1.WorkflowConfig\"V\332A\004name\202\323\344\223\002I\022G/v1beta" - + "1/{name=projects/*/locations/*/repositor" - + "ies/*/workflowConfigs/*}\022\220\002\n\024CreateWorkf" - + "lowConfig\022:.google.cloud.dataform.v1beta" - + "1.CreateWorkflowConfigRequest\032-.google.c" - + "loud.dataform.v1beta1.WorkflowConfig\"\214\001\332" - + "A)parent,workflow_config,workflow_config" - + "_id\202\323\344\223\002Z\"G/v1beta1/{parent=projects/*/l" - + "ocations/*/repositories/*}/workflowConfi" - + "gs:\017workflow_config\022\222\002\n\024UpdateWorkflowCo" - + "nfig\022:.google.cloud.dataform.v1beta1.Upd" - + "ateWorkflowConfigRequest\032-.google.cloud." - + "dataform.v1beta1.WorkflowConfig\"\216\001\332A\033wor" - + "kflow_config,update_mask\202\323\344\223\002j2W/v1beta1" - + "/{workflow_config.name=projects/*/locati" - + "ons/*/repositories/*/workflowConfigs/*}:" - + "\017workflow_config\022\302\001\n\024DeleteWorkflowConfi" - + "g\022:.google.cloud.dataform.v1beta1.Delete" - + "WorkflowConfigRequest\032\026.google.protobuf." - + "Empty\"V\332A\004name\202\323\344\223\002I*G/v1beta1/{name=pro" - + "jects/*/locations/*/repositories/*/workf" - + "lowConfigs/*}\022\366\001\n\027ListWorkflowInvocation" - + "s\022=.google.cloud.dataform.v1beta1.ListWo" - + "rkflowInvocationsRequest\032>.google.cloud." - + "dataform.v1beta1.ListWorkflowInvocations" - + "Response\"\\\332A\006parent\202\323\344\223\002M\022K/v1beta1/{par" - + "ent=projects/*/locations/*/repositories/" - + "*}/workflowInvocations\022\343\001\n\025GetWorkflowIn" - + "vocation\022;.google.cloud.dataform.v1beta1" - + ".GetWorkflowInvocationRequest\0321.google.c" - + "loud.dataform.v1beta1.WorkflowInvocation" - + "\"Z\332A\004name\202\323\344\223\002M\022K/v1beta1/{name=projects" - + "/*/locations/*/repositories/*/workflowIn" - + "vocations/*}\022\225\002\n\030CreateWorkflowInvocatio" - + "n\022>.google.cloud.dataform.v1beta1.Create" - + "WorkflowInvocationRequest\0321.google.cloud" - + ".dataform.v1beta1.WorkflowInvocation\"\205\001\332" - + "A\032parent,workflow_invocation\202\323\344\223\002b\"K/v1b" - + "eta1/{parent=projects/*/locations/*/repo" - + "sitories/*}/workflowInvocations:\023workflo" - + "w_invocation\022\316\001\n\030DeleteWorkflowInvocatio" - + "n\022>.google.cloud.dataform.v1beta1.Delete" - + "WorkflowInvocationRequest\032\026.google.proto" - + "buf.Empty\"Z\332A\004name\202\323\344\223\002M*K/v1beta1/{name" + + ":fetchHistory\022\353\001\n\026CommitWorkspaceChanges" + + "\022<.google.cloud.dataform.v1beta1.CommitW" + + "orkspaceChangesRequest\032=.google.cloud.da" + + "taform.v1beta1.CommitWorkspaceChangesRes" + + "ponse\"T\202\323\344\223\002N\"I/v1beta1/{name=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:commit:\001*\022\347\001\n\025ResetWorkspaceChanges\022;." + + "google.cloud.dataform.v1beta1.ResetWorks" + + "paceChangesRequest\032<.google.cloud.datafo" + + "rm.v1beta1.ResetWorkspaceChangesResponse" + + "\"S\202\323\344\223\002M\"H/v1beta1/{name=projects/*/loca" + + "tions/*/repositories/*/workspaces/*}:res" + + "et:\001*\022\331\001\n\rFetchFileDiff\0223.google.cloud.d" + + "ataform.v1beta1.FetchFileDiffRequest\0324.g" + + "oogle.cloud.dataform.v1beta1.FetchFileDi" + + "ffResponse\"]\202\323\344\223\002W\022U/v1beta1/{workspace=" + + "projects/*/locations/*/repositories/*/wo" + + "rkspaces/*}:fetchFileDiff\022\375\001\n\026QueryDirec" + + "toryContents\022<.google.cloud.dataform.v1b" + + "eta1.QueryDirectoryContentsRequest\032=.goo" + + "gle.cloud.dataform.v1beta1.QueryDirector" + + "yContentsResponse\"f\202\323\344\223\002`\022^/v1beta1/{wor" + + "kspace=projects/*/locations/*/repositori" + + "es/*/workspaces/*}:queryDirectoryContent" + + "s\022\321\001\n\013SearchFiles\0221.google.cloud.datafor" + + "m.v1beta1.SearchFilesRequest\0322.google.cl" + + "oud.dataform.v1beta1.SearchFilesResponse" + + "\"[\202\323\344\223\002U\022S/v1beta1/{workspace=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:searchFiles\022\334\001\n\rMakeDirectory\0223.google" + + ".cloud.dataform.v1beta1.MakeDirectoryReq" + + "uest\0324.google.cloud.dataform.v1beta1.Mak" + + "eDirectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{wo" + + "rkspace=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}:makeDirectory:\001*\022\344\001\n" + + "\017RemoveDirectory\0225.google.cloud.dataform" + + ".v1beta1.RemoveDirectoryRequest\0326.google" + + ".cloud.dataform.v1beta1.RemoveDirectoryR" + + "esponse\"b\202\323\344\223\002\\\"W/v1beta1/{workspace=pro" + + "jects/*/locations/*/repositories/*/works" + + "paces/*}:removeDirectory:\001*\022\334\001\n\rMoveDire" + + "ctory\0223.google.cloud.dataform.v1beta1.Mo" + + "veDirectoryRequest\0324.google.cloud.datafo" + + "rm.v1beta1.MoveDirectoryResponse\"`\202\323\344\223\002Z" + + "\"U/v1beta1/{workspace=projects/*/locatio" + + "ns/*/repositories/*/workspaces/*}:moveDi" + + "rectory:\001*\022\305\001\n\010ReadFile\022..google.cloud.d" + + "ataform.v1beta1.ReadFileRequest\032/.google" + + ".cloud.dataform.v1beta1.ReadFileResponse" + + "\"X\202\323\344\223\002R\022P/v1beta1/{workspace=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:readFile\022\320\001\n\nRemoveFile\0220.google.cloud" + + ".dataform.v1beta1.RemoveFileRequest\0321.go" + + "ogle.cloud.dataform.v1beta1.RemoveFileRe" + + "sponse\"]\202\323\344\223\002W\"R/v1beta1/{workspace=proj" + + "ects/*/locations/*/repositories/*/worksp" + + "aces/*}:removeFile:\001*\022\310\001\n\010MoveFile\022..goo" + + "gle.cloud.dataform.v1beta1.MoveFileReque" + + "st\032/.google.cloud.dataform.v1beta1.MoveF" + + "ileResponse\"[\202\323\344\223\002U\"P/v1beta1/{workspace" + "=projects/*/locations/*/repositories/*/w" - + "orkflowInvocations/*}\022\372\001\n\030CancelWorkflow" - + "Invocation\022>.google.cloud.dataform.v1bet" - + "a1.CancelWorkflowInvocationRequest\032?.goo" - + "gle.cloud.dataform.v1beta1.CancelWorkflo" - + "wInvocationResponse\"]\202\323\344\223\002W\"R/v1beta1/{n" + + "orkspaces/*}:moveFile:\001*\022\314\001\n\tWriteFile\022/" + + ".google.cloud.dataform.v1beta1.WriteFile" + + "Request\0320.google.cloud.dataform.v1beta1." + + "WriteFileResponse\"\\\202\323\344\223\002V\"Q/v1beta1/{wor" + + "kspace=projects/*/locations/*/repositori" + + "es/*/workspaces/*}:writeFile:\001*\022\342\001\n\022List" + + "ReleaseConfigs\0228.google.cloud.dataform.v" + + "1beta1.ListReleaseConfigsRequest\0329.googl" + + "e.cloud.dataform.v1beta1.ListReleaseConf" + + "igsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1beta1/{" + + "parent=projects/*/locations/*/repositori" + + "es/*}/releaseConfigs\022\317\001\n\020GetReleaseConfi" + + "g\0226.google.cloud.dataform.v1beta1.GetRel" + + "easeConfigRequest\032,.google.cloud.datafor" + + "m.v1beta1.ReleaseConfig\"U\332A\004name\202\323\344\223\002H\022F" + + "/v1beta1/{name=projects/*/locations/*/re" + + "positories/*/releaseConfigs/*}\022\211\002\n\023Creat" + + "eReleaseConfig\0229.google.cloud.dataform.v" + + "1beta1.CreateReleaseConfigRequest\032,.goog" + + "le.cloud.dataform.v1beta1.ReleaseConfig\"" + + "\210\001\332A\'parent,release_config,release_confi" + + "g_id\202\323\344\223\002X\"F/v1beta1/{parent=projects/*/" + + "locations/*/repositories/*}/releaseConfi" + + "gs:\016release_config\022\213\002\n\023UpdateReleaseConf" + + "ig\0229.google.cloud.dataform.v1beta1.Updat" + + "eReleaseConfigRequest\032,.google.cloud.dat" + + "aform.v1beta1.ReleaseConfig\"\212\001\332A\032release" + + "_config,update_mask\202\323\344\223\002g2U/v1beta1/{rel" + + "ease_config.name=projects/*/locations/*/" + + "repositories/*/releaseConfigs/*}:\016releas" + + "e_config\022\277\001\n\023DeleteReleaseConfig\0229.googl" + + "e.cloud.dataform.v1beta1.DeleteReleaseCo" + + "nfigRequest\032\026.google.protobuf.Empty\"U\332A\004" + + "name\202\323\344\223\002H*F/v1beta1/{name=projects/*/lo" + + "cations/*/repositories/*/releaseConfigs/" + + "*}\022\362\001\n\026ListCompilationResults\022<.google.c" + + "loud.dataform.v1beta1.ListCompilationRes" + + "ultsRequest\032=.google.cloud.dataform.v1be" + + "ta1.ListCompilationResultsResponse\"[\332A\006p" + + "arent\202\323\344\223\002L\022J/v1beta1/{parent=projects/*" + + "/locations/*/repositories/*}/compilation" + + "Results\022\337\001\n\024GetCompilationResult\022:.googl" + + "e.cloud.dataform.v1beta1.GetCompilationR" + + "esultRequest\0320.google.cloud.dataform.v1b" + + "eta1.CompilationResult\"Y\332A\004name\202\323\344\223\002L\022J/" + + "v1beta1/{name=projects/*/locations/*/rep" + + "ositories/*/compilationResults/*}\022\217\002\n\027Cr" + + "eateCompilationResult\022=.google.cloud.dat" + + "aform.v1beta1.CreateCompilationResultReq" + + "uest\0320.google.cloud.dataform.v1beta1.Com" + + "pilationResult\"\202\001\332A\031parent,compilation_r" + + "esult\202\323\344\223\002`\"J/v1beta1/{parent=projects/*" + + "/locations/*/repositories/*}/compilation" + + "Results:\022compilation_result\022\320\002\n\"CreateCo" + + "mpilationResultLongRunning\022=.google.clou" + + "d.dataform.v1beta1.CreateCompilationResu" + + "ltRequest\032\035.google.longrunning.Operation" + + "\"\313\001\312A4\n\021CompilationResult\022\037CreateCompila" + + "tionResultMetadata\332A\031parent,compilation_" + + "result\202\323\344\223\002r\"\\/v1beta1/{parent=projects/" + + "*/locations/*/repositories/*}/compilatio" + + "nResults:createLongRunning:\022compilation_" + + "result\022\204\002\n\035QueryCompilationResultActions" + + "\022C.google.cloud.dataform.v1beta1.QueryCo" + + "mpilationResultActionsRequest\032D.google.c" + + "loud.dataform.v1beta1.QueryCompilationRe" + + "sultActionsResponse\"X\202\323\344\223\002R\022P/v1beta1/{n" + "ame=projects/*/locations/*/repositories/" - + "*/workflowInvocations/*}:cancel:\001*\022\210\002\n\036Q" - + "ueryWorkflowInvocationActions\022D.google.c" - + "loud.dataform.v1beta1.QueryWorkflowInvoc" - + "ationActionsRequest\032E.google.cloud.dataf" - + "orm.v1beta1.QueryWorkflowInvocationActio" - + "nsResponse\"Y\202\323\344\223\002S\022Q/v1beta1/{name=proje" + + "*/compilationResults/*}:query\022\346\001\n\023ListWo" + + "rkflowConfigs\0229.google.cloud.dataform.v1" + + "beta1.ListWorkflowConfigsRequest\032:.googl" + + "e.cloud.dataform.v1beta1.ListWorkflowCon" + + "figsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1beta1/" + + "{parent=projects/*/locations/*/repositor" + + "ies/*}/workflowConfigs\022\323\001\n\021GetWorkflowCo" + + "nfig\0227.google.cloud.dataform.v1beta1.Get" + + "WorkflowConfigRequest\032-.google.cloud.dat" + + "aform.v1beta1.WorkflowConfig\"V\332A\004name\202\323\344" + + "\223\002I\022G/v1beta1/{name=projects/*/locations" + + "/*/repositories/*/workflowConfigs/*}\022\220\002\n" + + "\024CreateWorkflowConfig\022:.google.cloud.dat" + + "aform.v1beta1.CreateWorkflowConfigReques" + + "t\032-.google.cloud.dataform.v1beta1.Workfl" + + "owConfig\"\214\001\332A)parent,workflow_config,wor" + + "kflow_config_id\202\323\344\223\002Z\"G/v1beta1/{parent=" + + "projects/*/locations/*/repositories/*}/w" + + "orkflowConfigs:\017workflow_config\022\222\002\n\024Upda" + + "teWorkflowConfig\022:.google.cloud.dataform" + + ".v1beta1.UpdateWorkflowConfigRequest\032-.g" + + "oogle.cloud.dataform.v1beta1.WorkflowCon" + + "fig\"\216\001\332A\033workflow_config,update_mask\202\323\344\223" + + "\002j2W/v1beta1/{workflow_config.name=proje" + "cts/*/locations/*/repositories/*/workflo" - + "wInvocations/*}:query\022\241\001\n\tGetConfig\022/.go" - + "ogle.cloud.dataform.v1beta1.GetConfigReq" - + "uest\032%.google.cloud.dataform.v1beta1.Con" - + "fig\"<\332A\004name\202\323\344\223\002/\022-/v1beta1/{name=proje" - + "cts/*/locations/*/config}\022\304\001\n\014UpdateConf" - + "ig\0222.google.cloud.dataform.v1beta1.Updat" - + "eConfigRequest\032%.google.cloud.dataform.v" - + "1beta1.Config\"Y\332A\022config,update_mask\202\323\344\223" - + "\002>24/v1beta1/{config.name=projects/*/loc" - + "ations/*/config}:\006config\022\213\003\n\014GetIamPolic" - + "y\022\".google.iam.v1.GetIamPolicyRequest\032\025." - + "google.iam.v1.Policy\"\277\002\332A\010resource\202\323\344\223\002\255" - + "\002\022F/v1beta1/{resource=projects/*/locatio" - + "ns/*/repositories/*}:getIamPolicyZU\022S/v1" - + "beta1/{resource=projects/*/locations/*/r" - + "epositories/*/workspaces/*}:getIamPolicy" - + "ZC\022A/v1beta1/{resource=projects/*/locati" - + "ons/*/folders/*}:getIamPolicyZG\022E/v1beta" - + "1/{resource=projects/*/locations/*/teamF" - + "olders/*}:getIamPolicy\022\214\003\n\014SetIamPolicy\022" - + "\".google.iam.v1.SetIamPolicyRequest\032\025.go" - + "ogle.iam.v1.Policy\"\300\002\202\323\344\223\002\271\002\"F/v1beta1/{" - + "resource=projects/*/locations/*/reposito" - + "ries/*}:setIamPolicy:\001*ZX\"S/v1beta1/{res" - + "ource=projects/*/locations/*/repositorie" - + "s/*/workspaces/*}:setIamPolicy:\001*ZF\"A/v1" - + "beta1/{resource=projects/*/locations/*/f" - + "olders/*}:setIamPolicy:\001*ZJ\"E/v1beta1/{r" - + "esource=projects/*/locations/*/teamFolde" - + "rs/*}:setIamPolicy:\001*\022\304\003\n\022TestIamPermiss" - + "ions\022(.google.iam.v1.TestIamPermissionsR" - + "equest\032).google.iam.v1.TestIamPermission" - + "sResponse\"\330\002\202\323\344\223\002\321\002\"L/v1beta1/{resource=" - + "projects/*/locations/*/repositories/*}:t" - + "estIamPermissions:\001*Z^\"Y/v1beta1/{resour" - + "ce=projects/*/locations/*/repositories/*" - + "/workspaces/*}:testIamPermissions:\001*ZL\"G" - + "/v1beta1/{resource=projects/*/locations/" - + "*/folders/*}:testIamPermissions:\001*ZP\"K/v" - + "1beta1/{resource=projects/*/locations/*/" - + "teamFolders/*}:testIamPermissions:\001*\032t\312A" - + "\027dataform.googleapis.com\322AWhttps://www.g" - + "oogleapis.com/auth/bigquery,https://www." - + "googleapis.com/auth/cloud-platformB\237\t\n!c" - + "om.google.cloud.dataform.v1beta1B\rDatafo" - + "rmProtoP\001Z=cloud.google.com/go/dataform/" - + "apiv1beta1/dataformpb;dataformpb\252\002\035Googl" - + "e.Cloud.Dataform.V1Beta1\312\002\035Google\\Cloud\\" - + "Dataform\\V1beta1\352\002 Google::Cloud::Datafo" - + "rm::V1beta1\352Ad\n*secretmanager.googleapis" - + ".com/SecretVersion\0226projects/{project}/s" - + "ecrets/{secret}/versions/{version}\352Ax\n!c" - + "loudkms.googleapis.com/CryptoKey\022Sprojec" - + "ts/{project}/locations/{location}/keyRin" - + "gs/{key_ring}/cryptoKeys/{crypto_key}\352A\246" - + "\001\n(cloudkms.googleapis.com/CryptoKeyVers" - + "ion\022zprojects/{project}/locations/{locat" - + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" - + "pto_key}/cryptoKeyVersions/{crypto_key_v" - + "ersion}\352A\221\001\n1aiplatform.googleapis.com/N" - + "otebookRuntimeTemplate\022\\projects/{projec" - + "t}/locations/{location}/notebookRuntimeT" - + "emplates/{notebook_runtime_template}\352A~\n" - + "!dataplex.googleapis.com/EntryLink\022Yproj" - + "ects/{project}/locations/{location}/entr" - + "yGroups/{entry_group}/entryLinks/{entry_" - + "link}\352A\236\001\n1developerconnect.googleapis.c" - + "om/GitRepositoryLink\022iprojects/{project}" - + "/locations/{location}/connections/{conne" - + "ction}/gitRepositoryLinks/{git_repositor" - + "y_link}\352A\201\001\n0developerconnect.googleapis" - + ".com/AccountConnector\022Mprojects/{project" - + "}/locations/{location}/accountConnectors" - + "/{account_connector}b\006proto3" + + "wConfigs/*}:\017workflow_config\022\302\001\n\024DeleteW" + + "orkflowConfig\022:.google.cloud.dataform.v1" + + "beta1.DeleteWorkflowConfigRequest\032\026.goog" + + "le.protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1bet" + + "a1/{name=projects/*/locations/*/reposito" + + "ries/*/workflowConfigs/*}\022\366\001\n\027ListWorkfl" + + "owInvocations\022=.google.cloud.dataform.v1" + + "beta1.ListWorkflowInvocationsRequest\032>.g" + + "oogle.cloud.dataform.v1beta1.ListWorkflo" + + "wInvocationsResponse\"\\\332A\006parent\202\323\344\223\002M\022K/" + + "v1beta1/{parent=projects/*/locations/*/r" + + "epositories/*}/workflowInvocations\022\343\001\n\025G" + + "etWorkflowInvocation\022;.google.cloud.data" + + "form.v1beta1.GetWorkflowInvocationReques" + + "t\0321.google.cloud.dataform.v1beta1.Workfl" + + "owInvocation\"Z\332A\004name\202\323\344\223\002M\022K/v1beta1/{n" + + "ame=projects/*/locations/*/repositories/" + + "*/workflowInvocations/*}\022\225\002\n\030CreateWorkf" + + "lowInvocation\022>.google.cloud.dataform.v1" + + "beta1.CreateWorkflowInvocationRequest\0321." + + "google.cloud.dataform.v1beta1.WorkflowIn" + + "vocation\"\205\001\332A\032parent,workflow_invocation" + + "\202\323\344\223\002b\"K/v1beta1/{parent=projects/*/loca" + + "tions/*/repositories/*}/workflowInvocati" + + "ons:\023workflow_invocation\022\316\001\n\030DeleteWorkf" + + "lowInvocation\022>.google.cloud.dataform.v1" + + "beta1.DeleteWorkflowInvocationRequest\032\026." + + "google.protobuf.Empty\"Z\332A\004name\202\323\344\223\002M*K/v" + + "1beta1/{name=projects/*/locations/*/repo" + + "sitories/*/workflowInvocations/*}\022\372\001\n\030Ca" + + "ncelWorkflowInvocation\022>.google.cloud.da" + + "taform.v1beta1.CancelWorkflowInvocationR" + + "equest\032?.google.cloud.dataform.v1beta1.C" + + "ancelWorkflowInvocationResponse\"]\202\323\344\223\002W\"" + + "R/v1beta1/{name=projects/*/locations/*/r" + + "epositories/*/workflowInvocations/*}:can" + + "cel:\001*\022\210\002\n\036QueryWorkflowInvocationAction" + + "s\022D.google.cloud.dataform.v1beta1.QueryW" + + "orkflowInvocationActionsRequest\032E.google" + + ".cloud.dataform.v1beta1.QueryWorkflowInv" + + "ocationActionsResponse\"Y\202\323\344\223\002S\022Q/v1beta1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/workflowInvocations/*}:query\022\241\001\n\tGe" + + "tConfig\022/.google.cloud.dataform.v1beta1." + + "GetConfigRequest\032%.google.cloud.dataform" + + ".v1beta1.Config\"<\332A\004name\202\323\344\223\002/\022-/v1beta1" + + "/{name=projects/*/locations/*/config}\022\304\001" + + "\n\014UpdateConfig\0222.google.cloud.dataform.v" + + "1beta1.UpdateConfigRequest\032%.google.clou" + + "d.dataform.v1beta1.Config\"Y\332A\022config,upd" + + "ate_mask\202\323\344\223\002>24/v1beta1/{config.name=pr" + + "ojects/*/locations/*/config}:\006config\022\213\003\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"\277\002\332A\010re" + + "source\202\323\344\223\002\255\002\022F/v1beta1/{resource=projec" + + "ts/*/locations/*/repositories/*}:getIamP" + + "olicyZU\022S/v1beta1/{resource=projects/*/l" + + "ocations/*/repositories/*/workspaces/*}:" + + "getIamPolicyZC\022A/v1beta1/{resource=proje" + + "cts/*/locations/*/folders/*}:getIamPolic" + + "yZG\022E/v1beta1/{resource=projects/*/locat" + + "ions/*/teamFolders/*}:getIamPolicy\022\214\003\n\014S" + + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"\300\002\202\323\344\223\002\271\002" + + "\"F/v1beta1/{resource=projects/*/location" + + "s/*/repositories/*}:setIamPolicy:\001*ZX\"S/" + + "v1beta1/{resource=projects/*/locations/*" + + "/repositories/*/workspaces/*}:setIamPoli" + + "cy:\001*ZF\"A/v1beta1/{resource=projects/*/l" + + "ocations/*/folders/*}:setIamPolicy:\001*ZJ\"" + + "E/v1beta1/{resource=projects/*/locations" + + "/*/teamFolders/*}:setIamPolicy:\001*\022\304\003\n\022Te" + + "stIamPermissions\022(.google.iam.v1.TestIam" + + "PermissionsRequest\032).google.iam.v1.TestI" + + "amPermissionsResponse\"\330\002\202\323\344\223\002\321\002\"L/v1beta" + + "1/{resource=projects/*/locations/*/repos" + + "itories/*}:testIamPermissions:\001*Z^\"Y/v1b" + + "eta1/{resource=projects/*/locations/*/re" + + "positories/*/workspaces/*}:testIamPermis" + + "sions:\001*ZL\"G/v1beta1/{resource=projects/" + + "*/locations/*/folders/*}:testIamPermissi" + + "ons:\001*ZP\"K/v1beta1/{resource=projects/*/" + + "locations/*/teamFolders/*}:testIamPermis" + + "sions:\001*\032t\312A\027dataform.googleapis.com\322AWh" + + "ttps://www.googleapis.com/auth/bigquery," + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\237\t\n!com.google.cloud.dataform.v1b" + + "eta1B\rDataformProtoP\001Z=cloud.google.com/" + + "go/dataform/apiv1beta1/dataformpb;datafo" + + "rmpb\252\002\035Google.Cloud.Dataform.V1Beta1\312\002\035G" + + "oogle\\Cloud\\Dataform\\V1beta1\352\002 Google::C" + + "loud::Dataform::V1beta1\352Ad\n*secretmanage" + + "r.googleapis.com/SecretVersion\0226projects" + + "/{project}/secrets/{secret}/versions/{ve" + + "rsion}\352Ax\n!cloudkms.googleapis.com/Crypt" + + "oKey\022Sprojects/{project}/locations/{loca" + + "tion}/keyRings/{key_ring}/cryptoKeys/{cr" + + "ypto_key}\352A\246\001\n(cloudkms.googleapis.com/C" + + "ryptoKeyVersion\022zprojects/{project}/loca" + + "tions/{location}/keyRings/{key_ring}/cry" + + "ptoKeys/{crypto_key}/cryptoKeyVersions/{" + + "crypto_key_version}\352A\221\001\n1aiplatform.goog" + + "leapis.com/NotebookRuntimeTemplate\022\\proj" + + "ects/{project}/locations/{location}/note" + + "bookRuntimeTemplates/{notebook_runtime_t" + + "emplate}\352A~\n!dataplex.googleapis.com/Ent" + + "ryLink\022Yprojects/{project}/locations/{lo" + + "cation}/entryGroups/{entry_group}/entryL" + + "inks/{entry_link}\352A\236\001\n1developerconnect." + + "googleapis.com/GitRepositoryLink\022iprojec" + + "ts/{project}/locations/{location}/connec" + + "tions/{connection}/gitRepositoryLinks/{g" + + "it_repository_link}\352A\201\001\n0developerconnec" + + "t.googleapis.com/AccountConnector\022Mproje" + + "cts/{project}/locations/{location}/accou" + + "ntConnectors/{account_connector}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2965,8 +2993,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "Workspace", "WorkspaceId", }); - internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor = + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor = getDescriptor().getMessageType(32); + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor, + new java.lang.String[] { + "CreateWorkspaceRequest", "Id", "Target", "State", "Request", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor = + getDescriptor().getMessageType(33); internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor, @@ -2974,7 +3010,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(34); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor, @@ -2982,7 +3018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EmailAddress", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(35); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor, @@ -2990,13 +3026,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", "Author", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(36); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_CheckoutWorkspaceBranchRequest_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(37); internal_static_google_cloud_dataform_v1beta1_CheckoutWorkspaceBranchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CheckoutWorkspaceBranchRequest_descriptor, @@ -3004,7 +3040,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Branch", "CreateIfNotExists", "SourceBranch", }); internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(38); internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsRequest_descriptor, @@ -3012,13 +3048,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranchName", "Deepen", }); internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsResponse_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(39); internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_DeleteBranchRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(40); internal_static_google_cloud_dataform_v1beta1_DeleteBranchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteBranchRequest_descriptor, @@ -3026,13 +3062,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Branch", "Force", }); internal_static_google_cloud_dataform_v1beta1_DeleteBranchResponse_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(41); internal_static_google_cloud_dataform_v1beta1_DeleteBranchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteBranchResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(42); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor, @@ -3040,13 +3076,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(43); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(44); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor, @@ -3054,7 +3090,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(45); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor, @@ -3071,7 +3107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", "State", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(46); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor, @@ -3079,7 +3115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(47); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor, @@ -3087,7 +3123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitsAhead", "CommitsBehind", }); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryRequest_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(48); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryRequest_descriptor, @@ -3095,7 +3131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryResponse_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(49); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryResponse_descriptor, @@ -3103,7 +3139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commits", "NextPageToken", "ReachesShallowBoundary", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(50); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor, @@ -3111,13 +3147,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Author", "CommitMessage", "Paths", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(51); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(52); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor, @@ -3125,13 +3161,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Paths", "Clean", }); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(53); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(54); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor, @@ -3139,7 +3175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor = - getDescriptor().getMessageType(54); + getDescriptor().getMessageType(55); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor, @@ -3147,7 +3183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FormattedDiff", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor = - getDescriptor().getMessageType(55); + getDescriptor().getMessageType(56); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor, @@ -3155,7 +3191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "PageSize", "PageToken", "View", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor = - getDescriptor().getMessageType(56); + getDescriptor().getMessageType(57); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor, @@ -3163,7 +3199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DirectoryEntries", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor = - getDescriptor().getMessageType(57); + getDescriptor().getMessageType(58); internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor, @@ -3171,7 +3207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "File", "Directory", "Metadata", "Entry", }); internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor = - getDescriptor().getMessageType(58); + getDescriptor().getMessageType(59); internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor, @@ -3179,7 +3215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeBytes", "UpdateTime", }); internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor = - getDescriptor().getMessageType(59); + getDescriptor().getMessageType(60); internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor, @@ -3187,7 +3223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_descriptor = - getDescriptor().getMessageType(60); + getDescriptor().getMessageType(61); internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_descriptor, @@ -3195,7 +3231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SearchResults", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_SearchResult_descriptor = - getDescriptor().getMessageType(61); + getDescriptor().getMessageType(62); internal_static_google_cloud_dataform_v1beta1_SearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchResult_descriptor, @@ -3203,7 +3239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "File", "Directory", "Entry", }); internal_static_google_cloud_dataform_v1beta1_FileSearchResult_descriptor = - getDescriptor().getMessageType(62); + getDescriptor().getMessageType(63); internal_static_google_cloud_dataform_v1beta1_FileSearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FileSearchResult_descriptor, @@ -3211,7 +3247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_descriptor = - getDescriptor().getMessageType(63); + getDescriptor().getMessageType(64); internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_descriptor, @@ -3219,7 +3255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor = - getDescriptor().getMessageType(64); + getDescriptor().getMessageType(65); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor, @@ -3227,13 +3263,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor = - getDescriptor().getMessageType(65); + getDescriptor().getMessageType(66); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor = - getDescriptor().getMessageType(66); + getDescriptor().getMessageType(67); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor, @@ -3241,13 +3277,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_descriptor = - getDescriptor().getMessageType(67); + getDescriptor().getMessageType(68); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor = - getDescriptor().getMessageType(68); + getDescriptor().getMessageType(69); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor, @@ -3255,13 +3291,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor = - getDescriptor().getMessageType(69); + getDescriptor().getMessageType(70); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor = - getDescriptor().getMessageType(70); + getDescriptor().getMessageType(71); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor, @@ -3269,7 +3305,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Revision", }); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor = - getDescriptor().getMessageType(71); + getDescriptor().getMessageType(72); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor, @@ -3277,7 +3313,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileContents", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor = - getDescriptor().getMessageType(72); + getDescriptor().getMessageType(73); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor, @@ -3285,13 +3321,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_descriptor = - getDescriptor().getMessageType(73); + getDescriptor().getMessageType(74); internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor = - getDescriptor().getMessageType(74); + getDescriptor().getMessageType(75); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor, @@ -3299,13 +3335,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor = - getDescriptor().getMessageType(75); + getDescriptor().getMessageType(76); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor = - getDescriptor().getMessageType(76); + getDescriptor().getMessageType(77); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor, @@ -3313,13 +3349,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Contents", }); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor = - getDescriptor().getMessageType(77); + getDescriptor().getMessageType(78); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor = - getDescriptor().getMessageType(78); + getDescriptor().getMessageType(79); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor, @@ -3327,13 +3363,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "PipelineConfig", }); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor = - getDescriptor().getMessageType(79); + getDescriptor().getMessageType(80); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor = - getDescriptor().getMessageType(80); + getDescriptor().getMessageType(81); internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor, @@ -3357,7 +3393,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResult", "ErrorStatus", "ReleaseTime", "Result", }); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor = - getDescriptor().getMessageType(81); + getDescriptor().getMessageType(82); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor, @@ -3365,7 +3401,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor = - getDescriptor().getMessageType(82); + getDescriptor().getMessageType(83); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor, @@ -3373,7 +3409,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReleaseConfigs", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(83); + getDescriptor().getMessageType(84); internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor, @@ -3381,7 +3417,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(84); + getDescriptor().getMessageType(85); internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor, @@ -3389,7 +3425,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReleaseConfig", "ReleaseConfigId", }); internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(85); + getDescriptor().getMessageType(86); internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor, @@ -3397,7 +3433,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "ReleaseConfig", }); internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(86); + getDescriptor().getMessageType(87); internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor, @@ -3405,7 +3441,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor = - getDescriptor().getMessageType(87); + getDescriptor().getMessageType(88); internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor, @@ -3434,7 +3470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "Stack", "Path", "ActionTarget", }); internal_static_google_cloud_dataform_v1beta1_WorkflowTriggerConfig_descriptor = - getDescriptor().getMessageType(88); + getDescriptor().getMessageType(89); internal_static_google_cloud_dataform_v1beta1_WorkflowTriggerConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowTriggerConfig_descriptor, @@ -3447,7 +3483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LastSuccessfulEvaluationTime", }); internal_static_google_cloud_dataform_v1beta1_TriggerEvaluationRecord_descriptor = - getDescriptor().getMessageType(89); + getDescriptor().getMessageType(90); internal_static_google_cloud_dataform_v1beta1_TriggerEvaluationRecord_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_TriggerEvaluationRecord_descriptor, @@ -3455,7 +3491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationTime", "Status", }); internal_static_google_cloud_dataform_v1beta1_WorkflowTrigger_descriptor = - getDescriptor().getMessageType(90); + getDescriptor().getMessageType(91); internal_static_google_cloud_dataform_v1beta1_WorkflowTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowTrigger_descriptor, @@ -3463,7 +3499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TableUpdateTrigger", "Trigger", }); internal_static_google_cloud_dataform_v1beta1_TableUpdateTrigger_descriptor = - getDescriptor().getMessageType(91); + getDescriptor().getMessageType(92); internal_static_google_cloud_dataform_v1beta1_TableUpdateTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_TableUpdateTrigger_descriptor, @@ -3471,7 +3507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "TriggerUpdateTime", }); internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor = - getDescriptor().getMessageType(92); + getDescriptor().getMessageType(93); internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor, @@ -3499,7 +3535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotMetadata_descriptor = - getDescriptor().getMessageType(93); + getDescriptor().getMessageType(94); internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotMetadata_descriptor, @@ -3507,7 +3543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RepositorySnapshotUri", "Crc32CChecksum", "Generation", }); internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotDestination_descriptor = - getDescriptor().getMessageType(94); + getDescriptor().getMessageType(95); internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotDestination_descriptor, @@ -3515,7 +3551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RepositorySnapshotUri", }); internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_descriptor = - getDescriptor().getMessageType(95); + getDescriptor().getMessageType(96); internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_descriptor, @@ -3527,7 +3563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RepositorySnapshotStorage", }); internal_static_google_cloud_dataform_v1beta1_PipelineConfig_descriptor = - getDescriptor().getMessageType(96); + getDescriptor().getMessageType(97); internal_static_google_cloud_dataform_v1beta1_PipelineConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PipelineConfig_descriptor, @@ -3535,7 +3571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PipelineType", "Path", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor = - getDescriptor().getMessageType(97); + getDescriptor().getMessageType(98); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor, @@ -3543,7 +3579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor = - getDescriptor().getMessageType(98); + getDescriptor().getMessageType(99); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor, @@ -3551,7 +3587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResults", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor = - getDescriptor().getMessageType(99); + getDescriptor().getMessageType(100); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor, @@ -3559,7 +3595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor = - getDescriptor().getMessageType(100); + getDescriptor().getMessageType(101); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor, @@ -3567,7 +3603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CompilationResult", }); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultMetadata_descriptor = - getDescriptor().getMessageType(101); + getDescriptor().getMessageType(102); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultMetadata_descriptor, @@ -3575,7 +3611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Target", "State", "CreateCompilationResultRequest", }); internal_static_google_cloud_dataform_v1beta1_Target_descriptor = - getDescriptor().getMessageType(102); + getDescriptor().getMessageType(103); internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Target_descriptor, @@ -3583,7 +3619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Schema", "Name", }); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor = - getDescriptor().getMessageType(103); + getDescriptor().getMessageType(104); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor, @@ -3609,7 +3645,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor = - getDescriptor().getMessageType(104); + getDescriptor().getMessageType(105); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor, @@ -3784,7 +3820,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Column", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor = - getDescriptor().getMessageType(105); + getDescriptor().getMessageType(106); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor, @@ -3792,7 +3828,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor = - getDescriptor().getMessageType(106); + getDescriptor().getMessageType(107); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor, @@ -3800,7 +3836,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResultActions", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor = - getDescriptor().getMessageType(107); + getDescriptor().getMessageType(108); internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor, @@ -3826,7 +3862,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocation", "ErrorStatus", "ExecutionTime", "Result", }); internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor = - getDescriptor().getMessageType(108); + getDescriptor().getMessageType(109); internal_static_google_cloud_dataform_v1beta1_InvocationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor, @@ -3851,7 +3887,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserEmail", "OauthConfig", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor = - getDescriptor().getMessageType(109); + getDescriptor().getMessageType(110); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor, @@ -3859,7 +3895,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor = - getDescriptor().getMessageType(110); + getDescriptor().getMessageType(111); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor, @@ -3867,7 +3903,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowConfigs", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(111); + getDescriptor().getMessageType(112); internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor, @@ -3875,7 +3911,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(112); + getDescriptor().getMessageType(113); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor, @@ -3883,7 +3919,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowConfig", "WorkflowConfigId", }); internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(113); + getDescriptor().getMessageType(114); internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor, @@ -3891,7 +3927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "WorkflowConfig", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(114); + getDescriptor().getMessageType(115); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor, @@ -3899,7 +3935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor = - getDescriptor().getMessageType(115); + getDescriptor().getMessageType(116); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor, @@ -3918,7 +3954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationSource", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor = - getDescriptor().getMessageType(116); + getDescriptor().getMessageType(117); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor, @@ -3926,7 +3962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor = - getDescriptor().getMessageType(117); + getDescriptor().getMessageType(118); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor, @@ -3934,7 +3970,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocations", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(118); + getDescriptor().getMessageType(119); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor, @@ -3942,7 +3978,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(119); + getDescriptor().getMessageType(120); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor, @@ -3950,7 +3986,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowInvocation", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(120); + getDescriptor().getMessageType(121); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor, @@ -3958,7 +3994,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(121); + getDescriptor().getMessageType(122); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor, @@ -3966,13 +4002,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_descriptor = - getDescriptor().getMessageType(122); + getDescriptor().getMessageType(123); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor = - getDescriptor().getMessageType(123); + getDescriptor().getMessageType(124); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor, @@ -4074,7 +4110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalBilledBytes", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor = - getDescriptor().getMessageType(124); + getDescriptor().getMessageType(125); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor, @@ -4082,7 +4118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor = - getDescriptor().getMessageType(125); + getDescriptor().getMessageType(126); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor, @@ -4090,7 +4126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocationActions", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_Config_descriptor = - getDescriptor().getMessageType(126); + getDescriptor().getMessageType(127); internal_static_google_cloud_dataform_v1beta1_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Config_descriptor, @@ -4098,7 +4134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DefaultKmsKeyName", "InternalMetadata", }); internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_descriptor = - getDescriptor().getMessageType(127); + getDescriptor().getMessageType(128); internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_descriptor, @@ -4106,7 +4142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor = - getDescriptor().getMessageType(128); + getDescriptor().getMessageType(129); internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor, @@ -4114,7 +4150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "UpdateMask", }); internal_static_google_cloud_dataform_v1beta1_Folder_descriptor = - getDescriptor().getMessageType(129); + getDescriptor().getMessageType(130); internal_static_google_cloud_dataform_v1beta1_Folder_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Folder_descriptor, @@ -4129,7 +4165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatorIamPrincipal", }); internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor = - getDescriptor().getMessageType(130); + getDescriptor().getMessageType(131); internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor, @@ -4137,7 +4173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Folder", "FolderId", }); internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor = - getDescriptor().getMessageType(131); + getDescriptor().getMessageType(132); internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor, @@ -4145,7 +4181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DestinationContainingFolder", }); internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor = - getDescriptor().getMessageType(132); + getDescriptor().getMessageType(133); internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor, @@ -4153,7 +4189,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor = - getDescriptor().getMessageType(133); + getDescriptor().getMessageType(134); internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor, @@ -4161,7 +4197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Folder", }); internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor = - getDescriptor().getMessageType(134); + getDescriptor().getMessageType(135); internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor, @@ -4169,7 +4205,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor = - getDescriptor().getMessageType(135); + getDescriptor().getMessageType(136); internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor, @@ -4177,7 +4213,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor = - getDescriptor().getMessageType(136); + getDescriptor().getMessageType(137); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor, @@ -4185,7 +4221,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor = - getDescriptor().getMessageType(137); + getDescriptor().getMessageType(138); internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor, @@ -4193,7 +4229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Target", "State", "PercentComplete", }); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor = - getDescriptor().getMessageType(138); + getDescriptor().getMessageType(139); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor, @@ -4201,7 +4237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor = - getDescriptor().getMessageType(139); + getDescriptor().getMessageType(140); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor, @@ -4218,7 +4254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor = - getDescriptor().getMessageType(140); + getDescriptor().getMessageType(141); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor, @@ -4226,7 +4262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor = - getDescriptor().getMessageType(141); + getDescriptor().getMessageType(142); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor, @@ -4243,7 +4279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor = - getDescriptor().getMessageType(142); + getDescriptor().getMessageType(143); internal_static_google_cloud_dataform_v1beta1_TeamFolder_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor, @@ -4256,7 +4292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatorIamPrincipal", }); internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor = - getDescriptor().getMessageType(143); + getDescriptor().getMessageType(144); internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor, @@ -4264,7 +4300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TeamFolder", "TeamFolderId", }); internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor = - getDescriptor().getMessageType(144); + getDescriptor().getMessageType(145); internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor, @@ -4272,7 +4308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor = - getDescriptor().getMessageType(145); + getDescriptor().getMessageType(146); internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor, @@ -4280,7 +4316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "TeamFolder", }); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor = - getDescriptor().getMessageType(146); + getDescriptor().getMessageType(147); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor, @@ -4288,7 +4324,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor = - getDescriptor().getMessageType(147); + getDescriptor().getMessageType(148); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor, @@ -4296,7 +4332,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TeamFolder", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor = - getDescriptor().getMessageType(148); + getDescriptor().getMessageType(149); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor, @@ -4313,7 +4349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor = - getDescriptor().getMessageType(149); + getDescriptor().getMessageType(150); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor, @@ -4321,7 +4357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor = - getDescriptor().getMessageType(150); + getDescriptor().getMessageType(151); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor, @@ -4338,7 +4374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TeamFolder", "Entry", }); internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor = - getDescriptor().getMessageType(151); + getDescriptor().getMessageType(152); internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor, @@ -4346,7 +4382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Target", "State", "PercentComplete", }); internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor = - getDescriptor().getMessageType(152); + getDescriptor().getMessageType(153); internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor, @@ -4354,7 +4390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Target", "State", "PercentComplete", }); internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor = - getDescriptor().getMessageType(153); + getDescriptor().getMessageType(154); internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor, @@ -4368,7 +4404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RemainingChildResourcesCount", }); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesRequest_descriptor = - getDescriptor().getMessageType(154); + getDescriptor().getMessageType(155); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesRequest_descriptor, @@ -4376,7 +4412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_BranchMetadata_descriptor = - getDescriptor().getMessageType(155); + getDescriptor().getMessageType(156); internal_static_google_cloud_dataform_v1beta1_BranchMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_BranchMetadata_descriptor, @@ -4384,7 +4420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BranchName", "LastCommit", }); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesResponse_descriptor = - getDescriptor().getMessageType(156); + getDescriptor().getMessageType(157); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesResponse_descriptor, @@ -4392,7 +4428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branches", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchRequest_descriptor = - getDescriptor().getMessageType(157); + getDescriptor().getMessageType(158); internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchRequest_descriptor, @@ -4400,7 +4436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchResponse_descriptor = - getDescriptor().getMessageType(158); + getDescriptor().getMessageType(159); internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchResponse_descriptor, diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java index 455ed2ad6d68..30a75239c007 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java @@ -375,7 +375,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Deprecated @@ -395,7 +395,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The tokenStatus. */ @java.lang.Deprecated @@ -2062,7 +2062,7 @@ public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -2085,7 +2085,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The tokenStatus. */ @java.lang.Override @@ -3669,7 +3669,7 @@ public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -3692,7 +3692,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ @@ -3718,7 +3718,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The tokenStatus. */ @java.lang.Override @@ -3748,7 +3748,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @param value The tokenStatus to set. * @return This builder for chaining. */ @@ -3778,7 +3778,7 @@ public Builder setTokenStatus( * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto index 83732afbd728..386fff57a40c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto @@ -384,6 +384,20 @@ service Dataform { option (google.api.method_signature) = "parent,workspace,workspace_id"; } + // Creates a new Workspace in a given Repository asynchronously. + rpc CreateWorkspaceLongRunning(CreateWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning" + body: "workspace" + }; + option (google.api.method_signature) = "parent,workspace,workspace_id"; + option (google.longrunning.operation_info) = { + response_type: "Workspace" + metadata_type: "CreateWorkspaceMetadata" + }; + } + // Deletes a single Workspace. rpc DeleteWorkspace(DeleteWorkspaceRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -1658,6 +1672,46 @@ message CreateWorkspaceRequest { string workspace_id = 3 [(google.api.field_behavior) = REQUIRED]; } +// Represents the metadata of the `CreateWorkspaceLongRunning` operation. +message CreateWorkspaceMetadata { + // State of the LRO. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The LRO has been created. + CREATED = 1; + + // The LRO is in progress. + RUNNING = 2; + + // The RPC call has finished. + FINISHED = 3; + + // The LRO has succeeded. + SUCCEEDED = 4; + + // The LRO has failed. + FAILED = 5; + } + + // The unwrapped request. + oneof request { + // Output only. The CreateWorkspace requested. + CreateWorkspaceRequest create_workspace_request = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The ID of the LRO. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the LRO. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // `DeleteWorkspace` request message. message DeleteWorkspaceRequest { // Required. The workspace resource's name. diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java new file mode 100644 index 000000000000..48a2d07df183 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.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.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkspaceLongRunning { + + public static void main(String[] args) throws Exception { + asyncCreateWorkspaceLongRunning(); + } + + public static void asyncCreateWorkspaceLongRunning() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + ApiFuture future = + dataformClient.createWorkspaceLongRunningCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java new file mode 100644 index 000000000000..342ebe5c6b94 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.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.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; +import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; + +public class AsyncCreateWorkspaceLongRunningLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkspaceLongRunningLRO(); + } + + public static void asyncCreateWorkspaceLongRunningLRO() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + OperationFuture future = + dataformClient.createWorkspaceLongRunningOperationCallable().futureCall(request); + // Do something. + Workspace response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java new file mode 100644 index 000000000000..bc11a42e4b46 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.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.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_sync] +import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; + +public class SyncCreateWorkspaceLongRunning { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunning(); + } + + public static void syncCreateWorkspaceLongRunning() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + Workspace response = dataformClient.createWorkspaceLongRunningAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java new file mode 100644 index 000000000000..07ad9099437b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.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.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_RepositorynameWorkspaceString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; + +public class SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunningRepositorynameWorkspaceString(); + } + + public static void syncCreateWorkspaceLongRunningRepositorynameWorkspaceString() + 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 (DataformClient dataformClient = DataformClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + Workspace response = + dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_RepositorynameWorkspaceString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java new file mode 100644 index 000000000000..c0628b12ddc8 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.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.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_StringWorkspaceString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; + +public class SyncCreateWorkspaceLongRunningStringWorkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunningStringWorkspaceString(); + } + + public static void syncCreateWorkspaceLongRunningStringWorkspaceString() 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 (DataformClient dataformClient = DataformClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + Workspace response = + dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_StringWorkspaceString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java new file mode 100644 index 000000000000..5e5b016ed366 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.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.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkspaceLongRunning { + + public static void main(String[] args) throws Exception { + asyncCreateWorkspaceLongRunning(); + } + + public static void asyncCreateWorkspaceLongRunning() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + ApiFuture future = + dataformClient.createWorkspaceLongRunningCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java new file mode 100644 index 000000000000..ff935164a02c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.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.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; + +public class AsyncCreateWorkspaceLongRunningLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkspaceLongRunningLRO(); + } + + public static void asyncCreateWorkspaceLongRunningLRO() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + OperationFuture future = + dataformClient.createWorkspaceLongRunningOperationCallable().futureCall(request); + // Do something. + Workspace response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java new file mode 100644 index 000000000000..f41c03f6dd4b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.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.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_sync] +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; + +public class SyncCreateWorkspaceLongRunning { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunning(); + } + + public static void syncCreateWorkspaceLongRunning() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + Workspace response = dataformClient.createWorkspaceLongRunningAsync(request).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java new file mode 100644 index 000000000000..32b81708a710 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.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.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_RepositorynameWorkspaceString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; + +public class SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunningRepositorynameWorkspaceString(); + } + + public static void syncCreateWorkspaceLongRunningRepositorynameWorkspaceString() + 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 (DataformClient dataformClient = DataformClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + Workspace response = + dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_RepositorynameWorkspaceString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java new file mode 100644 index 000000000000..a2ac40229a37 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.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.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_StringWorkspaceString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; + +public class SyncCreateWorkspaceLongRunningStringWorkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunningStringWorkspaceString(); + } + + public static void syncCreateWorkspaceLongRunningStringWorkspaceString() 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 (DataformClient dataformClient = DataformClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + Workspace response = + dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_StringWorkspaceString_sync] diff --git a/java-datalineage/README.md b/java-datalineage/README.md index a6a2d9c8eeba..7a92c551543c 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.94.0 + 0.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datalineage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.94.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/overview [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-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.95.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-datamanager/README.md b/java-datamanager/README.md index ec512cff2aef..13f316b48507 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads data-manager - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.23.0' +implementation 'com.google.api-ads:data-manager:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.23.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.24.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/data-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.24.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-dataplex/README.md b/java-dataplex/README.md index eb31cb16a514..ab81ff41ecde 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataplex' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.100.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataplex/latest/overview [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-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.101.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-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 99e5611c9959..4286a828f664 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataproc-metastore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.103.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc-metastore/latest/overview [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-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.104.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-dataproc/README.md b/java-dataproc/README.md index 7f9b92376da3..f3921c031646 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.99.0 + 4.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.99.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/overview [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-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.100.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-datastore/README.md b/java-datastore/README.md index 0dfde09b4f74..b0e0059245f3 100644 --- a/java-datastore/README.md +++ b/java-datastore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastore - 3.10.0 + 3.11.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastore:3.10.0' +implementation 'com.google.cloud:google-cloud-datastore:3.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "3.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "3.11.0" ``` ## Authentication @@ -473,7 +473,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastore/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-datastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/3.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/3.11.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-datastream/README.md b/java-datastream/README.md index c02f68952e47..2a894446ddff 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastream' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.101.0' +implementation 'com.google.cloud:google-cloud-datastream:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastream/latest/overview [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-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.102.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-deploy/README.md b/java-deploy/README.md index ed8c47c7fdb1..3a053961082f 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-deploy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.100.0' +implementation 'com.google.cloud:google-cloud-deploy:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-deploy/latest/overview [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-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.101.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-designcenter/README.md b/java-designcenter/README.md index f534aca4f202..0cebecc83a49 100644 --- a/java-designcenter/README.md +++ b/java-designcenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-designcenter - 0.2.0 + 0.3.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-designcenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-designcenter:0.2.0' +implementation 'com.google.cloud:google-cloud-designcenter:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-designcenter" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-designcenter" % "0.3.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-designcenter/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-designcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-designcenter/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-designcenter/0.3.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-developerconnect/README.md b/java-developerconnect/README.md index d27555e83784..77dca94e6931 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.59.0 + 0.60.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-developerconnect' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.59.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.60.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/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-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.60.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-developerknowledge/README.md b/java-developerknowledge/README.md index e3d82c6f7b86..4e0398e36377 100644 --- a/java-developerknowledge/README.md +++ b/java-developerknowledge/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developer-knowledge - 0.10.0 + 0.11.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-developer-knowledge' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developer-knowledge:0.10.0' +implementation 'com.google.cloud:google-cloud-developer-knowledge:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developer-knowledge" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developer-knowledge" % "0.11.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developer-knowledge/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-developer-knowledge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developer-knowledge/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developer-knowledge/0.11.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-devicestreaming/README.md b/java-devicestreaming/README.md index 594f0178477d..fd4fce339c41 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.42.0 + 0.43.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-devicestreaming' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.42.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.43.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/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-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.43.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-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 9a3231552394..611c7fad8fca 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.113.0 + 0.114.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dialogflow-cx' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.113.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.114.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.113.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.114.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/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-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.113.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.114.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-dialogflow/README.md b/java-dialogflow/README.md index 8818ee7fe13b..9572589d43fa 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.108.0 + 4.109.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dialogflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.108.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.109.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.108.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.109.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow/latest/overview [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-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.108.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.109.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-discoveryengine/README.md b/java-discoveryengine/README.md index 1f347902444b..82bed1574bc8 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.98.0 + 0.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-discoveryengine' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.98.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/overview [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-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.99.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-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java index 480d2b71a4ee..17f8d3cb472d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java @@ -303,6 +303,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * Project response = projectServiceClient.provisionProjectAsync(request).get(); * } @@ -339,6 +341,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * OperationFuture future = * projectServiceClient.provisionProjectOperationCallable().futureCall(request); @@ -375,6 +379,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * ApiFuture future = * projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java index 9196ba76b750..d12e93513407 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java @@ -304,6 +304,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * Project response = projectServiceClient.provisionProjectAsync(request).get(); * } @@ -340,6 +342,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * OperationFuture future = * projectServiceClient.provisionProjectOperationCallable().futureCall(request); @@ -376,6 +380,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * ApiFuture future = * projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java index 30664ec1dd1f..f472517ddd61 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java @@ -82,6 +82,7 @@ public class HttpJsonProjectServiceStub extends ProjectServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1beta/{name=projects/*/locations/*}:provision") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json index ea828c56e486..e24195ab5c74 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json @@ -8144,6 +8144,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest$ProvisionIntent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest$SaasParams", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json index 02a94bb126a6..4dac05a79a23 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json @@ -8171,6 +8171,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$ProvisionIntent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$SaasParams", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java index aa8d9e327df6..36fc572d4e25 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java @@ -61,43 +61,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n5google/cloud/discoveryengine/v1/projec" - + "t_service.proto\022\037google.cloud.discoverye" + "\n" + + "5google/cloud/discoveryengine/v1/project_service.proto\022\037google.cloud.discoverye" + "ngine.v1\032\034google/api/annotations.proto\032\027" + "google/api/client.proto\032\037google/api/fiel" + "d_behavior.proto\032\031google/api/resource.pr" - + "oto\032-google/cloud/discoveryengine/v1/pro" - + "ject.proto\032#google/longrunning/operation" - + "s.proto\"\305\002\n\027ProvisionProjectRequest\022=\n\004n" - + "ame\030\001 \001(\tB/\342A\001\002\372A(\n&discoveryengine.goog" - + "leapis.com/Project\022#\n\025accept_data_use_te" - + "rms\030\002 \001(\010B\004\342A\001\002\022$\n\026data_use_terms_versio" - + "n\030\003 \001(\tB\004\342A\001\002\022^\n\013saas_params\030\004 \001(\0132C.goo" - + "gle.cloud.discoveryengine.v1.ProvisionPr" - + "ojectRequest.SaasParamsB\004\342A\001\001\032@\n\nSaasPar" - + "ams\022\034\n\016accept_biz_qos\030\001 \001(\010B\004\342A\001\001\022\024\n\006is_" - + "biz\030\002 \001(\010B\004\342A\001\001\"\032\n\030ProvisionProjectMetad" - + "ata2\234\004\n\016ProjectService\022\267\002\n\020ProvisionProj" - + "ect\0228.google.cloud.discoveryengine.v1.Pr" - + "ovisionProjectRequest\032\035.google.longrunni" - + "ng.Operation\"\311\001\312Ac\n\'google.cloud.discove" - + "ryengine.v1.Project\0228google.cloud.discov" - + "eryengine.v1.ProvisionProjectMetadata\332A\004" - + "name\202\323\344\223\002V\"\037/v1/{name=projects/*}:provis" - + "ion:\001*Z0\"+/v1/{name=projects/*/locations" - + "/*}:provision:\001*\032\317\001\312A\036discoveryengine.go" - + "ogleapis.com\322A\252\001https://www.googleapis.c" - + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/discoveryengine.readwrite" - + ",https://www.googleapis.com/auth/discove" - + "ryengine.serving.readwriteB\206\002\n#com.googl" - + "e.cloud.discoveryengine.v1B\023ProjectServi" - + "ceProtoP\001ZMcloud.google.com/go/discovery" - + "engine/apiv1/discoveryenginepb;discovery" - + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou" - + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc" - + "overyEngine\\V1\352\002\"Google::Cloud::Discover" - + "yEngine::V1b\006proto3" + + "oto\032,google/cloud/discoveryengine/v1/common.proto\032-google/cloud/discoveryengine/" + + "v1/project.proto\032#google/longrunning/operations.proto\"\204\005\n" + + "\027ProvisionProjectRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&discoveryengine.googleapis.com/Project\022#\n" + + "\025accept_data_use_terms\030\002 \001(\010B\004\342A\001\002\022$\n" + + "\026data_use_terms_version\030\003 \001(\tB\004\342A\001\002\022^\n" + + "\013saas_params\030\004 \001(\013" + + "2C.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsB\004\342A\001\001\022h\n" + + "\020provision_intent\030\005 \001(\0162H.google.cloud.dis" + + "coveryengine.v1.ProvisionProjectRequest.ProvisionIntentB\004\342A\001\001\022D\n\n" + + "idp_config\030\006 \001(" + + "\0132*.google.cloud.discoveryengine.v1.IdpConfigB\004\342A\001\001\022 \n" + + "\022pre_provision_mode\030\010 \001(\010B\004\342A\001\001\032@\n\n" + + "SaasParams\022\034\n" + + "\016accept_biz_qos\030\001 \001(\010B\004\342A\001\001\022\024\n" + + "\006is_biz\030\002 \001(\010B\004\342A\001\001\"k\n" + + "\017ProvisionIntent\022 \n" + + "\034PROVISION_INTENT_UNSPECIFIED\020\000\022\031\n" + + "\025PROVISION_INTENT_SOBI\020\001\022\033\n" + + "\027PROVISION_INTENT_LEGACY\020\002\"\032\n" + + "\030ProvisionProjectMetadata2\234\004\n" + + "\016ProjectService\022\267\002\n" + + "\020ProvisionProject\0228.google.cloud.discoveryengine." + + "v1.ProvisionProjectRequest\032\035.google.longrunning.Operation\"\311\001\312Ac\n" + + "\'google.cloud.discoveryengine.v1.Project\0228google.cloud.d" + + "iscoveryengine.v1.ProvisionProjectMetada" + + "ta\332A\004name\202\323\344\223\002V\"\037/v1/{name=projects/*}:p" + + "rovision:\001*Z0\"+/v1/{name=projects/*/loca" + + "tions/*}:provision:\001*\032\317\001\312A\036discoveryengi" + + "ne.googleapis.com\322A\252\001https://www.googlea" + + "pis.com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.read" + + "write,https://www.googleapis.com/auth/discoveryengine.serving.readwriteB\206\002\n" + + "#com.google.cloud.discoveryengine.v1B\023Project" + + "ServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;disc" + + "overyenginepb\242\002\017DISCOVERYENGINE\252\002\037Google" + + ".Cloud.DiscoveryEngine.V1\312\002\037Google\\Cloud" + + "\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -107,6 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), com.google.cloud.discoveryengine.v1.ProjectProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), }); @@ -116,7 +123,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_descriptor, new java.lang.String[] { - "Name", "AcceptDataUseTerms", "DataUseTermsVersion", "SaasParams", + "Name", + "AcceptDataUseTerms", + "DataUseTermsVersion", + "SaasParams", + "ProvisionIntent", + "IdpConfig", + "PreProvisionMode", }); internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_descriptor = internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_descriptor @@ -138,6 +151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); com.google.cloud.discoveryengine.v1.ProjectProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java index 7ff40d84fdf6..6fc76e54b832 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java @@ -56,6 +56,7 @@ private ProvisionProjectRequest(com.google.protobuf.GeneratedMessage.Builder private ProvisionProjectRequest() { name_ = ""; dataUseTermsVersion_ = ""; + provisionIntent_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -73,6 +74,181 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.Builder.class); } + /** + * + * + *
+   * Which experience the caller is provisioning.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent} + */ + public enum ProvisionIntent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * PROVISION_INTENT_UNSPECIFIED = 0; + */ + PROVISION_INTENT_UNSPECIFIED(0), + /** + * + * + *
+     * The caller is provisioning for the new Gemini Enterprise experience.
+     * 
+ * + * PROVISION_INTENT_SOBI = 1; + */ + PROVISION_INTENT_SOBI(1), + /** + * + * + *
+     * The caller is provisioning for the classic Gemini Enterprise
+     * experience.
+     * 
+ * + * PROVISION_INTENT_LEGACY = 2; + */ + PROVISION_INTENT_LEGACY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProvisionIntent"); + } + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * PROVISION_INTENT_UNSPECIFIED = 0; + */ + public static final int PROVISION_INTENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The caller is provisioning for the new Gemini Enterprise experience.
+     * 
+ * + * PROVISION_INTENT_SOBI = 1; + */ + public static final int PROVISION_INTENT_SOBI_VALUE = 1; + + /** + * + * + *
+     * The caller is provisioning for the classic Gemini Enterprise
+     * experience.
+     * 
+ * + * PROVISION_INTENT_LEGACY = 2; + */ + public static final int PROVISION_INTENT_LEGACY_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 ProvisionIntent 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 ProvisionIntent forNumber(int value) { + switch (value) { + case 0: + return PROVISION_INTENT_UNSPECIFIED; + case 1: + return PROVISION_INTENT_SOBI; + case 2: + return PROVISION_INTENT_LEGACY; + 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 ProvisionIntent findValueByNumber(int number) { + return ProvisionIntent.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.discoveryengine.v1.ProvisionProjectRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProvisionIntent[] VALUES = values(); + + public static ProvisionIntent 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 ProvisionIntent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent) + } + public interface SaasParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) @@ -922,6 +1098,148 @@ public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams ge : saasParams_; } + public static final int PROVISION_INTENT_FIELD_NUMBER = 5; + private int provisionIntent_ = 0; + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + @java.lang.Override + public int getProvisionIntentValue() { + return provisionIntent_; + } + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent() { + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent result = + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent.forNumber( + provisionIntent_); + return result == null + ? com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent.UNRECOGNIZED + : result; + } + + public static final int IDP_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1.IdpConfig idpConfig_; + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + @java.lang.Override + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + public static final int PRE_PROVISION_MODE_FIELD_NUMBER = 8; + private boolean preProvisionMode_ = false; + + /** + * + * + *
+   * Optional. Runs only the common project-level pre-provisioning steps
+   * (service agents, agent identity pools, project-scoped extension bindings,
+   * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+   * template) without reading or writing the Customer, Collection, or UserStore
+   * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+   * when `true`.
+   *
+   * Assumes no customer exists yet. Customer-level or non-SOBI fields
+   * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+   * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+   * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+   * response.
+   * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + @java.lang.Override + public boolean getPreProvisionMode() { + return preProvisionMode_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -948,6 +1266,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getSaasParams()); } + if (provisionIntent_ + != com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent + .PROVISION_INTENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, provisionIntent_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getIdpConfig()); + } + if (preProvisionMode_ != false) { + output.writeBool(8, preProvisionMode_); + } getUnknownFields().writeTo(output); } @@ -969,6 +1299,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSaasParams()); } + if (provisionIntent_ + != com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent + .PROVISION_INTENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, provisionIntent_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIdpConfig()); + } + if (preProvisionMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, preProvisionMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -992,6 +1334,12 @@ public boolean equals(final java.lang.Object obj) { if (hasSaasParams()) { if (!getSaasParams().equals(other.getSaasParams())) return false; } + if (provisionIntent_ != other.provisionIntent_) return false; + if (hasIdpConfig() != other.hasIdpConfig()) return false; + if (hasIdpConfig()) { + if (!getIdpConfig().equals(other.getIdpConfig())) return false; + } + if (getPreProvisionMode() != other.getPreProvisionMode()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1013,6 +1361,14 @@ public int hashCode() { hash = (37 * hash) + SAAS_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getSaasParams().hashCode(); } + hash = (37 * hash) + PROVISION_INTENT_FIELD_NUMBER; + hash = (53 * hash) + provisionIntent_; + if (hasIdpConfig()) { + hash = (37 * hash) + IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdpConfig().hashCode(); + } + hash = (37 * hash) + PRE_PROVISION_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreProvisionMode()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1158,6 +1514,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSaasParamsFieldBuilder(); + internalGetIdpConfigFieldBuilder(); } } @@ -1173,6 +1530,13 @@ public Builder clear() { saasParamsBuilder_.dispose(); saasParamsBuilder_ = null; } + provisionIntent_ = 0; + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + preProvisionMode_ = false; return this; } @@ -1223,6 +1587,16 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ProvisionProjectR result.saasParams_ = saasParamsBuilder_ == null ? saasParams_ : saasParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.provisionIntent_ = provisionIntent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.idpConfig_ = idpConfigBuilder_ == null ? idpConfig_ : idpConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.preProvisionMode_ = preProvisionMode_; + } result.bitField0_ |= to_bitField0_; } @@ -1255,6 +1629,15 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ProvisionProjectReq if (other.hasSaasParams()) { mergeSaasParams(other.getSaasParams()); } + if (other.provisionIntent_ != 0) { + setProvisionIntentValue(other.getProvisionIntentValue()); + } + if (other.hasIdpConfig()) { + mergeIdpConfig(other.getIdpConfig()); + } + if (other.getPreProvisionMode() != false) { + setPreProvisionMode(other.getPreProvisionMode()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1306,6 +1689,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + provisionIntent_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetIdpConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + preProvisionMode_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1871,6 +2273,441 @@ public Builder clearSaasParams() { return saasParamsBuilder_; } + private int provisionIntent_ = 0; + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + @java.lang.Override + public int getProvisionIntentValue() { + return provisionIntent_; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for provisionIntent to set. + * @return This builder for chaining. + */ + public Builder setProvisionIntentValue(int value) { + provisionIntent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent() { + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent result = + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent.forNumber( + provisionIntent_); + return result == null + ? com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The provisionIntent to set. + * @return This builder for chaining. + */ + public Builder setProvisionIntent( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + provisionIntent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisionIntent() { + bitField0_ = (bitField0_ & ~0x00000010); + provisionIntent_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.IdpConfig idpConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder> + idpConfigBuilder_; + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + public com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig() { + if (idpConfigBuilder_ == null) { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } else { + return idpConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdpConfig(com.google.cloud.discoveryengine.v1.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idpConfig_ = value; + } else { + idpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdpConfig( + com.google.cloud.discoveryengine.v1.IdpConfig.Builder builderForValue) { + if (idpConfigBuilder_ == null) { + idpConfig_ = builderForValue.build(); + } else { + idpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIdpConfig(com.google.cloud.discoveryengine.v1.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && idpConfig_ != null + && idpConfig_ != com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance()) { + getIdpConfigBuilder().mergeFrom(value); + } else { + idpConfig_ = value; + } + } else { + idpConfigBuilder_.mergeFrom(value); + } + if (idpConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.IdpConfig.Builder getIdpConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetIdpConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder() { + if (idpConfigBuilder_ != null) { + return idpConfigBuilder_.getMessageOrBuilder(); + } else { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder> + internalGetIdpConfigFieldBuilder() { + if (idpConfigBuilder_ == null) { + idpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder>( + getIdpConfig(), getParentForChildren(), isClean()); + idpConfig_ = null; + } + return idpConfigBuilder_; + } + + private boolean preProvisionMode_; + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + @java.lang.Override + public boolean getPreProvisionMode() { + return preProvisionMode_; + } + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preProvisionMode to set. + * @return This builder for chaining. + */ + public Builder setPreProvisionMode(boolean value) { + + preProvisionMode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreProvisionMode() { + bitField0_ = (bitField0_ & ~0x00000040); + preProvisionMode_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ProvisionProjectRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java index dd3d7a45d60c..3193f168cdbc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java @@ -152,4 +152,109 @@ public interface ProvisionProjectRequestOrBuilder */ com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder getSaasParamsOrBuilder(); + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + int getProvisionIntentValue(); + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent getProvisionIntent(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + boolean hasIdpConfig(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Runs only the common project-level pre-provisioning steps
+   * (service agents, agent identity pools, project-scoped extension bindings,
+   * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+   * template) without reading or writing the Customer, Collection, or UserStore
+   * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+   * when `true`.
+   *
+   * Assumes no customer exists yet. Customer-level or non-SOBI fields
+   * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+   * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+   * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+   * response.
+   * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + boolean getPreProvisionMode(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto index 20ded2ab3182..0302691651dd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_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/discoveryengine/v1/common.proto"; import "google/cloud/discoveryengine/v1/project.proto"; import "google/longrunning/operations.proto"; @@ -81,6 +82,19 @@ message ProvisionProjectRequest { bool is_biz = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Which experience the caller is provisioning. + enum ProvisionIntent { + // Unspecified. + PROVISION_INTENT_UNSPECIFIED = 0; + + // The caller is provisioning for the new Gemini Enterprise experience. + PROVISION_INTENT_SOBI = 1; + + // The caller is provisioning for the classic Gemini Enterprise + // experience. + PROVISION_INTENT_LEGACY = 2; + } + // Required. Full resource name of a // [Project][google.cloud.discoveryengine.v1.Project], such as // `projects/{project_id_or_number}`. @@ -105,6 +119,29 @@ message ProvisionProjectRequest { // Optional. Parameters for Agentspace. SaasParams saas_params = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The caller states whether the provisioning is for the new or the + // classic Gemini Enterprise experience. + ProvisionIntent provision_intent = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The identity provider for this location. When provided, the + // location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is + // set from it as part of provisioning. + IdpConfig idp_config = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Runs only the common project-level pre-provisioning steps + // (service agents, agent identity pools, project-scoped extension bindings, + // App Hub registry, Sobi agent default identity, and Sobi default Model Armor + // template) without reading or writing the Customer, Collection, or UserStore + // tables, CapabilityConfig, tenant project, default engine, or trial licenses + // when `true`. + // + // Assumes no customer exists yet. Customer-level or non-SOBI fields + // (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`, + // `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with + // `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty + // response. + bool pre_provision_mode = 8 [(google.api.field_behavior) = OPTIONAL]; } // Metadata associated with a project provision operation. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java index df34b2aa5528..dd7028004175 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java @@ -61,39 +61,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "9google/cloud/discoveryengine/v1beta/project_service.proto\022#google.cloud.discov" + "\n9google/cloud/discoveryengine/v1beta/pr" + + "oject_service.proto\022#google.cloud.discov" + "eryengine.v1beta\032\034google/api/annotations" + ".proto\032\027google/api/client.proto\032\037google/" + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\0321google/cloud/discoveryengin" - + "e/v1beta/project.proto\032#google/longrunning/operations.proto\"\311\002\n" - + "\027ProvisionProjectRequest\022=\n" - + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" - + "&discoveryengine.googleapis.com/Project\022#\n" - + "\025accept_data_use_terms\030\002 \001(\010B\004\342A\001\002\022$\n" - + "\026data_use_terms_version\030\003 \001(\tB\004\342A\001\002\022b\n" - + "\013saas_params\030\004 \001(\0132G.google.cloud.discoveryengine.v1" - + "beta.ProvisionProjectRequest.SaasParamsB\004\342A\001\001\032@\n\n" - + "SaasParams\022\034\n" - + "\016accept_biz_qos\030\001 \001(\010B\004\342A\001\001\022\024\n" - + "\006is_biz\030\002 \001(\010B\004\342A\001\001\"\032\n" - + "\030ProvisionProjectMetadata2\372\003\n" - + "\016ProjectService\022\225\002\n" - + "\020ProvisionProject\022<.google.cloud.disco" - + "veryengine.v1beta.ProvisionProjectRequest\032\035.google.longrunning.Operation\"\243\001\312Ak\n" - + "+google.cloud.discoveryengine.v1beta.Project\022 private ProvisionProjectRequest() { name_ = ""; dataUseTermsVersion_ = ""; + provisionIntent_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -73,6 +74,182 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.Builder.class); } + /** + * + * + *
+   * Which experience the caller is provisioning.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent} + */ + public enum ProvisionIntent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * PROVISION_INTENT_UNSPECIFIED = 0; + */ + PROVISION_INTENT_UNSPECIFIED(0), + /** + * + * + *
+     * The caller is provisioning for the new Gemini Enterprise experience.
+     * 
+ * + * PROVISION_INTENT_SOBI = 1; + */ + PROVISION_INTENT_SOBI(1), + /** + * + * + *
+     * The caller is provisioning for the classic Gemini Enterprise
+     * experience.
+     * 
+ * + * PROVISION_INTENT_LEGACY = 2; + */ + PROVISION_INTENT_LEGACY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProvisionIntent"); + } + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * PROVISION_INTENT_UNSPECIFIED = 0; + */ + public static final int PROVISION_INTENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The caller is provisioning for the new Gemini Enterprise experience.
+     * 
+ * + * PROVISION_INTENT_SOBI = 1; + */ + public static final int PROVISION_INTENT_SOBI_VALUE = 1; + + /** + * + * + *
+     * The caller is provisioning for the classic Gemini Enterprise
+     * experience.
+     * 
+ * + * PROVISION_INTENT_LEGACY = 2; + */ + public static final int PROVISION_INTENT_LEGACY_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 ProvisionIntent 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 ProvisionIntent forNumber(int value) { + switch (value) { + case 0: + return PROVISION_INTENT_UNSPECIFIED; + case 1: + return PROVISION_INTENT_SOBI; + case 2: + return PROVISION_INTENT_LEGACY; + 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 ProvisionIntent findValueByNumber(int number) { + return ProvisionIntent.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.discoveryengine.v1beta.ProvisionProjectRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProvisionIntent[] VALUES = values(); + + public static ProvisionIntent 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 ProvisionIntent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent) + } + public interface SaasParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) @@ -930,6 +1107,149 @@ public boolean hasSaasParams() { : saasParams_; } + public static final int PROVISION_INTENT_FIELD_NUMBER = 5; + private int provisionIntent_ = 0; + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + @java.lang.Override + public int getProvisionIntentValue() { + return provisionIntent_; + } + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent() { + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent result = + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent.forNumber( + provisionIntent_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + .UNRECOGNIZED + : result; + } + + public static final int IDP_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.IdpConfig idpConfig_; + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + @java.lang.Override + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + public static final int PRE_PROVISION_MODE_FIELD_NUMBER = 8; + private boolean preProvisionMode_ = false; + + /** + * + * + *
+   * Optional. Runs only the common project-level pre-provisioning steps
+   * (service agents, agent identity pools, project-scoped extension bindings,
+   * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+   * template) without reading or writing the Customer, Collection, or UserStore
+   * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+   * when `true`.
+   *
+   * Assumes no customer exists yet. Customer-level or non-SOBI fields
+   * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+   * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+   * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+   * response.
+   * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + @java.lang.Override + public boolean getPreProvisionMode() { + return preProvisionMode_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -956,6 +1276,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getSaasParams()); } + if (provisionIntent_ + != com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + .PROVISION_INTENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, provisionIntent_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getIdpConfig()); + } + if (preProvisionMode_ != false) { + output.writeBool(8, preProvisionMode_); + } getUnknownFields().writeTo(output); } @@ -977,6 +1309,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSaasParams()); } + if (provisionIntent_ + != com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + .PROVISION_INTENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, provisionIntent_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIdpConfig()); + } + if (preProvisionMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, preProvisionMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1000,6 +1344,12 @@ public boolean equals(final java.lang.Object obj) { if (hasSaasParams()) { if (!getSaasParams().equals(other.getSaasParams())) return false; } + if (provisionIntent_ != other.provisionIntent_) return false; + if (hasIdpConfig() != other.hasIdpConfig()) return false; + if (hasIdpConfig()) { + if (!getIdpConfig().equals(other.getIdpConfig())) return false; + } + if (getPreProvisionMode() != other.getPreProvisionMode()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1021,6 +1371,14 @@ public int hashCode() { hash = (37 * hash) + SAAS_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getSaasParams().hashCode(); } + hash = (37 * hash) + PROVISION_INTENT_FIELD_NUMBER; + hash = (53 * hash) + provisionIntent_; + if (hasIdpConfig()) { + hash = (37 * hash) + IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdpConfig().hashCode(); + } + hash = (37 * hash) + PRE_PROVISION_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreProvisionMode()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1166,6 +1524,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSaasParamsFieldBuilder(); + internalGetIdpConfigFieldBuilder(); } } @@ -1181,6 +1540,13 @@ public Builder clear() { saasParamsBuilder_.dispose(); saasParamsBuilder_ = null; } + provisionIntent_ = 0; + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + preProvisionMode_ = false; return this; } @@ -1233,6 +1599,16 @@ private void buildPartial0( result.saasParams_ = saasParamsBuilder_ == null ? saasParams_ : saasParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.provisionIntent_ = provisionIntent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.idpConfig_ = idpConfigBuilder_ == null ? idpConfig_ : idpConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.preProvisionMode_ = preProvisionMode_; + } result.bitField0_ |= to_bitField0_; } @@ -1267,6 +1643,15 @@ public Builder mergeFrom( if (other.hasSaasParams()) { mergeSaasParams(other.getSaasParams()); } + if (other.provisionIntent_ != 0) { + setProvisionIntentValue(other.getProvisionIntentValue()); + } + if (other.hasIdpConfig()) { + mergeIdpConfig(other.getIdpConfig()); + } + if (other.getPreProvisionMode() != false) { + setPreProvisionMode(other.getPreProvisionMode()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1318,6 +1703,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + provisionIntent_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetIdpConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + preProvisionMode_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1884,6 +2288,443 @@ public Builder clearSaasParams() { return saasParamsBuilder_; } + private int provisionIntent_ = 0; + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + @java.lang.Override + public int getProvisionIntentValue() { + return provisionIntent_; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for provisionIntent to set. + * @return This builder for chaining. + */ + public Builder setProvisionIntentValue(int value) { + provisionIntent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent() { + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent result = + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent.forNumber( + provisionIntent_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The provisionIntent to set. + * @return This builder for chaining. + */ + public Builder setProvisionIntent( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + provisionIntent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisionIntent() { + bitField0_ = (bitField0_ & ~0x00000010); + provisionIntent_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.IdpConfig idpConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder> + idpConfigBuilder_; + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig() { + if (idpConfigBuilder_ == null) { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } else { + return idpConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdpConfig(com.google.cloud.discoveryengine.v1beta.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idpConfig_ = value; + } else { + idpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdpConfig( + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder builderForValue) { + if (idpConfigBuilder_ == null) { + idpConfig_ = builderForValue.build(); + } else { + idpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIdpConfig(com.google.cloud.discoveryengine.v1beta.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && idpConfig_ != null + && idpConfig_ + != com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance()) { + getIdpConfigBuilder().mergeFrom(value); + } else { + idpConfig_ = value; + } + } else { + idpConfigBuilder_.mergeFrom(value); + } + if (idpConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder getIdpConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetIdpConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder() { + if (idpConfigBuilder_ != null) { + return idpConfigBuilder_.getMessageOrBuilder(); + } else { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder> + internalGetIdpConfigFieldBuilder() { + if (idpConfigBuilder_ == null) { + idpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder>( + getIdpConfig(), getParentForChildren(), isClean()); + idpConfig_ = null; + } + return idpConfigBuilder_; + } + + private boolean preProvisionMode_; + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + @java.lang.Override + public boolean getPreProvisionMode() { + return preProvisionMode_; + } + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preProvisionMode to set. + * @return This builder for chaining. + */ + public Builder setPreProvisionMode(boolean value) { + + preProvisionMode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreProvisionMode() { + bitField0_ = (bitField0_ & ~0x00000040); + preProvisionMode_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java index 8e97767fe992..16fb34797217 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java @@ -152,4 +152,110 @@ public interface ProvisionProjectRequestOrBuilder */ com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParamsOrBuilder getSaasParamsOrBuilder(); + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + int getProvisionIntentValue(); + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + boolean hasIdpConfig(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Runs only the common project-level pre-provisioning steps
+   * (service agents, agent identity pools, project-scoped extension bindings,
+   * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+   * template) without reading or writing the Customer, Collection, or UserStore
+   * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+   * when `true`.
+   *
+   * Assumes no customer exists yet. Customer-level or non-SOBI fields
+   * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+   * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+   * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+   * response.
+   * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + boolean getPreProvisionMode(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto index 3a504a551fad..89f24f421dcb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_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/discoveryengine/v1beta/common.proto"; import "google/cloud/discoveryengine/v1beta/project.proto"; import "google/longrunning/operations.proto"; @@ -52,6 +53,10 @@ service ProjectService { option (google.api.http) = { post: "/v1beta/{name=projects/*}:provision" body: "*" + additional_bindings { + post: "/v1beta/{name=projects/*/locations/*}:provision" + body: "*" + } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { @@ -77,6 +82,19 @@ message ProvisionProjectRequest { bool is_biz = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Which experience the caller is provisioning. + enum ProvisionIntent { + // Unspecified. + PROVISION_INTENT_UNSPECIFIED = 0; + + // The caller is provisioning for the new Gemini Enterprise experience. + PROVISION_INTENT_SOBI = 1; + + // The caller is provisioning for the classic Gemini Enterprise + // experience. + PROVISION_INTENT_LEGACY = 2; + } + // Required. Full resource name of a // [Project][google.cloud.discoveryengine.v1beta.Project], such as // `projects/{project_id_or_number}`. @@ -101,6 +119,29 @@ message ProvisionProjectRequest { // Optional. Parameters for Agentspace. SaasParams saas_params = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The caller states whether the provisioning is for the new or the + // classic Gemini Enterprise experience. + ProvisionIntent provision_intent = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The identity provider for this location. When provided, the + // location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is + // set from it as part of provisioning. + IdpConfig idp_config = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Runs only the common project-level pre-provisioning steps + // (service agents, agent identity pools, project-scoped extension bindings, + // App Hub registry, Sobi agent default identity, and Sobi default Model Armor + // template) without reading or writing the Customer, Collection, or UserStore + // tables, CapabilityConfig, tenant project, default engine, or trial licenses + // when `true`. + // + // Assumes no customer exists yet. Customer-level or non-SOBI fields + // (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`, + // `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with + // `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty + // response. + bool pre_provision_mode = 8 [(google.api.field_behavior) = OPTIONAL]; } // Metadata associated with a project provision operation. diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java index 5565c063ddd3..6aa3e3d5b8f1 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1_generated_ProjectService_ProvisionProject_async] import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.IdpConfig; import com.google.cloud.discoveryengine.v1.ProjectName; import com.google.cloud.discoveryengine.v1.ProjectServiceClient; import com.google.cloud.discoveryengine.v1.ProvisionProjectRequest; @@ -42,6 +43,8 @@ public static void asyncProvisionProject() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); ApiFuture future = projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java index 4a6bb2944220..296ed1d269a5 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1_generated_ProjectService_ProvisionProject_LRO_async] import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1.IdpConfig; import com.google.cloud.discoveryengine.v1.Project; import com.google.cloud.discoveryengine.v1.ProjectName; import com.google.cloud.discoveryengine.v1.ProjectServiceClient; @@ -43,6 +44,8 @@ public static void asyncProvisionProjectLRO() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); OperationFuture future = projectServiceClient.provisionProjectOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java index 467bdfa91692..12368948c285 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java @@ -17,6 +17,7 @@ package com.google.cloud.discoveryengine.v1.samples; // [START discoveryengine_v1_generated_ProjectService_ProvisionProject_sync] +import com.google.cloud.discoveryengine.v1.IdpConfig; import com.google.cloud.discoveryengine.v1.Project; import com.google.cloud.discoveryengine.v1.ProjectName; import com.google.cloud.discoveryengine.v1.ProjectServiceClient; @@ -41,6 +42,8 @@ public static void syncProvisionProject() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); Project response = projectServiceClient.provisionProjectAsync(request).get(); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java index 8d2dbc486fd6..ad2563ec10a2 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1beta_generated_ProjectService_ProvisionProject_async] import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.IdpConfig; import com.google.cloud.discoveryengine.v1beta.ProjectName; import com.google.cloud.discoveryengine.v1beta.ProjectServiceClient; import com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest; @@ -42,6 +43,8 @@ public static void asyncProvisionProject() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); ApiFuture future = projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java index 289c6e39437d..62bc19754f9b 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1beta_generated_ProjectService_ProvisionProject_LRO_async] import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.IdpConfig; import com.google.cloud.discoveryengine.v1beta.Project; import com.google.cloud.discoveryengine.v1beta.ProjectName; import com.google.cloud.discoveryengine.v1beta.ProjectServiceClient; @@ -43,6 +44,8 @@ public static void asyncProvisionProjectLRO() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); OperationFuture future = projectServiceClient.provisionProjectOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java index 59f70629eea0..b25de688a6f3 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java @@ -17,6 +17,7 @@ package com.google.cloud.discoveryengine.v1beta.samples; // [START discoveryengine_v1beta_generated_ProjectService_ProvisionProject_sync] +import com.google.cloud.discoveryengine.v1beta.IdpConfig; import com.google.cloud.discoveryengine.v1beta.Project; import com.google.cloud.discoveryengine.v1beta.ProjectName; import com.google.cloud.discoveryengine.v1beta.ProjectServiceClient; @@ -41,6 +42,8 @@ public static void syncProvisionProject() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); Project response = projectServiceClient.provisionProjectAsync(request).get(); } diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index fc5e05c6023f..51fc92e7497a 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.99.0 + 0.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-distributedcloudedge' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.99.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-distributedcloudedge/latest/overview [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-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.100.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-dlp/README.md b/java-dlp/README.md index f796ec2ef6f8..7df0a92e3bb8 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.106.0 + 3.107.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dlp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.106.0' +implementation 'com.google.cloud:google-cloud-dlp:3.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.107.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dlp/latest/overview [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-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.107.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-dms/README.md b/java-dms/README.md index b427ab582826..d816a7d7e71d 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dms' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.101.0' +implementation 'com.google.cloud:google-cloud-dms:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dms/latest/overview [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-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.102.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-document-ai/README.md b/java-document-ai/README.md index af98dcf50fda..a76699402330 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.106.0 + 2.107.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-document-ai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.106.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.107.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-document-ai/latest/overview [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-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.107.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-domains/README.md b/java-domains/README.md index 34ee3f0f0f3a..2b90f4c5e502 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-domains' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.99.0' +implementation 'com.google.cloud:google-cloud-domains:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-domains/latest/overview [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-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.100.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-edgenetwork/README.md b/java-edgenetwork/README.md index d4c7fc1addec..e81e054fb40d 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.70.0 + 0.71.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-edgenetwork' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.70.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.71.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/overview [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-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.71.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-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 71bd0b11bd19..d7009e631463 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.98.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/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-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.99.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-errorreporting/README.md b/java-errorreporting/README.md index 830beb5a7f20..e11e326b9d81 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.223.0-beta + 0.224.0-beta ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-errorreporting' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.223.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.224.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.223.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.224.0-beta" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-errorreporting/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-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.223.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.224.0-beta [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-essential-contacts/README.md b/java-essential-contacts/README.md index d1eab1111d07..91e58f84427d 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-essential-contacts' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.102.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-essential-contacts/latest/overview [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-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.103.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-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 98f7be065fee..e2296aa9281e 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-eventarc-publishing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.102.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc-publishing/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-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.103.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-eventarc/README.md b/java-eventarc/README.md index 5831c269a71f..74809abdd17e 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-eventarc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.102.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc/latest/overview [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-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.103.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-filestore/README.md b/java-filestore/README.md index 8605aec43c76..a9d0181c746e 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.103.0 + 1.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-filestore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.103.0' +implementation 'com.google.cloud:google-cloud-filestore:1.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-filestore/latest/overview [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-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.104.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-financialservices/README.md b/java-financialservices/README.md index 9c9f5656bdae..65e937f7c82d 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.43.0 + 0.44.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-financialservices' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.43.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.44.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/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-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.44.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-firestore/README.md b/java-firestore/README.md index 5e2c944fd7f7..7c2d696def38 100644 --- a/java-firestore/README.md +++ b/java-firestore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-firestore - 3.52.0 + 3.53.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-firestore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-firestore:3.52.0' +implementation 'com.google.cloud:google-cloud-firestore:3.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.53.0" ``` ## Authentication @@ -197,7 +197,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-firestore/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-firestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.53.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-ftp/README.md b/java-ftp/README.md index a912d2f890df..80e8a1c440ff 100644 --- a/java-ftp/README.md +++ b/java-ftp/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ftp - 0.7.0 + 0.8.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-ftp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ftp:0.7.0' +implementation 'com.google.cloud:google-cloud-ftp:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ftp" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ftp" % "0.8.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ftp/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-ftp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ftp/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ftp/0.8.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-functions/README.md b/java-functions/README.md index d9167c6c1855..bc11854ae8ba 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-functions' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.104.0' +implementation 'com.google.cloud:google-cloud-functions:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-functions/latest/overview [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-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.105.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-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index a90ccfe13e17..43ce1c46fd7e 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.57.0 + 0.58.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gdchardwaremanagement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.57.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.58.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/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-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.58.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-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 9f494c4623b7..7304e376c860 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.30.0 + 0.31.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-geminidataanalytics' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.30.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.31.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/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-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.31.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-gke-backup/README.md b/java-gke-backup/README.md index 3c36240861cd..96982d258be6 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gke-backup' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.101.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-backup/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-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.102.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-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 394496df6e90..750b1b77d61b 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.103.0 + 0.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gke-connect-gateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.103.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-connect-gateway/latest/overview [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-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.104.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-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 2079d0039319..095ac831e4e3 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gke-multi-cloud' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.101.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-multi-cloud/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-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.102.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-gkehub/README.md b/java-gkehub/README.md index edee32b2009f..6e37ab3df0f8 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gkehub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.102.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkehub/latest/overview [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-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.103.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-gkerecommender/README.md b/java-gkerecommender/README.md index 0eeb951576cd..9a1b0e605378 100644 --- a/java-gkerecommender/README.md +++ b/java-gkerecommender/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkerecommender - 0.22.0 + 0.23.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gkerecommender' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkerecommender:0.22.0' +implementation 'com.google.cloud:google-cloud-gkerecommender:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.23.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/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-gkerecommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.23.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-grafeas/README.md b/java-grafeas/README.md index dab5e906e921..71fab33476e7 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: io.grafeas grafeas - 2.103.0 + 2.104.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.103.0' +implementation 'io.grafeas:grafeas:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.103.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.104.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/grafeas/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.104.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-gsuite-addons/README.md b/java-gsuite-addons/README.md index a4273fce9e68..3bce8ff537d6 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gsuite-addons' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.102.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gsuite-addons/latest/overview [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-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.103.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-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java index 83135068cb11..dce02fc71107 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java @@ -28,6 +28,7 @@ import com.google.cloud.gsuiteaddons.v1.stub.GSuiteAddOnsStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -37,28 +38,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: A service for managing Google Workspace add-ons deployments. - * - *

A Google Workspace add-on is a third-party embedded component that can be installed in Google - * Workspace Applications like Gmail, Calendar, Drive, and the Google Docs, Sheets, and Slides - * editors. Google Workspace add-ons can display UI cards, receive contextual information from the - * host application, and perform actions in the host application (See: - * https://developers.google.com/gsuite/add-ons/overview for more information). - * - *

A Google Workspace add-on deployment resource specifies metadata about the add-on, including a - * specification of the entry points in the host application that trigger add-on executions (see: - * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). Add-on deployments - * defined via the Google Workspace add-ons API define their entrypoints using HTTPS URLs (See: - * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes), - * - *

A Google Workspace add-on deployment can be installed in developer mode, which allows an - * add-on developer to test the experience an end-user would see when installing and running the - * add-on in their G Suite applications. When running in developer mode, more detailed error - * messages are exposed in the add-on UI to aid in debugging. - * - *

A Google Workspace add-on deployment can be published to Google Workspace Marketplace, which - * allows other Google Workspace users to discover and install the add-on. See: - * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview for details. + * Service Description: A service for managing Google Workspace add-ons. * *

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: @@ -256,6 +236,45 @@ * * * + * + *

GetChatAppConfig + *

Gets the Chat app configuration of a project. Only Chat apps built as Google Workspace add-ons are supported. Each Google Cloud project has exactly one Chat app configuration. + *

Requires authenticating and authorizing with user credentials and the `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on the project. + * + *

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

+ *
    + *
  • getChatAppConfig(GetChatAppConfigRequest request) + *

+ *

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

+ *
    + *
  • getChatAppConfig(ChatAppConfigName name) + *

  • getChatAppConfig(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.

+ *
    + *
  • getChatAppConfigCallable() + *

+ * + * + * + *

UpdateChatAppConfig + *

Updates the Chat app configuration of a project. Only Chat apps built as Google Workspace add-ons are supported. Each Google Cloud project has exactly one Chat app configuration. + *

Requires authenticating and authorizing with user credentials and the `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and `chat.bots.get` IAM permissions on the project. + * + *

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

+ *
    + *
  • updateChatAppConfig(UpdateChatAppConfigRequest request) + *

+ *

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

+ *
    + *
  • updateChatAppConfig(ChatAppConfig chatAppConfig, 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.

+ *
    + *
  • updateChatAppConfigCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -1425,6 +1444,244 @@ public final UnaryCallable getInstallSta return stub.getInstallStatusCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Chat app configuration of a project. Only Chat apps built as Google Workspace add-ons + * are supported. Each Google Cloud project has exactly one Chat app configuration. + * + *

Requires authenticating and authorizing with user credentials and the + * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on the project. + * + *

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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
+   *   ChatAppConfigName name = ChatAppConfigName.of("[PROJECT]");
+   *   ChatAppConfig response = gSuiteAddOnsClient.getChatAppConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the Chat app configuration. + *

Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google Cloud + * project number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ChatAppConfig getChatAppConfig(@Nullable ChatAppConfigName name) { + GetChatAppConfigRequest request = + GetChatAppConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getChatAppConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Chat app configuration of a project. Only Chat apps built as Google Workspace add-ons + * are supported. Each Google Cloud project has exactly one Chat app configuration. + * + *

Requires authenticating and authorizing with user credentials and the + * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on the project. + * + *

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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
+   *   String name = ChatAppConfigName.of("[PROJECT]").toString();
+   *   ChatAppConfig response = gSuiteAddOnsClient.getChatAppConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the Chat app configuration. + *

Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google Cloud + * project number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ChatAppConfig getChatAppConfig(String name) { + GetChatAppConfigRequest request = GetChatAppConfigRequest.newBuilder().setName(name).build(); + return getChatAppConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Chat app configuration of a project. Only Chat apps built as Google Workspace add-ons + * are supported. Each Google Cloud project has exactly one Chat app configuration. + * + *

Requires authenticating and authorizing with user credentials and the + * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on the project. + * + *

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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
+   *   GetChatAppConfigRequest request =
+   *       GetChatAppConfigRequest.newBuilder()
+   *           .setName(ChatAppConfigName.of("[PROJECT]").toString())
+   *           .build();
+   *   ChatAppConfig response = gSuiteAddOnsClient.getChatAppConfig(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 ChatAppConfig getChatAppConfig(GetChatAppConfigRequest request) { + return getChatAppConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Chat app configuration of a project. Only Chat apps built as Google Workspace add-ons + * are supported. Each Google Cloud project has exactly one Chat app configuration. + * + *

Requires authenticating and authorizing with user credentials and the + * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on the project. + * + *

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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
+   *   GetChatAppConfigRequest request =
+   *       GetChatAppConfigRequest.newBuilder()
+   *           .setName(ChatAppConfigName.of("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       gSuiteAddOnsClient.getChatAppConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ChatAppConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getChatAppConfigCallable() { + return stub.getChatAppConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Chat app configuration of a project. Only Chat apps built as Google Workspace + * add-ons are supported. Each Google Cloud project has exactly one Chat app configuration. + * + *

Requires authenticating and authorizing with user credentials and the + * `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and `chat.bots.get` IAM permissions on + * the project. + * + *

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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
+   *   ChatAppConfig chatAppConfig = ChatAppConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ChatAppConfig response = gSuiteAddOnsClient.updateChatAppConfig(chatAppConfig, updateMask);
+   * }
+   * }
+ * + * @param chatAppConfig Required. The app configuration to update. + * @param updateMask Optional. The list of fields to update. + *

If omitted, only the fields with non-empty values in the provided Chat app configuration + * are updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ChatAppConfig updateChatAppConfig( + ChatAppConfig chatAppConfig, FieldMask updateMask) { + UpdateChatAppConfigRequest request = + UpdateChatAppConfigRequest.newBuilder() + .setChatAppConfig(chatAppConfig) + .setUpdateMask(updateMask) + .build(); + return updateChatAppConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Chat app configuration of a project. Only Chat apps built as Google Workspace + * add-ons are supported. Each Google Cloud project has exactly one Chat app configuration. + * + *

Requires authenticating and authorizing with user credentials and the + * `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and `chat.bots.get` IAM permissions on + * the project. + * + *

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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
+   *   UpdateChatAppConfigRequest request =
+   *       UpdateChatAppConfigRequest.newBuilder()
+   *           .setChatAppConfig(ChatAppConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ChatAppConfig response = gSuiteAddOnsClient.updateChatAppConfig(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 ChatAppConfig updateChatAppConfig(UpdateChatAppConfigRequest request) { + return updateChatAppConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Chat app configuration of a project. Only Chat apps built as Google Workspace + * add-ons are supported. Each Google Cloud project has exactly one Chat app configuration. + * + *

Requires authenticating and authorizing with user credentials and the + * `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and `chat.bots.get` IAM permissions on + * the project. + * + *

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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) {
+   *   UpdateChatAppConfigRequest request =
+   *       UpdateChatAppConfigRequest.newBuilder()
+   *           .setChatAppConfig(ChatAppConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       gSuiteAddOnsClient.updateChatAppConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ChatAppConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateChatAppConfigCallable() { + return stub.updateChatAppConfigCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java index 49a3576a7a93..b8c084edbcc6 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java @@ -138,6 +138,17 @@ public UnaryCallSettings getInstallStatu return ((GSuiteAddOnsStubSettings) getStubSettings()).getInstallStatusSettings(); } + /** Returns the object with the settings used for calls to getChatAppConfig. */ + public UnaryCallSettings getChatAppConfigSettings() { + return ((GSuiteAddOnsStubSettings) getStubSettings()).getChatAppConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateChatAppConfig. */ + public UnaryCallSettings + updateChatAppConfigSettings() { + return ((GSuiteAddOnsStubSettings) getStubSettings()).updateChatAppConfigSettings(); + } + public static final GSuiteAddOnsSettings create(GSuiteAddOnsStubSettings stub) throws IOException { return new GSuiteAddOnsSettings.Builder(stub.toBuilder()).build(); @@ -302,6 +313,18 @@ public UnaryCallSettings.Builder installDeploym return getStubSettingsBuilder().getInstallStatusSettings(); } + /** Returns the builder for the settings used for calls to getChatAppConfig. */ + public UnaryCallSettings.Builder + getChatAppConfigSettings() { + return getStubSettingsBuilder().getChatAppConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateChatAppConfig. */ + public UnaryCallSettings.Builder + updateChatAppConfigSettings() { + return getStubSettingsBuilder().updateChatAppConfigSettings(); + } + @Override public GSuiteAddOnsSettings build() throws IOException { return new GSuiteAddOnsSettings(this); diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/gapic_metadata.json b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/gapic_metadata.json index e85874e1f11c..521b736ca2af 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/gapic_metadata.json +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/gapic_metadata.json @@ -19,6 +19,9 @@ "GetAuthorization": { "methods": ["getAuthorization", "getAuthorization", "getAuthorization", "getAuthorizationCallable"] }, + "GetChatAppConfig": { + "methods": ["getChatAppConfig", "getChatAppConfig", "getChatAppConfig", "getChatAppConfigCallable"] + }, "GetDeployment": { "methods": ["getDeployment", "getDeployment", "getDeployment", "getDeploymentCallable"] }, @@ -36,6 +39,9 @@ }, "UninstallDeployment": { "methods": ["uninstallDeployment", "uninstallDeployment", "uninstallDeployment", "uninstallDeploymentCallable"] + }, + "UpdateChatAppConfig": { + "methods": ["updateChatAppConfig", "updateChatAppConfig", "updateChatAppConfigCallable"] } } } diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java index 31a3067b5360..5250529e7a9e 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java @@ -21,28 +21,7 @@ * *

======================= GSuiteAddOnsClient ======================= * - *

Service Description: A service for managing Google Workspace add-ons deployments. - * - *

A Google Workspace add-on is a third-party embedded component that can be installed in Google - * Workspace Applications like Gmail, Calendar, Drive, and the Google Docs, Sheets, and Slides - * editors. Google Workspace add-ons can display UI cards, receive contextual information from the - * host application, and perform actions in the host application (See: - * https://developers.google.com/gsuite/add-ons/overview for more information). - * - *

A Google Workspace add-on deployment resource specifies metadata about the add-on, including a - * specification of the entry points in the host application that trigger add-on executions (see: - * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). Add-on deployments - * defined via the Google Workspace add-ons API define their entrypoints using HTTPS URLs (See: - * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes), - * - *

A Google Workspace add-on deployment can be installed in developer mode, which allows an - * add-on developer to test the experience an end-user would see when installing and running the - * add-on in their G Suite applications. When running in developer mode, more detailed error - * messages are exposed in the add-on UI to aid in debugging. - * - *

A Google Workspace add-on deployment can be published to Google Workspace Marketplace, which - * allows other Google Workspace users to discover and install the add-on. See: - * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview for details. + *

Service Description: A service for managing Google Workspace add-ons. * *

Sample for GSuiteAddOnsClient: * diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStub.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStub.java index dd8a6560dad2..35ea2f7efcba 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStub.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStub.java @@ -21,10 +21,12 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gsuiteaddons.v1.Authorization; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; import com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.Deployment; import com.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest; +import com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest; import com.google.cloud.gsuiteaddons.v1.GetDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest; import com.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest; @@ -33,6 +35,7 @@ import com.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse; import com.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest; +import com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest; import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; @@ -88,6 +91,14 @@ public UnaryCallable getInstallStatusCal throw new UnsupportedOperationException("Not implemented: getInstallStatusCallable()"); } + public UnaryCallable getChatAppConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getChatAppConfigCallable()"); + } + + public UnaryCallable updateChatAppConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateChatAppConfigCallable()"); + } + @Override public abstract void close(); } diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java index 38f1705e8e33..3081f2f592e1 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java @@ -46,10 +46,12 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gsuiteaddons.v1.Authorization; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; import com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.Deployment; import com.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest; +import com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest; import com.google.cloud.gsuiteaddons.v1.GetDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest; import com.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest; @@ -58,6 +60,7 @@ import com.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse; import com.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest; +import com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -126,7 +129,10 @@ public class GSuiteAddOnsStubSettings 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(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-platform.read-only") + .build(); private final UnaryCallSettings getAuthorizationSettings; private final UnaryCallSettings createDeploymentSettings; @@ -139,6 +145,9 @@ public class GSuiteAddOnsStubSettings extends StubSettings installDeploymentSettings; private final UnaryCallSettings uninstallDeploymentSettings; private final UnaryCallSettings getInstallStatusSettings; + private final UnaryCallSettings getChatAppConfigSettings; + private final UnaryCallSettings + updateChatAppConfigSettings; private static final PagedListDescriptor< ListDeploymentsRequest, ListDeploymentsResponse, Deployment> @@ -241,6 +250,17 @@ public UnaryCallSettings getInstallStatu return getInstallStatusSettings; } + /** Returns the object with the settings used for calls to getChatAppConfig. */ + public UnaryCallSettings getChatAppConfigSettings() { + return getChatAppConfigSettings; + } + + /** Returns the object with the settings used for calls to updateChatAppConfig. */ + public UnaryCallSettings + updateChatAppConfigSettings() { + return updateChatAppConfigSettings; + } + public GSuiteAddOnsStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -361,6 +381,8 @@ protected GSuiteAddOnsStubSettings(Builder settingsBuilder) throws IOException { installDeploymentSettings = settingsBuilder.installDeploymentSettings().build(); uninstallDeploymentSettings = settingsBuilder.uninstallDeploymentSettings().build(); getInstallStatusSettings = settingsBuilder.getInstallStatusSettings().build(); + getChatAppConfigSettings = settingsBuilder.getChatAppConfigSettings().build(); + updateChatAppConfigSettings = settingsBuilder.updateChatAppConfigSettings().build(); } @Override @@ -393,6 +415,10 @@ public static class Builder extends StubSettings.Builder getInstallStatusSettings; + private final UnaryCallSettings.Builder + getChatAppConfigSettings; + private final UnaryCallSettings.Builder + updateChatAppConfigSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -462,6 +488,8 @@ protected Builder(@Nullable ClientContext clientContext) { installDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); uninstallDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getInstallStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getChatAppConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateChatAppConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -473,7 +501,9 @@ protected Builder(@Nullable ClientContext clientContext) { deleteDeploymentSettings, installDeploymentSettings, uninstallDeploymentSettings, - getInstallStatusSettings); + getInstallStatusSettings, + getChatAppConfigSettings, + updateChatAppConfigSettings); initDefaults(this); } @@ -489,6 +519,8 @@ protected Builder(GSuiteAddOnsStubSettings settings) { installDeploymentSettings = settings.installDeploymentSettings.toBuilder(); uninstallDeploymentSettings = settings.uninstallDeploymentSettings.toBuilder(); getInstallStatusSettings = settings.getInstallStatusSettings.toBuilder(); + getChatAppConfigSettings = settings.getChatAppConfigSettings.toBuilder(); + updateChatAppConfigSettings = settings.updateChatAppConfigSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -500,7 +532,9 @@ protected Builder(GSuiteAddOnsStubSettings settings) { deleteDeploymentSettings, installDeploymentSettings, uninstallDeploymentSettings, - getInstallStatusSettings); + getInstallStatusSettings, + getChatAppConfigSettings, + updateChatAppConfigSettings); } private static Builder createDefault() { @@ -573,6 +607,16 @@ 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 + .getChatAppConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateChatAppConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -643,6 +687,18 @@ public UnaryCallSettings.Builder installDeploym return getInstallStatusSettings; } + /** Returns the builder for the settings used for calls to getChatAppConfig. */ + public UnaryCallSettings.Builder + getChatAppConfigSettings() { + return getChatAppConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateChatAppConfig. */ + public UnaryCallSettings.Builder + updateChatAppConfigSettings() { + return updateChatAppConfigSettings; + } + @Override public GSuiteAddOnsStubSettings build() throws IOException { return new GSuiteAddOnsStubSettings(this); diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GrpcGSuiteAddOnsStub.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GrpcGSuiteAddOnsStub.java index 1619a7cbca96..fabf6f7042fe 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GrpcGSuiteAddOnsStub.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GrpcGSuiteAddOnsStub.java @@ -26,10 +26,12 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gsuiteaddons.v1.Authorization; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; import com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.Deployment; import com.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest; +import com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest; import com.google.cloud.gsuiteaddons.v1.GetDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest; import com.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest; @@ -38,6 +40,7 @@ import com.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse; import com.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest; +import com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; @@ -156,6 +159,28 @@ public class GrpcGSuiteAddOnsStub extends GSuiteAddOnsStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getChatAppConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gsuiteaddons.v1.GSuiteAddOns/GetChatAppConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetChatAppConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ChatAppConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateChatAppConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gsuiteaddons.v1.GSuiteAddOns/UpdateChatAppConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateChatAppConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ChatAppConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable getAuthorizationCallable; private final UnaryCallable createDeploymentCallable; private final UnaryCallable replaceDeploymentCallable; @@ -168,6 +193,9 @@ public class GrpcGSuiteAddOnsStub extends GSuiteAddOnsStub { private final UnaryCallable installDeploymentCallable; private final UnaryCallable uninstallDeploymentCallable; private final UnaryCallable getInstallStatusCallable; + private final UnaryCallable getChatAppConfigCallable; + private final UnaryCallable + updateChatAppConfigCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -310,6 +338,30 @@ protected GrpcGSuiteAddOnsStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings getChatAppConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getChatAppConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateChatAppConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateChatAppConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "chat_app_config.name", + String.valueOf(request.getChatAppConfig().getName())); + return builder.build(); + }) + .build(); this.getAuthorizationCallable = callableFactory.createUnaryCallable( @@ -347,6 +399,14 @@ protected GrpcGSuiteAddOnsStub( this.getInstallStatusCallable = callableFactory.createUnaryCallable( getInstallStatusTransportSettings, settings.getInstallStatusSettings(), clientContext); + this.getChatAppConfigCallable = + callableFactory.createUnaryCallable( + getChatAppConfigTransportSettings, settings.getChatAppConfigSettings(), clientContext); + this.updateChatAppConfigCallable = + callableFactory.createUnaryCallable( + updateChatAppConfigTransportSettings, + settings.updateChatAppConfigSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -407,6 +467,16 @@ public UnaryCallable getInstallStatusCal return getInstallStatusCallable; } + @Override + public UnaryCallable getChatAppConfigCallable() { + return getChatAppConfigCallable; + } + + @Override + public UnaryCallable updateChatAppConfigCallable() { + return updateChatAppConfigCallable; + } + @Override public final void close() { try { diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/HttpJsonGSuiteAddOnsStub.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/HttpJsonGSuiteAddOnsStub.java index b4cf43188474..4dce73e2b1e6 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/HttpJsonGSuiteAddOnsStub.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/HttpJsonGSuiteAddOnsStub.java @@ -31,10 +31,12 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gsuiteaddons.v1.Authorization; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; import com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.Deployment; import com.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest; +import com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest; import com.google.cloud.gsuiteaddons.v1.GetDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest; import com.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest; @@ -43,6 +45,7 @@ import com.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse; import com.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest; import com.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest; +import com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -389,6 +392,80 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub { .build()) .build(); + private static final ApiMethodDescriptor + getChatAppConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gsuiteaddons.v1.GSuiteAddOns/GetChatAppConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/chatAppConfig}", + 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, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ChatAppConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateChatAppConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gsuiteaddons.v1.GSuiteAddOns/UpdateChatAppConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{chatAppConfig.name=projects/*/chatAppConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "chatAppConfig.name", request.getChatAppConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("chatAppConfig", request.getChatAppConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ChatAppConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getAuthorizationCallable; private final UnaryCallable createDeploymentCallable; private final UnaryCallable replaceDeploymentCallable; @@ -401,6 +478,9 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub { private final UnaryCallable installDeploymentCallable; private final UnaryCallable uninstallDeploymentCallable; private final UnaryCallable getInstallStatusCallable; + private final UnaryCallable getChatAppConfigCallable; + private final UnaryCallable + updateChatAppConfigCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -552,6 +632,32 @@ protected HttpJsonGSuiteAddOnsStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings getChatAppConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getChatAppConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + updateChatAppConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateChatAppConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "chat_app_config.name", + String.valueOf(request.getChatAppConfig().getName())); + return builder.build(); + }) + .build(); this.getAuthorizationCallable = callableFactory.createUnaryCallable( @@ -589,6 +695,14 @@ protected HttpJsonGSuiteAddOnsStub( this.getInstallStatusCallable = callableFactory.createUnaryCallable( getInstallStatusTransportSettings, settings.getInstallStatusSettings(), clientContext); + this.getChatAppConfigCallable = + callableFactory.createUnaryCallable( + getChatAppConfigTransportSettings, settings.getChatAppConfigSettings(), clientContext); + this.updateChatAppConfigCallable = + callableFactory.createUnaryCallable( + updateChatAppConfigTransportSettings, + settings.updateChatAppConfigSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -606,6 +720,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(installDeploymentMethodDescriptor); methodDescriptors.add(uninstallDeploymentMethodDescriptor); methodDescriptors.add(getInstallStatusMethodDescriptor); + methodDescriptors.add(getChatAppConfigMethodDescriptor); + methodDescriptors.add(updateChatAppConfigMethodDescriptor); return methodDescriptors; } @@ -660,6 +776,16 @@ public UnaryCallable getInstallStatusCal return getInstallStatusCallable; } + @Override + public UnaryCallable getChatAppConfigCallable() { + return getChatAppConfigCallable; + } + + @Override + public UnaryCallable updateChatAppConfigCallable() { + return updateChatAppConfigCallable; + } + @Override public final void close() { try { diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/resources/META-INF/native-image/com.google.cloud.gsuiteaddons.v1/reflect-config.json b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/resources/META-INF/native-image/com.google.cloud.gsuiteaddons.v1/reflect-config.json index e0dd2533eec9..af03de8c8dbd 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/resources/META-INF/native-image/com.google.cloud.gsuiteaddons.v1/reflect-config.json +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/resources/META-INF/native-image/com.google.cloud.gsuiteaddons.v1/reflect-config.json @@ -944,6 +944,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gsuiteaddons.v1.AppCommand", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.AppCommand$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.AppCommand$CommandType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gsuiteaddons.v1.Authorization", "queryAllDeclaredConstructors": true, @@ -962,6 +1025,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gsuiteaddons.v1.ChatAppConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.ChatAppConfig$AppState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.ChatAppConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.ChatAppConfig$MarkupSyntax", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.ConnectionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.ConnectionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest", "queryAllDeclaredConstructors": true, @@ -1016,6 +1151,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig$DialogflowEdition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest", "queryAllDeclaredConstructors": true, @@ -1034,6 +1196,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest$ChatAppConfigView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gsuiteaddons.v1.GetDeploymentRequest", "queryAllDeclaredConstructors": true, @@ -1070,6 +1259,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest", "queryAllDeclaredConstructors": true, @@ -1106,6 +1331,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest", "queryAllDeclaredConstructors": true, @@ -1178,6 +1421,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.UrlPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gsuiteaddons.v1.UrlPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.BoolValue", "queryAllDeclaredConstructors": true, @@ -2060,6 +2339,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.FloatValue", "queryAllDeclaredConstructors": true, diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClientHttpJsonTest.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClientHttpJsonTest.java index e495b1789838..ba643eaa1abc 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClientHttpJsonTest.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClientHttpJsonTest.java @@ -31,6 +31,7 @@ import com.google.common.collect.Lists; import com.google.protobuf.BoolValue; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -854,4 +855,169 @@ public void getInstallStatusExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getChatAppConfigTest() throws Exception { + ChatAppConfig expectedResponse = + ChatAppConfig.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .setDisplayName("displayName1714148973") + .setAvatarUri("avatarUri-428646061") + .setDescription("description-1724546052") + .setInteractiveFeatureConfig(InteractiveFeatureConfig.newBuilder().build()) + .setErrorLoggingEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + ChatAppConfigName name = ChatAppConfigName.of("[PROJECT]"); + + ChatAppConfig actualResponse = client.getChatAppConfig(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 getChatAppConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChatAppConfigName name = ChatAppConfigName.of("[PROJECT]"); + client.getChatAppConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChatAppConfigTest2() throws Exception { + ChatAppConfig expectedResponse = + ChatAppConfig.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .setDisplayName("displayName1714148973") + .setAvatarUri("avatarUri-428646061") + .setDescription("description-1724546052") + .setInteractiveFeatureConfig(InteractiveFeatureConfig.newBuilder().build()) + .setErrorLoggingEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5924/chatAppConfig"; + + ChatAppConfig actualResponse = client.getChatAppConfig(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 getChatAppConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5924/chatAppConfig"; + client.getChatAppConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateChatAppConfigTest() throws Exception { + ChatAppConfig expectedResponse = + ChatAppConfig.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .setDisplayName("displayName1714148973") + .setAvatarUri("avatarUri-428646061") + .setDescription("description-1724546052") + .setInteractiveFeatureConfig(InteractiveFeatureConfig.newBuilder().build()) + .setErrorLoggingEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + ChatAppConfig chatAppConfig = + ChatAppConfig.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .setDisplayName("displayName1714148973") + .setAvatarUri("avatarUri-428646061") + .setDescription("description-1724546052") + .setInteractiveFeatureConfig(InteractiveFeatureConfig.newBuilder().build()) + .setErrorLoggingEnabled(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ChatAppConfig actualResponse = client.updateChatAppConfig(chatAppConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateChatAppConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChatAppConfig chatAppConfig = + ChatAppConfig.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .setDisplayName("displayName1714148973") + .setAvatarUri("avatarUri-428646061") + .setDescription("description-1724546052") + .setInteractiveFeatureConfig(InteractiveFeatureConfig.newBuilder().build()) + .setErrorLoggingEnabled(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateChatAppConfig(chatAppConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClientTest.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClientTest.java index 2d62cc42fab0..7f3ecbab56bd 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClientTest.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClientTest.java @@ -29,6 +29,7 @@ import com.google.protobuf.AbstractMessage; import com.google.protobuf.BoolValue; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; @@ -747,4 +748,136 @@ public void getInstallStatusExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getChatAppConfigTest() throws Exception { + ChatAppConfig expectedResponse = + ChatAppConfig.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .setDisplayName("displayName1714148973") + .setAvatarUri("avatarUri-428646061") + .setDescription("description-1724546052") + .setInteractiveFeatureConfig(InteractiveFeatureConfig.newBuilder().build()) + .setErrorLoggingEnabled(true) + .build(); + mockGSuiteAddOns.addResponse(expectedResponse); + + ChatAppConfigName name = ChatAppConfigName.of("[PROJECT]"); + + ChatAppConfig actualResponse = client.getChatAppConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGSuiteAddOns.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetChatAppConfigRequest actualRequest = ((GetChatAppConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getChatAppConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGSuiteAddOns.addException(exception); + + try { + ChatAppConfigName name = ChatAppConfigName.of("[PROJECT]"); + client.getChatAppConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChatAppConfigTest2() throws Exception { + ChatAppConfig expectedResponse = + ChatAppConfig.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .setDisplayName("displayName1714148973") + .setAvatarUri("avatarUri-428646061") + .setDescription("description-1724546052") + .setInteractiveFeatureConfig(InteractiveFeatureConfig.newBuilder().build()) + .setErrorLoggingEnabled(true) + .build(); + mockGSuiteAddOns.addResponse(expectedResponse); + + String name = "name3373707"; + + ChatAppConfig actualResponse = client.getChatAppConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGSuiteAddOns.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetChatAppConfigRequest actualRequest = ((GetChatAppConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getChatAppConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGSuiteAddOns.addException(exception); + + try { + String name = "name3373707"; + client.getChatAppConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateChatAppConfigTest() throws Exception { + ChatAppConfig expectedResponse = + ChatAppConfig.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .setDisplayName("displayName1714148973") + .setAvatarUri("avatarUri-428646061") + .setDescription("description-1724546052") + .setInteractiveFeatureConfig(InteractiveFeatureConfig.newBuilder().build()) + .setErrorLoggingEnabled(true) + .build(); + mockGSuiteAddOns.addResponse(expectedResponse); + + ChatAppConfig chatAppConfig = ChatAppConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ChatAppConfig actualResponse = client.updateChatAppConfig(chatAppConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGSuiteAddOns.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateChatAppConfigRequest actualRequest = ((UpdateChatAppConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(chatAppConfig, actualRequest.getChatAppConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateChatAppConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGSuiteAddOns.addException(exception); + + try { + ChatAppConfig chatAppConfig = ChatAppConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateChatAppConfig(chatAppConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/MockGSuiteAddOnsImpl.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/MockGSuiteAddOnsImpl.java index 565b43f4e97f..3cd72ce02f3f 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/MockGSuiteAddOnsImpl.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/test/java/com/google/cloud/gsuiteaddons/v1/MockGSuiteAddOnsImpl.java @@ -247,4 +247,46 @@ public void getInstallStatus( Exception.class.getName()))); } } + + @Override + public void getChatAppConfig( + GetChatAppConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ChatAppConfig) { + requests.add(request); + responseObserver.onNext(((ChatAppConfig) 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 GetChatAppConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ChatAppConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateChatAppConfig( + UpdateChatAppConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ChatAppConfig) { + requests.add(request); + responseObserver.onNext(((ChatAppConfig) 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 UpdateChatAppConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ChatAppConfig.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java index 611d73a02fc1..75776fd3b851 100644 --- a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java +++ b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java @@ -21,30 +21,7 @@ * * *

- * A service for managing Google Workspace add-ons deployments.
- * A Google Workspace add-on is a third-party embedded component that can be
- * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
- * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
- * display UI cards, receive contextual information from the host application,
- * and perform actions in the host application (See:
- * https://developers.google.com/gsuite/add-ons/overview for more information).
- * A Google Workspace add-on deployment resource specifies metadata about the
- * add-on, including a specification of the entry points in the host application
- * that trigger add-on executions (see:
- * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
- * Add-on deployments defined via the Google Workspace add-ons API define their
- * entrypoints using HTTPS URLs (See:
- * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
- * A Google Workspace add-on deployment can be installed in developer mode,
- * which allows an add-on developer to test the experience an end-user would see
- * when installing and running the add-on in their G Suite applications.  When
- * running in developer mode, more detailed error messages are exposed in the
- * add-on UI to aid in debugging.
- * A Google Workspace add-on deployment can be published to Google Workspace
- * Marketplace, which allows other Google Workspace users to discover and
- * install the add-on.  See:
- * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
- * for details.
+ * A service for managing Google Workspace add-ons.
  * 
*/ @io.grpc.stub.annotations.GrpcGenerated @@ -463,6 +440,100 @@ private GSuiteAddOnsGrpc() {} return getGetInstallStatusMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig> + getGetChatAppConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetChatAppConfig", + requestType = com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.class, + responseType = com.google.cloud.gsuiteaddons.v1.ChatAppConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig> + getGetChatAppConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig> + getGetChatAppConfigMethod; + if ((getGetChatAppConfigMethod = GSuiteAddOnsGrpc.getGetChatAppConfigMethod) == null) { + synchronized (GSuiteAddOnsGrpc.class) { + if ((getGetChatAppConfigMethod = GSuiteAddOnsGrpc.getGetChatAppConfigMethod) == null) { + GSuiteAddOnsGrpc.getGetChatAppConfigMethod = + getGetChatAppConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChatAppConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.getDefaultInstance())) + .setSchemaDescriptor( + new GSuiteAddOnsMethodDescriptorSupplier("GetChatAppConfig")) + .build(); + } + } + } + return getGetChatAppConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig> + getUpdateChatAppConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateChatAppConfig", + requestType = com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest.class, + responseType = com.google.cloud.gsuiteaddons.v1.ChatAppConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig> + getUpdateChatAppConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig> + getUpdateChatAppConfigMethod; + if ((getUpdateChatAppConfigMethod = GSuiteAddOnsGrpc.getUpdateChatAppConfigMethod) == null) { + synchronized (GSuiteAddOnsGrpc.class) { + if ((getUpdateChatAppConfigMethod = GSuiteAddOnsGrpc.getUpdateChatAppConfigMethod) + == null) { + GSuiteAddOnsGrpc.getUpdateChatAppConfigMethod = + getUpdateChatAppConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateChatAppConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.getDefaultInstance())) + .setSchemaDescriptor( + new GSuiteAddOnsMethodDescriptorSupplier("UpdateChatAppConfig")) + .build(); + } + } + } + return getUpdateChatAppConfigMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static GSuiteAddOnsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -521,30 +592,7 @@ public GSuiteAddOnsFutureStub newStub( * * *
-   * A service for managing Google Workspace add-ons deployments.
-   * A Google Workspace add-on is a third-party embedded component that can be
-   * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
-   * display UI cards, receive contextual information from the host application,
-   * and perform actions in the host application (See:
-   * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace add-on deployment resource specifies metadata about the
-   * add-on, including a specification of the entry points in the host application
-   * that trigger add-on executions (see:
-   * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace add-ons API define their
-   * entrypoints using HTTPS URLs (See:
-   * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace add-on deployment can be installed in developer mode,
-   * which allows an add-on developer to test the experience an end-user would see
-   * when installing and running the add-on in their G Suite applications.  When
-   * running in developer mode, more detailed error messages are exposed in the
-   * add-on UI to aid in debugging.
-   * A Google Workspace add-on deployment can be published to Google Workspace
-   * Marketplace, which allows other Google Workspace users to discover and
-   * install the add-on.  See:
-   * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
-   * for details.
+   * A service for managing Google Workspace add-ons.
    * 
*/ public interface AsyncService { @@ -681,36 +729,53 @@ default void getInstallStatus( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetInstallStatusMethod(), responseObserver); } + + /** + * + * + *
+     * Gets the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on
+     * the project.
+     * 
+ */ + default void getChatAppConfig( + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetChatAppConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and
+     * `chat.bots.get` IAM permissions on the project.
+     * 
+ */ + default void updateChatAppConfig( + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateChatAppConfigMethod(), responseObserver); + } } /** * Base class for the server implementation of the service GSuiteAddOns. * *
-   * A service for managing Google Workspace add-ons deployments.
-   * A Google Workspace add-on is a third-party embedded component that can be
-   * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
-   * display UI cards, receive contextual information from the host application,
-   * and perform actions in the host application (See:
-   * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace add-on deployment resource specifies metadata about the
-   * add-on, including a specification of the entry points in the host application
-   * that trigger add-on executions (see:
-   * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace add-ons API define their
-   * entrypoints using HTTPS URLs (See:
-   * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace add-on deployment can be installed in developer mode,
-   * which allows an add-on developer to test the experience an end-user would see
-   * when installing and running the add-on in their G Suite applications.  When
-   * running in developer mode, more detailed error messages are exposed in the
-   * add-on UI to aid in debugging.
-   * A Google Workspace add-on deployment can be published to Google Workspace
-   * Marketplace, which allows other Google Workspace users to discover and
-   * install the add-on.  See:
-   * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
-   * for details.
+   * A service for managing Google Workspace add-ons.
    * 
*/ public abstract static class GSuiteAddOnsImplBase @@ -726,30 +791,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * A stub to allow clients to do asynchronous rpc calls to service GSuiteAddOns. * *
-   * A service for managing Google Workspace add-ons deployments.
-   * A Google Workspace add-on is a third-party embedded component that can be
-   * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
-   * display UI cards, receive contextual information from the host application,
-   * and perform actions in the host application (See:
-   * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace add-on deployment resource specifies metadata about the
-   * add-on, including a specification of the entry points in the host application
-   * that trigger add-on executions (see:
-   * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace add-ons API define their
-   * entrypoints using HTTPS URLs (See:
-   * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace add-on deployment can be installed in developer mode,
-   * which allows an add-on developer to test the experience an end-user would see
-   * when installing and running the add-on in their G Suite applications.  When
-   * running in developer mode, more detailed error messages are exposed in the
-   * add-on UI to aid in debugging.
-   * A Google Workspace add-on deployment can be published to Google Workspace
-   * Marketplace, which allows other Google Workspace users to discover and
-   * install the add-on.  See:
-   * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
-   * for details.
+   * A service for managing Google Workspace add-ons.
    * 
*/ public static final class GSuiteAddOnsStub @@ -913,36 +955,57 @@ public void getInstallStatus( request, responseObserver); } + + /** + * + * + *
+     * Gets the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on
+     * the project.
+     * 
+ */ + public void getChatAppConfig( + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetChatAppConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and
+     * `chat.bots.get` IAM permissions on the project.
+     * 
+ */ + public void updateChatAppConfig( + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateChatAppConfigMethod(), getCallOptions()), + request, + responseObserver); + } } /** * A stub to allow clients to do synchronous rpc calls to service GSuiteAddOns. * *
-   * A service for managing Google Workspace add-ons deployments.
-   * A Google Workspace add-on is a third-party embedded component that can be
-   * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
-   * display UI cards, receive contextual information from the host application,
-   * and perform actions in the host application (See:
-   * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace add-on deployment resource specifies metadata about the
-   * add-on, including a specification of the entry points in the host application
-   * that trigger add-on executions (see:
-   * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace add-ons API define their
-   * entrypoints using HTTPS URLs (See:
-   * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace add-on deployment can be installed in developer mode,
-   * which allows an add-on developer to test the experience an end-user would see
-   * when installing and running the add-on in their G Suite applications.  When
-   * running in developer mode, more detailed error messages are exposed in the
-   * add-on UI to aid in debugging.
-   * A Google Workspace add-on deployment can be published to Google Workspace
-   * Marketplace, which allows other Google Workspace users to discover and
-   * install the add-on.  See:
-   * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
-   * for details.
+   * A service for managing Google Workspace add-ons.
    * 
*/ public static final class GSuiteAddOnsBlockingV2Stub @@ -1086,36 +1149,51 @@ public com.google.cloud.gsuiteaddons.v1.InstallStatus getInstallStatus( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetInstallStatusMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on
+     * the project.
+     * 
+ */ + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig getChatAppConfig( + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetChatAppConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and
+     * `chat.bots.get` IAM permissions on the project.
+     * 
+ */ + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig updateChatAppConfig( + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateChatAppConfigMethod(), getCallOptions(), request); + } } /** * A stub to allow clients to do limited synchronous rpc calls to service GSuiteAddOns. * *
-   * A service for managing Google Workspace add-ons deployments.
-   * A Google Workspace add-on is a third-party embedded component that can be
-   * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
-   * display UI cards, receive contextual information from the host application,
-   * and perform actions in the host application (See:
-   * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace add-on deployment resource specifies metadata about the
-   * add-on, including a specification of the entry points in the host application
-   * that trigger add-on executions (see:
-   * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace add-ons API define their
-   * entrypoints using HTTPS URLs (See:
-   * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace add-on deployment can be installed in developer mode,
-   * which allows an add-on developer to test the experience an end-user would see
-   * when installing and running the add-on in their G Suite applications.  When
-   * running in developer mode, more detailed error messages are exposed in the
-   * add-on UI to aid in debugging.
-   * A Google Workspace add-on deployment can be published to Google Workspace
-   * Marketplace, which allows other Google Workspace users to discover and
-   * install the add-on.  See:
-   * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
-   * for details.
+   * A service for managing Google Workspace add-ons.
    * 
*/ public static final class GSuiteAddOnsBlockingStub @@ -1250,36 +1328,49 @@ public com.google.cloud.gsuiteaddons.v1.InstallStatus getInstallStatus( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstallStatusMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on
+     * the project.
+     * 
+ */ + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig getChatAppConfig( + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetChatAppConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and
+     * `chat.bots.get` IAM permissions on the project.
+     * 
+ */ + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig updateChatAppConfig( + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateChatAppConfigMethod(), getCallOptions(), request); + } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service GSuiteAddOns. * *
-   * A service for managing Google Workspace add-ons deployments.
-   * A Google Workspace add-on is a third-party embedded component that can be
-   * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
-   * display UI cards, receive contextual information from the host application,
-   * and perform actions in the host application (See:
-   * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace add-on deployment resource specifies metadata about the
-   * add-on, including a specification of the entry points in the host application
-   * that trigger add-on executions (see:
-   * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace add-ons API define their
-   * entrypoints using HTTPS URLs (See:
-   * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace add-on deployment can be installed in developer mode,
-   * which allows an add-on developer to test the experience an end-user would see
-   * when installing and running the add-on in their G Suite applications.  When
-   * running in developer mode, more detailed error messages are exposed in the
-   * add-on UI to aid in debugging.
-   * A Google Workspace add-on deployment can be published to Google Workspace
-   * Marketplace, which allows other Google Workspace users to discover and
-   * install the add-on.  See:
-   * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
-   * for details.
+   * A service for managing Google Workspace add-ons.
    * 
*/ public static final class GSuiteAddOnsFutureStub @@ -1420,6 +1511,44 @@ protected GSuiteAddOnsFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstallStatusMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on
+     * the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gsuiteaddons.v1.ChatAppConfig> + getChatAppConfig(com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetChatAppConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the Chat app configuration of a project. Only Chat apps built as
+     * Google Workspace add-ons are supported. Each Google Cloud project has
+     * exactly one Chat app configuration.
+     * Requires authenticating and authorizing with user credentials and the
+     * `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and
+     * `chat.bots.get` IAM permissions on the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gsuiteaddons.v1.ChatAppConfig> + updateChatAppConfig(com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateChatAppConfigMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_AUTHORIZATION = 0; @@ -1431,6 +1560,8 @@ protected GSuiteAddOnsFutureStub build( private static final int METHODID_INSTALL_DEPLOYMENT = 6; private static final int METHODID_UNINSTALL_DEPLOYMENT = 7; private static final int METHODID_GET_INSTALL_STATUS = 8; + private static final int METHODID_GET_CHAT_APP_CONFIG = 9; + private static final int METHODID_UPDATE_CHAT_APP_CONFIG = 10; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1501,6 +1632,18 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_CHAT_APP_CONFIG: + serviceImpl.getChatAppConfig( + (com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CHAT_APP_CONFIG: + serviceImpl.updateChatAppConfig( + (com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -1578,6 +1721,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest, com.google.cloud.gsuiteaddons.v1.InstallStatus>( service, METHODID_GET_INSTALL_STATUS))) + .addMethod( + getGetChatAppConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig>( + service, METHODID_GET_CHAT_APP_CONFIG))) + .addMethod( + getUpdateChatAppConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig>( + service, METHODID_UPDATE_CHAT_APP_CONFIG))) .build(); } @@ -1638,6 +1795,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getInstallDeploymentMethod()) .addMethod(getUninstallDeploymentMethod()) .addMethod(getGetInstallStatusMethod()) + .addMethod(getGetChatAppConfigMethod()) + .addMethod(getUpdateChatAppConfigMethod()) .build(); } } diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifest.java b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifest.java new file mode 100644 index 000000000000..be6dd1d08c38 --- /dev/null +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifest.java @@ -0,0 +1,1314 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/apps/script/type/meet/meet_addon_manifest.proto +// Protobuf Java Version: 4.33.6 + +package com.google.apps.script.type.meet; + +/** + * + * + *
+ * Meet add-on manifest.
+ * 
+ * + * Protobuf type {@code google.apps.script.type.meet.MeetAddOnManifest} + */ +@com.google.protobuf.Generated +public final class MeetAddOnManifest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.apps.script.type.meet.MeetAddOnManifest) + MeetAddOnManifestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MeetAddOnManifest"); + } + + // Use MeetAddOnManifest.newBuilder() to construct. + private MeetAddOnManifest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MeetAddOnManifest() { + termsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_MeetAddOnManifest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_MeetAddOnManifest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.script.type.meet.MeetAddOnManifest.class, + com.google.apps.script.type.meet.MeetAddOnManifest.Builder.class); + } + + private int bitField0_; + public static final int HOMEPAGE_TRIGGER_FIELD_NUMBER = 2; + private com.google.apps.script.type.HomepageExtensionPoint homepageTrigger_; + + /** + * + * + *
+   * If present, this overrides the configuration from
+   * `addOns.common.homepageTrigger`.
+   * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + * + * @return Whether the homepageTrigger field is set. + */ + @java.lang.Override + public boolean hasHomepageTrigger() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * If present, this overrides the configuration from
+   * `addOns.common.homepageTrigger`.
+   * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + * + * @return The homepageTrigger. + */ + @java.lang.Override + public com.google.apps.script.type.HomepageExtensionPoint getHomepageTrigger() { + return homepageTrigger_ == null + ? com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance() + : homepageTrigger_; + } + + /** + * + * + *
+   * If present, this overrides the configuration from
+   * `addOns.common.homepageTrigger`.
+   * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + @java.lang.Override + public com.google.apps.script.type.HomepageExtensionPointOrBuilder getHomepageTriggerOrBuilder() { + return homepageTrigger_ == null + ? com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance() + : homepageTrigger_; + } + + public static final int WEB_FIELD_NUMBER = 3; + private com.google.apps.script.type.meet.Web web_; + + /** + * + * + *
+   * Details for addons that enhance the Meet web client.
+   * 
+ * + * .google.apps.script.type.meet.Web web = 3; + * + * @return Whether the web field is set. + */ + @java.lang.Override + public boolean hasWeb() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Details for addons that enhance the Meet web client.
+   * 
+ * + * .google.apps.script.type.meet.Web web = 3; + * + * @return The web. + */ + @java.lang.Override + public com.google.apps.script.type.meet.Web getWeb() { + return web_ == null ? com.google.apps.script.type.meet.Web.getDefaultInstance() : web_; + } + + /** + * + * + *
+   * Details for addons that enhance the Meet web client.
+   * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + @java.lang.Override + public com.google.apps.script.type.meet.WebOrBuilder getWebOrBuilder() { + return web_ == null ? com.google.apps.script.type.meet.Web.getDefaultInstance() : web_; + } + + public static final int TERMS_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object termsUri_ = ""; + + /** + * + * + *
+   * A link to the terms of service for the add-on, if any should be shown.
+   * 
+ * + * optional string terms_uri = 6; + * + * @return Whether the termsUri field is set. + */ + @java.lang.Override + public boolean hasTermsUri() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * A link to the terms of service for the add-on, if any should be shown.
+   * 
+ * + * optional string terms_uri = 6; + * + * @return The termsUri. + */ + @java.lang.Override + public java.lang.String getTermsUri() { + java.lang.Object ref = termsUri_; + 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(); + termsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * A link to the terms of service for the add-on, if any should be shown.
+   * 
+ * + * optional string terms_uri = 6; + * + * @return The bytes for termsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTermsUriBytes() { + java.lang.Object ref = termsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + termsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORTS_COLLABORATION_FIELD_NUMBER = 7; + private boolean supportsCollaboration_ = false; + + /** + * + * + *
+   * Whether the addon supports collaboration or inviting others into the addon
+   * experience.
+   * 
+ * + * bool supports_collaboration = 7; + * + * @return The supportsCollaboration. + */ + @java.lang.Override + public boolean getSupportsCollaboration() { + return supportsCollaboration_; + } + + 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(2, getHomepageTrigger()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getWeb()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, termsUri_); + } + if (supportsCollaboration_ != false) { + output.writeBool(7, supportsCollaboration_); + } + 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(2, getHomepageTrigger()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWeb()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, termsUri_); + } + if (supportsCollaboration_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, supportsCollaboration_); + } + 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.apps.script.type.meet.MeetAddOnManifest)) { + return super.equals(obj); + } + com.google.apps.script.type.meet.MeetAddOnManifest other = + (com.google.apps.script.type.meet.MeetAddOnManifest) obj; + + if (hasHomepageTrigger() != other.hasHomepageTrigger()) return false; + if (hasHomepageTrigger()) { + if (!getHomepageTrigger().equals(other.getHomepageTrigger())) return false; + } + if (hasWeb() != other.hasWeb()) return false; + if (hasWeb()) { + if (!getWeb().equals(other.getWeb())) return false; + } + if (hasTermsUri() != other.hasTermsUri()) return false; + if (hasTermsUri()) { + if (!getTermsUri().equals(other.getTermsUri())) return false; + } + if (getSupportsCollaboration() != other.getSupportsCollaboration()) 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 (hasHomepageTrigger()) { + hash = (37 * hash) + HOMEPAGE_TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getHomepageTrigger().hashCode(); + } + if (hasWeb()) { + hash = (37 * hash) + WEB_FIELD_NUMBER; + hash = (53 * hash) + getWeb().hashCode(); + } + if (hasTermsUri()) { + hash = (37 * hash) + TERMS_URI_FIELD_NUMBER; + hash = (53 * hash) + getTermsUri().hashCode(); + } + hash = (37 * hash) + SUPPORTS_COLLABORATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsCollaboration()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest 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.apps.script.type.meet.MeetAddOnManifest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest 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.apps.script.type.meet.MeetAddOnManifest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest 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.apps.script.type.meet.MeetAddOnManifest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest 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.apps.script.type.meet.MeetAddOnManifest 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; + } + + /** + * + * + *
+   * Meet add-on manifest.
+   * 
+ * + * Protobuf type {@code google.apps.script.type.meet.MeetAddOnManifest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.script.type.meet.MeetAddOnManifest) + com.google.apps.script.type.meet.MeetAddOnManifestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_MeetAddOnManifest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_MeetAddOnManifest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.script.type.meet.MeetAddOnManifest.class, + com.google.apps.script.type.meet.MeetAddOnManifest.Builder.class); + } + + // Construct using com.google.apps.script.type.meet.MeetAddOnManifest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetHomepageTriggerFieldBuilder(); + internalGetWebFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + homepageTrigger_ = null; + if (homepageTriggerBuilder_ != null) { + homepageTriggerBuilder_.dispose(); + homepageTriggerBuilder_ = null; + } + web_ = null; + if (webBuilder_ != null) { + webBuilder_.dispose(); + webBuilder_ = null; + } + termsUri_ = ""; + supportsCollaboration_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_MeetAddOnManifest_descriptor; + } + + @java.lang.Override + public com.google.apps.script.type.meet.MeetAddOnManifest getDefaultInstanceForType() { + return com.google.apps.script.type.meet.MeetAddOnManifest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.script.type.meet.MeetAddOnManifest build() { + com.google.apps.script.type.meet.MeetAddOnManifest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.script.type.meet.MeetAddOnManifest buildPartial() { + com.google.apps.script.type.meet.MeetAddOnManifest result = + new com.google.apps.script.type.meet.MeetAddOnManifest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.script.type.meet.MeetAddOnManifest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.homepageTrigger_ = + homepageTriggerBuilder_ == null ? homepageTrigger_ : homepageTriggerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.web_ = webBuilder_ == null ? web_ : webBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.termsUri_ = termsUri_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.supportsCollaboration_ = supportsCollaboration_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.script.type.meet.MeetAddOnManifest) { + return mergeFrom((com.google.apps.script.type.meet.MeetAddOnManifest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.script.type.meet.MeetAddOnManifest other) { + if (other == com.google.apps.script.type.meet.MeetAddOnManifest.getDefaultInstance()) + return this; + if (other.hasHomepageTrigger()) { + mergeHomepageTrigger(other.getHomepageTrigger()); + } + if (other.hasWeb()) { + mergeWeb(other.getWeb()); + } + if (other.hasTermsUri()) { + termsUri_ = other.termsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getSupportsCollaboration() != false) { + setSupportsCollaboration(other.getSupportsCollaboration()); + } + 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( + internalGetHomepageTriggerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetWebFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 50: + { + termsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 56: + { + supportsCollaboration_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 56 + 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.apps.script.type.HomepageExtensionPoint homepageTrigger_; + private com.google.protobuf.SingleFieldBuilder< + com.google.apps.script.type.HomepageExtensionPoint, + com.google.apps.script.type.HomepageExtensionPoint.Builder, + com.google.apps.script.type.HomepageExtensionPointOrBuilder> + homepageTriggerBuilder_; + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + * + * @return Whether the homepageTrigger field is set. + */ + public boolean hasHomepageTrigger() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + * + * @return The homepageTrigger. + */ + public com.google.apps.script.type.HomepageExtensionPoint getHomepageTrigger() { + if (homepageTriggerBuilder_ == null) { + return homepageTrigger_ == null + ? com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance() + : homepageTrigger_; + } else { + return homepageTriggerBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + public Builder setHomepageTrigger(com.google.apps.script.type.HomepageExtensionPoint value) { + if (homepageTriggerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + homepageTrigger_ = value; + } else { + homepageTriggerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + public Builder setHomepageTrigger( + com.google.apps.script.type.HomepageExtensionPoint.Builder builderForValue) { + if (homepageTriggerBuilder_ == null) { + homepageTrigger_ = builderForValue.build(); + } else { + homepageTriggerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + public Builder mergeHomepageTrigger(com.google.apps.script.type.HomepageExtensionPoint value) { + if (homepageTriggerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && homepageTrigger_ != null + && homepageTrigger_ + != com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance()) { + getHomepageTriggerBuilder().mergeFrom(value); + } else { + homepageTrigger_ = value; + } + } else { + homepageTriggerBuilder_.mergeFrom(value); + } + if (homepageTrigger_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + public Builder clearHomepageTrigger() { + bitField0_ = (bitField0_ & ~0x00000001); + homepageTrigger_ = null; + if (homepageTriggerBuilder_ != null) { + homepageTriggerBuilder_.dispose(); + homepageTriggerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + public com.google.apps.script.type.HomepageExtensionPoint.Builder getHomepageTriggerBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetHomepageTriggerFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + public com.google.apps.script.type.HomepageExtensionPointOrBuilder + getHomepageTriggerOrBuilder() { + if (homepageTriggerBuilder_ != null) { + return homepageTriggerBuilder_.getMessageOrBuilder(); + } else { + return homepageTrigger_ == null + ? com.google.apps.script.type.HomepageExtensionPoint.getDefaultInstance() + : homepageTrigger_; + } + } + + /** + * + * + *
+     * If present, this overrides the configuration from
+     * `addOns.common.homepageTrigger`.
+     * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.apps.script.type.HomepageExtensionPoint, + com.google.apps.script.type.HomepageExtensionPoint.Builder, + com.google.apps.script.type.HomepageExtensionPointOrBuilder> + internalGetHomepageTriggerFieldBuilder() { + if (homepageTriggerBuilder_ == null) { + homepageTriggerBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.apps.script.type.HomepageExtensionPoint, + com.google.apps.script.type.HomepageExtensionPoint.Builder, + com.google.apps.script.type.HomepageExtensionPointOrBuilder>( + getHomepageTrigger(), getParentForChildren(), isClean()); + homepageTrigger_ = null; + } + return homepageTriggerBuilder_; + } + + private com.google.apps.script.type.meet.Web web_; + private com.google.protobuf.SingleFieldBuilder< + com.google.apps.script.type.meet.Web, + com.google.apps.script.type.meet.Web.Builder, + com.google.apps.script.type.meet.WebOrBuilder> + webBuilder_; + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + * + * @return Whether the web field is set. + */ + public boolean hasWeb() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + * + * @return The web. + */ + public com.google.apps.script.type.meet.Web getWeb() { + if (webBuilder_ == null) { + return web_ == null ? com.google.apps.script.type.meet.Web.getDefaultInstance() : web_; + } else { + return webBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + public Builder setWeb(com.google.apps.script.type.meet.Web value) { + if (webBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + web_ = value; + } else { + webBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + public Builder setWeb(com.google.apps.script.type.meet.Web.Builder builderForValue) { + if (webBuilder_ == null) { + web_ = builderForValue.build(); + } else { + webBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + public Builder mergeWeb(com.google.apps.script.type.meet.Web value) { + if (webBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && web_ != null + && web_ != com.google.apps.script.type.meet.Web.getDefaultInstance()) { + getWebBuilder().mergeFrom(value); + } else { + web_ = value; + } + } else { + webBuilder_.mergeFrom(value); + } + if (web_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + public Builder clearWeb() { + bitField0_ = (bitField0_ & ~0x00000002); + web_ = null; + if (webBuilder_ != null) { + webBuilder_.dispose(); + webBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + public com.google.apps.script.type.meet.Web.Builder getWebBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetWebFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + public com.google.apps.script.type.meet.WebOrBuilder getWebOrBuilder() { + if (webBuilder_ != null) { + return webBuilder_.getMessageOrBuilder(); + } else { + return web_ == null ? com.google.apps.script.type.meet.Web.getDefaultInstance() : web_; + } + } + + /** + * + * + *
+     * Details for addons that enhance the Meet web client.
+     * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.apps.script.type.meet.Web, + com.google.apps.script.type.meet.Web.Builder, + com.google.apps.script.type.meet.WebOrBuilder> + internalGetWebFieldBuilder() { + if (webBuilder_ == null) { + webBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.apps.script.type.meet.Web, + com.google.apps.script.type.meet.Web.Builder, + com.google.apps.script.type.meet.WebOrBuilder>( + getWeb(), getParentForChildren(), isClean()); + web_ = null; + } + return webBuilder_; + } + + private java.lang.Object termsUri_ = ""; + + /** + * + * + *
+     * A link to the terms of service for the add-on, if any should be shown.
+     * 
+ * + * optional string terms_uri = 6; + * + * @return Whether the termsUri field is set. + */ + public boolean hasTermsUri() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * A link to the terms of service for the add-on, if any should be shown.
+     * 
+ * + * optional string terms_uri = 6; + * + * @return The termsUri. + */ + public java.lang.String getTermsUri() { + java.lang.Object ref = termsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + termsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A link to the terms of service for the add-on, if any should be shown.
+     * 
+ * + * optional string terms_uri = 6; + * + * @return The bytes for termsUri. + */ + public com.google.protobuf.ByteString getTermsUriBytes() { + java.lang.Object ref = termsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + termsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A link to the terms of service for the add-on, if any should be shown.
+     * 
+ * + * optional string terms_uri = 6; + * + * @param value The termsUri to set. + * @return This builder for chaining. + */ + public Builder setTermsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + termsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * A link to the terms of service for the add-on, if any should be shown.
+     * 
+ * + * optional string terms_uri = 6; + * + * @return This builder for chaining. + */ + public Builder clearTermsUri() { + termsUri_ = getDefaultInstance().getTermsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * A link to the terms of service for the add-on, if any should be shown.
+     * 
+ * + * optional string terms_uri = 6; + * + * @param value The bytes for termsUri to set. + * @return This builder for chaining. + */ + public Builder setTermsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + termsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean supportsCollaboration_; + + /** + * + * + *
+     * Whether the addon supports collaboration or inviting others into the addon
+     * experience.
+     * 
+ * + * bool supports_collaboration = 7; + * + * @return The supportsCollaboration. + */ + @java.lang.Override + public boolean getSupportsCollaboration() { + return supportsCollaboration_; + } + + /** + * + * + *
+     * Whether the addon supports collaboration or inviting others into the addon
+     * experience.
+     * 
+ * + * bool supports_collaboration = 7; + * + * @param value The supportsCollaboration to set. + * @return This builder for chaining. + */ + public Builder setSupportsCollaboration(boolean value) { + + supportsCollaboration_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether the addon supports collaboration or inviting others into the addon
+     * experience.
+     * 
+ * + * bool supports_collaboration = 7; + * + * @return This builder for chaining. + */ + public Builder clearSupportsCollaboration() { + bitField0_ = (bitField0_ & ~0x00000008); + supportsCollaboration_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.apps.script.type.meet.MeetAddOnManifest) + } + + // @@protoc_insertion_point(class_scope:google.apps.script.type.meet.MeetAddOnManifest) + private static final com.google.apps.script.type.meet.MeetAddOnManifest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.script.type.meet.MeetAddOnManifest(); + } + + public static com.google.apps.script.type.meet.MeetAddOnManifest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeetAddOnManifest 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.apps.script.type.meet.MeetAddOnManifest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifestOrBuilder.java b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifestOrBuilder.java new file mode 100644 index 000000000000..b840e91cb1b3 --- /dev/null +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/apps/script/type/meet/meet_addon_manifest.proto +// Protobuf Java Version: 4.33.6 + +package com.google.apps.script.type.meet; + +@com.google.protobuf.Generated +public interface MeetAddOnManifestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.script.type.meet.MeetAddOnManifest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If present, this overrides the configuration from
+   * `addOns.common.homepageTrigger`.
+   * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + * + * @return Whether the homepageTrigger field is set. + */ + boolean hasHomepageTrigger(); + + /** + * + * + *
+   * If present, this overrides the configuration from
+   * `addOns.common.homepageTrigger`.
+   * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + * + * @return The homepageTrigger. + */ + com.google.apps.script.type.HomepageExtensionPoint getHomepageTrigger(); + + /** + * + * + *
+   * If present, this overrides the configuration from
+   * `addOns.common.homepageTrigger`.
+   * 
+ * + * .google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + */ + com.google.apps.script.type.HomepageExtensionPointOrBuilder getHomepageTriggerOrBuilder(); + + /** + * + * + *
+   * Details for addons that enhance the Meet web client.
+   * 
+ * + * .google.apps.script.type.meet.Web web = 3; + * + * @return Whether the web field is set. + */ + boolean hasWeb(); + + /** + * + * + *
+   * Details for addons that enhance the Meet web client.
+   * 
+ * + * .google.apps.script.type.meet.Web web = 3; + * + * @return The web. + */ + com.google.apps.script.type.meet.Web getWeb(); + + /** + * + * + *
+   * Details for addons that enhance the Meet web client.
+   * 
+ * + * .google.apps.script.type.meet.Web web = 3; + */ + com.google.apps.script.type.meet.WebOrBuilder getWebOrBuilder(); + + /** + * + * + *
+   * A link to the terms of service for the add-on, if any should be shown.
+   * 
+ * + * optional string terms_uri = 6; + * + * @return Whether the termsUri field is set. + */ + boolean hasTermsUri(); + + /** + * + * + *
+   * A link to the terms of service for the add-on, if any should be shown.
+   * 
+ * + * optional string terms_uri = 6; + * + * @return The termsUri. + */ + java.lang.String getTermsUri(); + + /** + * + * + *
+   * A link to the terms of service for the add-on, if any should be shown.
+   * 
+ * + * optional string terms_uri = 6; + * + * @return The bytes for termsUri. + */ + com.google.protobuf.ByteString getTermsUriBytes(); + + /** + * + * + *
+   * Whether the addon supports collaboration or inviting others into the addon
+   * experience.
+   * 
+ * + * bool supports_collaboration = 7; + * + * @return The supportsCollaboration. + */ + boolean getSupportsCollaboration(); +} diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifestProto.java b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifestProto.java new file mode 100644 index 000000000000..3b4d9caba737 --- /dev/null +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/MeetAddOnManifestProto.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/apps/script/type/meet/meet_addon_manifest.proto +// Protobuf Java Version: 4.33.6 + +package com.google.apps.script.type.meet; + +@com.google.protobuf.Generated +public final class MeetAddOnManifestProto extends com.google.protobuf.GeneratedFile { + private MeetAddOnManifestProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MeetAddOnManifestProto"); + } + + 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_apps_script_type_meet_MeetAddOnManifest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_apps_script_type_meet_MeetAddOnManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_script_type_meet_Web_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_apps_script_type_meet_Web_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/apps/script/type/meet/meet_addon_manifest.proto\022\034google.apps.script.typ" + + "e.meet\032-google/apps/script/type/extension_point.proto\"\324\001\n" + + "\021MeetAddOnManifest\022I\n" + + "\020homepage_trigger\030\002" + + " \001(\0132/.google.apps.script.type.HomepageExtensionPoint\022.\n" + + "\003web\030\003 \001(\0132!.google.apps.script.type.meet.Web\022\026\n" + + "\tterms_uri\030\006 \001(\tH\000\210\001\001\022\036\n" + + "\026supports_collaboration\030\007 \001(\010B\014\n\n" + + "_terms_uri\"\366\004\n" + + "\003Web\022\032\n" + + "\016side_panel_uri\030\001 \001(\tB\002\030\001\022\026\n" + + "\016side_panel_url\030\014 \001(\t\022\032\n" + + "\016main_stage_uri\030\002 \001(\tB\002\030\001\022\037\n" + + "\027supports_screen_sharing\030\003 \001(\010\022\"\n" + + "\026supports_collaboration\030\004 \001(\010B\002\030\001\022\030\n" + + "\020supports_pop_out\030\005 \001(\010\022\030\n" + + "\014host_origins\030\006 \003(\tB\002\030\001\022\026\n" + + "\016add_on_origins\030\013 \003(\t\022;\n\n" + + "open_state\030\007 \001(\0162\'.google.apps.script.type.meet.Web.State\022,\n" + + "$supports_collaboration_host_controls\030\010 \001(\010\022\020\n" + + "\010logo_url\030\t \001(\t\022\032\n" + + "\022dark_mode_logo_url\030\r" + + " \001(\t\022G\n" + + "\014display_flow\030\n" + + " \001(\0162-.google.apps.script.type.meet.Web.DisplayFlowB\002\030\001\"g\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\023\n" + + "\017SIDE_PANEL_ONLY\020\001\022\023\n" + + "\017MAIN_STAGE_ONLY\020\002\022\035\n" + + "\031SIDE_PANEL_AND_MAIN_STAGE\020\003\"C\n" + + "\013DisplayFlow\022\034\n" + + "\030DISPLAY_FLOW_UNSPECIFIED\020\000\022\t\n" + + "\005FOCUS\020\001\022\013\n" + + "\007AUGMENT\020\002B\332\001\n" + + " com.google.apps.script.type.meetB\026MeetAddOnManifestPro" + + "toP\001Z;google.golang.org/genproto/googlea" + + "pis/apps/script/type/meet\252\002\034Google.Apps." + + "Script.Type.Meet\312\002\034Google\\Apps\\Script\\Type\\Meet\352\002" + + " Google::Apps::Script::Type::Meetb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.apps.script.type.ExtensionPoint.getDescriptor(), + }); + internal_static_google_apps_script_type_meet_MeetAddOnManifest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_apps_script_type_meet_MeetAddOnManifest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_apps_script_type_meet_MeetAddOnManifest_descriptor, + new java.lang.String[] { + "HomepageTrigger", "Web", "TermsUri", "SupportsCollaboration", + }); + internal_static_google_apps_script_type_meet_Web_descriptor = getDescriptor().getMessageType(1); + internal_static_google_apps_script_type_meet_Web_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_apps_script_type_meet_Web_descriptor, + new java.lang.String[] { + "SidePanelUri", + "SidePanelUrl", + "MainStageUri", + "SupportsScreenSharing", + "SupportsCollaboration", + "SupportsPopOut", + "HostOrigins", + "AddOnOrigins", + "OpenState", + "SupportsCollaborationHostControls", + "LogoUrl", + "DarkModeLogoUrl", + "DisplayFlow", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.apps.script.type.ExtensionPoint.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/Web.java b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/Web.java new file mode 100644 index 000000000000..d6f8919243dc --- /dev/null +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/Web.java @@ -0,0 +1,3171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/apps/script/type/meet/meet_addon_manifest.proto +// Protobuf Java Version: 4.33.6 + +package com.google.apps.script.type.meet; + +/** + * + * + *
+ * Details for addons that enhance the Meet web client.
+ * 
+ * + * Protobuf type {@code google.apps.script.type.meet.Web} + */ +@com.google.protobuf.Generated +public final class Web extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.apps.script.type.meet.Web) + WebOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Web"); + } + + // Use Web.newBuilder() to construct. + private Web(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Web() { + sidePanelUri_ = ""; + sidePanelUrl_ = ""; + mainStageUri_ = ""; + hostOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + addOnOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + openState_ = 0; + logoUrl_ = ""; + darkModeLogoUrl_ = ""; + displayFlow_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_Web_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_Web_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.script.type.meet.Web.class, + com.google.apps.script.type.meet.Web.Builder.class); + } + + /** + * + * + *
+   * Enum for specifying initial addon opening state.
+   * 
+ * + * Protobuf enum {@code google.apps.script.type.meet.Web.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Initial state has not been specified with the addon.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The addon opens with only the side panel active.
+     * 
+ * + * SIDE_PANEL_ONLY = 1; + */ + SIDE_PANEL_ONLY(1), + /** + * + * + *
+     * The addon opens with only the main stage active.
+     * 
+ * + * MAIN_STAGE_ONLY = 2; + */ + MAIN_STAGE_ONLY(2), + /** + * + * + *
+     * The addon opens with both the side panel and the main stage active.
+     * 
+ * + * SIDE_PANEL_AND_MAIN_STAGE = 3; + */ + SIDE_PANEL_AND_MAIN_STAGE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Initial state has not been specified with the addon.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The addon opens with only the side panel active.
+     * 
+ * + * SIDE_PANEL_ONLY = 1; + */ + public static final int SIDE_PANEL_ONLY_VALUE = 1; + + /** + * + * + *
+     * The addon opens with only the main stage active.
+     * 
+ * + * MAIN_STAGE_ONLY = 2; + */ + public static final int MAIN_STAGE_ONLY_VALUE = 2; + + /** + * + * + *
+     * The addon opens with both the side panel and the main stage active.
+     * 
+ * + * SIDE_PANEL_AND_MAIN_STAGE = 3; + */ + public static final int SIDE_PANEL_AND_MAIN_STAGE_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 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 SIDE_PANEL_ONLY; + case 2: + return MAIN_STAGE_ONLY; + case 3: + return SIDE_PANEL_AND_MAIN_STAGE; + 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.apps.script.type.meet.Web.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.apps.script.type.meet.Web.State) + } + + /** + * + * + *
+   * Enum for specifying the display flow the add-on will follow when launched
+   * 
+ * + * Protobuf enum {@code google.apps.script.type.meet.Web.DisplayFlow} + */ + public enum DisplayFlow implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Display flow has not been specified.
+     * 
+ * + * DISPLAY_FLOW_UNSPECIFIED = 0; + */ + DISPLAY_FLOW_UNSPECIFIED(0), + /** + * + * + *
+     * Add-on should launch in the "focus" display flow.
+     * 
+ * + * FOCUS = 1; + */ + FOCUS(1), + /** + * + * + *
+     * Add-on should launch in the "augment" display flow.
+     * 
+ * + * AUGMENT = 2; + */ + AUGMENT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DisplayFlow"); + } + + /** + * + * + *
+     * Display flow has not been specified.
+     * 
+ * + * DISPLAY_FLOW_UNSPECIFIED = 0; + */ + public static final int DISPLAY_FLOW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Add-on should launch in the "focus" display flow.
+     * 
+ * + * FOCUS = 1; + */ + public static final int FOCUS_VALUE = 1; + + /** + * + * + *
+     * Add-on should launch in the "augment" display flow.
+     * 
+ * + * AUGMENT = 2; + */ + public static final int AUGMENT_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 DisplayFlow 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 DisplayFlow forNumber(int value) { + switch (value) { + case 0: + return DISPLAY_FLOW_UNSPECIFIED; + case 1: + return FOCUS; + case 2: + return AUGMENT; + 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 DisplayFlow findValueByNumber(int number) { + return DisplayFlow.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.apps.script.type.meet.Web.getDescriptor().getEnumTypes().get(1); + } + + private static final DisplayFlow[] VALUES = values(); + + public static DisplayFlow 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 DisplayFlow(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.script.type.meet.Web.DisplayFlow) + } + + public static final int SIDE_PANEL_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sidePanelUri_ = ""; + + /** + * + * + *
+   * The URI for the side panel iframe.
+   * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @return The sidePanelUri. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getSidePanelUri() { + java.lang.Object ref = sidePanelUri_; + 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(); + sidePanelUri_ = s; + return s; + } + } + + /** + * + * + *
+   * The URI for the side panel iframe.
+   * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @return The bytes for sidePanelUri. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getSidePanelUriBytes() { + java.lang.Object ref = sidePanelUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sidePanelUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIDE_PANEL_URL_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object sidePanelUrl_ = ""; + + /** + * + * + *
+   * The URL for the side panel iframe.
+   * 
+ * + * string side_panel_url = 12; + * + * @return The sidePanelUrl. + */ + @java.lang.Override + public java.lang.String getSidePanelUrl() { + java.lang.Object ref = sidePanelUrl_; + 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(); + sidePanelUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * The URL for the side panel iframe.
+   * 
+ * + * string side_panel_url = 12; + * + * @return The bytes for sidePanelUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSidePanelUrlBytes() { + java.lang.Object ref = sidePanelUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sidePanelUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAIN_STAGE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mainStageUri_ = ""; + + /** + * + * + *
+   * The URI for the "main stage" iframe.
+   * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @return The mainStageUri. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getMainStageUri() { + java.lang.Object ref = mainStageUri_; + 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(); + mainStageUri_ = s; + return s; + } + } + + /** + * + * + *
+   * The URI for the "main stage" iframe.
+   * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @return The bytes for mainStageUri. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getMainStageUriBytes() { + java.lang.Object ref = mainStageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mainStageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORTS_SCREEN_SHARING_FIELD_NUMBER = 3; + private boolean supportsScreenSharing_ = false; + + /** + * + * + *
+   * Whether the addon supports screen sharing the main stage.
+   * 
+ * + * bool supports_screen_sharing = 3; + * + * @return The supportsScreenSharing. + */ + @java.lang.Override + public boolean getSupportsScreenSharing() { + return supportsScreenSharing_; + } + + public static final int SUPPORTS_COLLABORATION_FIELD_NUMBER = 4; + private boolean supportsCollaboration_ = false; + + /** + * + * + *
+   * Whether the addon supports collaboration or inviting others into the addon
+   * experience. This field is deprecated now, please use the top level field in
+   * MeetAddOnManifest.
+   * 
+ * + * bool supports_collaboration = 4 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.supports_collaboration is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=91 + * @return The supportsCollaboration. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getSupportsCollaboration() { + return supportsCollaboration_; + } + + public static final int SUPPORTS_POP_OUT_FIELD_NUMBER = 5; + private boolean supportsPopOut_ = false; + + /** + * + * + *
+   * Whether the addon supports popping out to a browser PiP experience.
+   * 
+ * + * bool supports_pop_out = 5; + * + * @return The supportsPopOut. + */ + @java.lang.Override + public boolean getSupportsPopOut() { + return supportsPopOut_; + } + + public static final int HOST_ORIGINS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList hostOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Deprecated, legacy name. Origins that should be added to the frame-src
+   * property of the iframe containing the third party site. Use add_on_origins
+   * instead.
+   * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @return A list containing the hostOrigins. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getHostOriginsList() { + return hostOrigins_; + } + + /** + * + * + *
+   * Deprecated, legacy name. Origins that should be added to the frame-src
+   * property of the iframe containing the third party site. Use add_on_origins
+   * instead.
+   * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @return The count of hostOrigins. + */ + @java.lang.Deprecated + public int getHostOriginsCount() { + return hostOrigins_.size(); + } + + /** + * + * + *
+   * Deprecated, legacy name. Origins that should be added to the frame-src
+   * property of the iframe containing the third party site. Use add_on_origins
+   * instead.
+   * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param index The index of the element to return. + * @return The hostOrigins at the given index. + */ + @java.lang.Deprecated + public java.lang.String getHostOrigins(int index) { + return hostOrigins_.get(index); + } + + /** + * + * + *
+   * Deprecated, legacy name. Origins that should be added to the frame-src
+   * property of the iframe containing the third party site. Use add_on_origins
+   * instead.
+   * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param index The index of the value to return. + * @return The bytes of the hostOrigins at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getHostOriginsBytes(int index) { + return hostOrigins_.getByteString(index); + } + + public static final int ADD_ON_ORIGINS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList addOnOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Origins that should be added to the frame-src property of the iframe
+   * containing the third party site.
+   * 
+ * + * repeated string add_on_origins = 11; + * + * @return A list containing the addOnOrigins. + */ + public com.google.protobuf.ProtocolStringList getAddOnOriginsList() { + return addOnOrigins_; + } + + /** + * + * + *
+   * Origins that should be added to the frame-src property of the iframe
+   * containing the third party site.
+   * 
+ * + * repeated string add_on_origins = 11; + * + * @return The count of addOnOrigins. + */ + public int getAddOnOriginsCount() { + return addOnOrigins_.size(); + } + + /** + * + * + *
+   * Origins that should be added to the frame-src property of the iframe
+   * containing the third party site.
+   * 
+ * + * repeated string add_on_origins = 11; + * + * @param index The index of the element to return. + * @return The addOnOrigins at the given index. + */ + public java.lang.String getAddOnOrigins(int index) { + return addOnOrigins_.get(index); + } + + /** + * + * + *
+   * Origins that should be added to the frame-src property of the iframe
+   * containing the third party site.
+   * 
+ * + * repeated string add_on_origins = 11; + * + * @param index The index of the value to return. + * @return The bytes of the addOnOrigins at the given index. + */ + public com.google.protobuf.ByteString getAddOnOriginsBytes(int index) { + return addOnOrigins_.getByteString(index); + } + + public static final int OPEN_STATE_FIELD_NUMBER = 7; + private int openState_ = 0; + + /** + * + * + *
+   * The initial state when the addon is opened.
+   * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @return The enum numeric value on the wire for openState. + */ + @java.lang.Override + public int getOpenStateValue() { + return openState_; + } + + /** + * + * + *
+   * The initial state when the addon is opened.
+   * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @return The openState. + */ + @java.lang.Override + public com.google.apps.script.type.meet.Web.State getOpenState() { + com.google.apps.script.type.meet.Web.State result = + com.google.apps.script.type.meet.Web.State.forNumber(openState_); + return result == null ? com.google.apps.script.type.meet.Web.State.UNRECOGNIZED : result; + } + + public static final int SUPPORTS_COLLABORATION_HOST_CONTROLS_FIELD_NUMBER = 8; + private boolean supportsCollaborationHostControls_ = false; + + /** + * + * + *
+   * Whether the collaboration add-on supports host controls.
+   * 
+ * + * bool supports_collaboration_host_controls = 8; + * + * @return The supportsCollaborationHostControls. + */ + @java.lang.Override + public boolean getSupportsCollaborationHostControls() { + return supportsCollaborationHostControls_; + } + + public static final int LOGO_URL_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object logoUrl_ = ""; + + /** + * + * + *
+   * The URL of the logo to be displayed for the addon. If not specified, the
+   * logo defaults to the logo in the common section of the manifest.
+   * 
+ * + * string logo_url = 9; + * + * @return The logoUrl. + */ + @java.lang.Override + public java.lang.String getLogoUrl() { + java.lang.Object ref = logoUrl_; + 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(); + logoUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * The URL of the logo to be displayed for the addon. If not specified, the
+   * logo defaults to the logo in the common section of the manifest.
+   * 
+ * + * string logo_url = 9; + * + * @return The bytes for logoUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogoUrlBytes() { + java.lang.Object ref = logoUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logoUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DARK_MODE_LOGO_URL_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object darkModeLogoUrl_ = ""; + + /** + * + * + *
+   * A dark mode version of the logo_url.
+   * 
+ * + * string dark_mode_logo_url = 13; + * + * @return The darkModeLogoUrl. + */ + @java.lang.Override + public java.lang.String getDarkModeLogoUrl() { + java.lang.Object ref = darkModeLogoUrl_; + 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(); + darkModeLogoUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * A dark mode version of the logo_url.
+   * 
+ * + * string dark_mode_logo_url = 13; + * + * @return The bytes for darkModeLogoUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDarkModeLogoUrlBytes() { + java.lang.Object ref = darkModeLogoUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + darkModeLogoUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_FLOW_FIELD_NUMBER = 10; + private int displayFlow_ = 0; + + /** + * + * + *
+   * The display flow the add-on will follow when launched.
+   * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @return The enum numeric value on the wire for displayFlow. + */ + @java.lang.Override + @java.lang.Deprecated + public int getDisplayFlowValue() { + return displayFlow_; + } + + /** + * + * + *
+   * The display flow the add-on will follow when launched.
+   * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @return The displayFlow. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.apps.script.type.meet.Web.DisplayFlow getDisplayFlow() { + com.google.apps.script.type.meet.Web.DisplayFlow result = + com.google.apps.script.type.meet.Web.DisplayFlow.forNumber(displayFlow_); + return result == null ? com.google.apps.script.type.meet.Web.DisplayFlow.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(sidePanelUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sidePanelUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mainStageUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, mainStageUri_); + } + if (supportsScreenSharing_ != false) { + output.writeBool(3, supportsScreenSharing_); + } + if (supportsCollaboration_ != false) { + output.writeBool(4, supportsCollaboration_); + } + if (supportsPopOut_ != false) { + output.writeBool(5, supportsPopOut_); + } + for (int i = 0; i < hostOrigins_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, hostOrigins_.getRaw(i)); + } + if (openState_ != com.google.apps.script.type.meet.Web.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, openState_); + } + if (supportsCollaborationHostControls_ != false) { + output.writeBool(8, supportsCollaborationHostControls_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logoUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, logoUrl_); + } + if (displayFlow_ + != com.google.apps.script.type.meet.Web.DisplayFlow.DISPLAY_FLOW_UNSPECIFIED.getNumber()) { + output.writeEnum(10, displayFlow_); + } + for (int i = 0; i < addOnOrigins_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, addOnOrigins_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sidePanelUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, sidePanelUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(darkModeLogoUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, darkModeLogoUrl_); + } + 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(sidePanelUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sidePanelUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mainStageUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, mainStageUri_); + } + if (supportsScreenSharing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, supportsScreenSharing_); + } + if (supportsCollaboration_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, supportsCollaboration_); + } + if (supportsPopOut_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, supportsPopOut_); + } + { + int dataSize = 0; + for (int i = 0; i < hostOrigins_.size(); i++) { + dataSize += computeStringSizeNoTag(hostOrigins_.getRaw(i)); + } + size += dataSize; + size += 1 * getHostOriginsList().size(); + } + if (openState_ != com.google.apps.script.type.meet.Web.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, openState_); + } + if (supportsCollaborationHostControls_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 8, supportsCollaborationHostControls_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logoUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, logoUrl_); + } + if (displayFlow_ + != com.google.apps.script.type.meet.Web.DisplayFlow.DISPLAY_FLOW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, displayFlow_); + } + { + int dataSize = 0; + for (int i = 0; i < addOnOrigins_.size(); i++) { + dataSize += computeStringSizeNoTag(addOnOrigins_.getRaw(i)); + } + size += dataSize; + size += 1 * getAddOnOriginsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sidePanelUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, sidePanelUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(darkModeLogoUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, darkModeLogoUrl_); + } + 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.apps.script.type.meet.Web)) { + return super.equals(obj); + } + com.google.apps.script.type.meet.Web other = (com.google.apps.script.type.meet.Web) obj; + + if (!getSidePanelUri().equals(other.getSidePanelUri())) return false; + if (!getSidePanelUrl().equals(other.getSidePanelUrl())) return false; + if (!getMainStageUri().equals(other.getMainStageUri())) return false; + if (getSupportsScreenSharing() != other.getSupportsScreenSharing()) return false; + if (getSupportsCollaboration() != other.getSupportsCollaboration()) return false; + if (getSupportsPopOut() != other.getSupportsPopOut()) return false; + if (!getHostOriginsList().equals(other.getHostOriginsList())) return false; + if (!getAddOnOriginsList().equals(other.getAddOnOriginsList())) return false; + if (openState_ != other.openState_) return false; + if (getSupportsCollaborationHostControls() != other.getSupportsCollaborationHostControls()) + return false; + if (!getLogoUrl().equals(other.getLogoUrl())) return false; + if (!getDarkModeLogoUrl().equals(other.getDarkModeLogoUrl())) return false; + if (displayFlow_ != other.displayFlow_) 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) + SIDE_PANEL_URI_FIELD_NUMBER; + hash = (53 * hash) + getSidePanelUri().hashCode(); + hash = (37 * hash) + SIDE_PANEL_URL_FIELD_NUMBER; + hash = (53 * hash) + getSidePanelUrl().hashCode(); + hash = (37 * hash) + MAIN_STAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getMainStageUri().hashCode(); + hash = (37 * hash) + SUPPORTS_SCREEN_SHARING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsScreenSharing()); + hash = (37 * hash) + SUPPORTS_COLLABORATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsCollaboration()); + hash = (37 * hash) + SUPPORTS_POP_OUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsPopOut()); + if (getHostOriginsCount() > 0) { + hash = (37 * hash) + HOST_ORIGINS_FIELD_NUMBER; + hash = (53 * hash) + getHostOriginsList().hashCode(); + } + if (getAddOnOriginsCount() > 0) { + hash = (37 * hash) + ADD_ON_ORIGINS_FIELD_NUMBER; + hash = (53 * hash) + getAddOnOriginsList().hashCode(); + } + hash = (37 * hash) + OPEN_STATE_FIELD_NUMBER; + hash = (53 * hash) + openState_; + hash = (37 * hash) + SUPPORTS_COLLABORATION_HOST_CONTROLS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSupportsCollaborationHostControls()); + hash = (37 * hash) + LOGO_URL_FIELD_NUMBER; + hash = (53 * hash) + getLogoUrl().hashCode(); + hash = (37 * hash) + DARK_MODE_LOGO_URL_FIELD_NUMBER; + hash = (53 * hash) + getDarkModeLogoUrl().hashCode(); + hash = (37 * hash) + DISPLAY_FLOW_FIELD_NUMBER; + hash = (53 * hash) + displayFlow_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.script.type.meet.Web parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.script.type.meet.Web parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.script.type.meet.Web parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.script.type.meet.Web 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.apps.script.type.meet.Web parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.script.type.meet.Web parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.script.type.meet.Web parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.apps.script.type.meet.Web 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.apps.script.type.meet.Web parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.script.type.meet.Web 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.apps.script.type.meet.Web parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.apps.script.type.meet.Web 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.apps.script.type.meet.Web prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Details for addons that enhance the Meet web client.
+   * 
+ * + * Protobuf type {@code google.apps.script.type.meet.Web} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.script.type.meet.Web) + com.google.apps.script.type.meet.WebOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_Web_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_Web_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.script.type.meet.Web.class, + com.google.apps.script.type.meet.Web.Builder.class); + } + + // Construct using com.google.apps.script.type.meet.Web.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sidePanelUri_ = ""; + sidePanelUrl_ = ""; + mainStageUri_ = ""; + supportsScreenSharing_ = false; + supportsCollaboration_ = false; + supportsPopOut_ = false; + hostOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + addOnOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + openState_ = 0; + supportsCollaborationHostControls_ = false; + logoUrl_ = ""; + darkModeLogoUrl_ = ""; + displayFlow_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.script.type.meet.MeetAddOnManifestProto + .internal_static_google_apps_script_type_meet_Web_descriptor; + } + + @java.lang.Override + public com.google.apps.script.type.meet.Web getDefaultInstanceForType() { + return com.google.apps.script.type.meet.Web.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.script.type.meet.Web build() { + com.google.apps.script.type.meet.Web result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.script.type.meet.Web buildPartial() { + com.google.apps.script.type.meet.Web result = new com.google.apps.script.type.meet.Web(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.script.type.meet.Web result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sidePanelUri_ = sidePanelUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sidePanelUrl_ = sidePanelUrl_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mainStageUri_ = mainStageUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.supportsScreenSharing_ = supportsScreenSharing_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.supportsCollaboration_ = supportsCollaboration_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.supportsPopOut_ = supportsPopOut_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + hostOrigins_.makeImmutable(); + result.hostOrigins_ = hostOrigins_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + addOnOrigins_.makeImmutable(); + result.addOnOrigins_ = addOnOrigins_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.openState_ = openState_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.supportsCollaborationHostControls_ = supportsCollaborationHostControls_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.logoUrl_ = logoUrl_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.darkModeLogoUrl_ = darkModeLogoUrl_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.displayFlow_ = displayFlow_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.script.type.meet.Web) { + return mergeFrom((com.google.apps.script.type.meet.Web) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.script.type.meet.Web other) { + if (other == com.google.apps.script.type.meet.Web.getDefaultInstance()) return this; + if (!other.getSidePanelUri().isEmpty()) { + sidePanelUri_ = other.sidePanelUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSidePanelUrl().isEmpty()) { + sidePanelUrl_ = other.sidePanelUrl_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMainStageUri().isEmpty()) { + mainStageUri_ = other.mainStageUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getSupportsScreenSharing() != false) { + setSupportsScreenSharing(other.getSupportsScreenSharing()); + } + if (other.getSupportsCollaboration() != false) { + setSupportsCollaboration(other.getSupportsCollaboration()); + } + if (other.getSupportsPopOut() != false) { + setSupportsPopOut(other.getSupportsPopOut()); + } + if (!other.hostOrigins_.isEmpty()) { + if (hostOrigins_.isEmpty()) { + hostOrigins_ = other.hostOrigins_; + bitField0_ |= 0x00000040; + } else { + ensureHostOriginsIsMutable(); + hostOrigins_.addAll(other.hostOrigins_); + } + onChanged(); + } + if (!other.addOnOrigins_.isEmpty()) { + if (addOnOrigins_.isEmpty()) { + addOnOrigins_ = other.addOnOrigins_; + bitField0_ |= 0x00000080; + } else { + ensureAddOnOriginsIsMutable(); + addOnOrigins_.addAll(other.addOnOrigins_); + } + onChanged(); + } + if (other.openState_ != 0) { + setOpenStateValue(other.getOpenStateValue()); + } + if (other.getSupportsCollaborationHostControls() != false) { + setSupportsCollaborationHostControls(other.getSupportsCollaborationHostControls()); + } + if (!other.getLogoUrl().isEmpty()) { + logoUrl_ = other.logoUrl_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getDarkModeLogoUrl().isEmpty()) { + darkModeLogoUrl_ = other.darkModeLogoUrl_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.displayFlow_ != 0) { + setDisplayFlowValue(other.getDisplayFlowValue()); + } + 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: + { + sidePanelUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + mainStageUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + supportsScreenSharing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 32: + { + supportsCollaboration_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + supportsPopOut_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureHostOriginsIsMutable(); + hostOrigins_.add(s); + break; + } // case 50 + case 56: + { + openState_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 56 + case 64: + { + supportsCollaborationHostControls_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 64 + case 74: + { + logoUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 74 + case 80: + { + displayFlow_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 80 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAddOnOriginsIsMutable(); + addOnOrigins_.add(s); + break; + } // case 90 + case 98: + { + sidePanelUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 98 + case 106: + { + darkModeLogoUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 106 + 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 sidePanelUri_ = ""; + + /** + * + * + *
+     * The URI for the side panel iframe.
+     * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @return The sidePanelUri. + */ + @java.lang.Deprecated + public java.lang.String getSidePanelUri() { + java.lang.Object ref = sidePanelUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sidePanelUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URI for the side panel iframe.
+     * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @return The bytes for sidePanelUri. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getSidePanelUriBytes() { + java.lang.Object ref = sidePanelUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sidePanelUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URI for the side panel iframe.
+     * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @param value The sidePanelUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSidePanelUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sidePanelUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI for the side panel iframe.
+     * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSidePanelUri() { + sidePanelUri_ = getDefaultInstance().getSidePanelUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI for the side panel iframe.
+     * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @param value The bytes for sidePanelUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSidePanelUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sidePanelUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sidePanelUrl_ = ""; + + /** + * + * + *
+     * The URL for the side panel iframe.
+     * 
+ * + * string side_panel_url = 12; + * + * @return The sidePanelUrl. + */ + public java.lang.String getSidePanelUrl() { + java.lang.Object ref = sidePanelUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sidePanelUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URL for the side panel iframe.
+     * 
+ * + * string side_panel_url = 12; + * + * @return The bytes for sidePanelUrl. + */ + public com.google.protobuf.ByteString getSidePanelUrlBytes() { + java.lang.Object ref = sidePanelUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sidePanelUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URL for the side panel iframe.
+     * 
+ * + * string side_panel_url = 12; + * + * @param value The sidePanelUrl to set. + * @return This builder for chaining. + */ + public Builder setSidePanelUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sidePanelUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URL for the side panel iframe.
+     * 
+ * + * string side_panel_url = 12; + * + * @return This builder for chaining. + */ + public Builder clearSidePanelUrl() { + sidePanelUrl_ = getDefaultInstance().getSidePanelUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URL for the side panel iframe.
+     * 
+ * + * string side_panel_url = 12; + * + * @param value The bytes for sidePanelUrl to set. + * @return This builder for chaining. + */ + public Builder setSidePanelUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sidePanelUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object mainStageUri_ = ""; + + /** + * + * + *
+     * The URI for the "main stage" iframe.
+     * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @return The mainStageUri. + */ + @java.lang.Deprecated + public java.lang.String getMainStageUri() { + java.lang.Object ref = mainStageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainStageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URI for the "main stage" iframe.
+     * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @return The bytes for mainStageUri. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getMainStageUriBytes() { + java.lang.Object ref = mainStageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mainStageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URI for the "main stage" iframe.
+     * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @param value The mainStageUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setMainStageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mainStageUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI for the "main stage" iframe.
+     * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearMainStageUri() { + mainStageUri_ = getDefaultInstance().getMainStageUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI for the "main stage" iframe.
+     * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @param value The bytes for mainStageUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setMainStageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mainStageUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean supportsScreenSharing_; + + /** + * + * + *
+     * Whether the addon supports screen sharing the main stage.
+     * 
+ * + * bool supports_screen_sharing = 3; + * + * @return The supportsScreenSharing. + */ + @java.lang.Override + public boolean getSupportsScreenSharing() { + return supportsScreenSharing_; + } + + /** + * + * + *
+     * Whether the addon supports screen sharing the main stage.
+     * 
+ * + * bool supports_screen_sharing = 3; + * + * @param value The supportsScreenSharing to set. + * @return This builder for chaining. + */ + public Builder setSupportsScreenSharing(boolean value) { + + supportsScreenSharing_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether the addon supports screen sharing the main stage.
+     * 
+ * + * bool supports_screen_sharing = 3; + * + * @return This builder for chaining. + */ + public Builder clearSupportsScreenSharing() { + bitField0_ = (bitField0_ & ~0x00000008); + supportsScreenSharing_ = false; + onChanged(); + return this; + } + + private boolean supportsCollaboration_; + + /** + * + * + *
+     * Whether the addon supports collaboration or inviting others into the addon
+     * experience. This field is deprecated now, please use the top level field in
+     * MeetAddOnManifest.
+     * 
+ * + * bool supports_collaboration = 4 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.supports_collaboration is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=91 + * @return The supportsCollaboration. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getSupportsCollaboration() { + return supportsCollaboration_; + } + + /** + * + * + *
+     * Whether the addon supports collaboration or inviting others into the addon
+     * experience. This field is deprecated now, please use the top level field in
+     * MeetAddOnManifest.
+     * 
+ * + * bool supports_collaboration = 4 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.supports_collaboration is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=91 + * @param value The supportsCollaboration to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSupportsCollaboration(boolean value) { + + supportsCollaboration_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether the addon supports collaboration or inviting others into the addon
+     * experience. This field is deprecated now, please use the top level field in
+     * MeetAddOnManifest.
+     * 
+ * + * bool supports_collaboration = 4 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.supports_collaboration is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=91 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSupportsCollaboration() { + bitField0_ = (bitField0_ & ~0x00000010); + supportsCollaboration_ = false; + onChanged(); + return this; + } + + private boolean supportsPopOut_; + + /** + * + * + *
+     * Whether the addon supports popping out to a browser PiP experience.
+     * 
+ * + * bool supports_pop_out = 5; + * + * @return The supportsPopOut. + */ + @java.lang.Override + public boolean getSupportsPopOut() { + return supportsPopOut_; + } + + /** + * + * + *
+     * Whether the addon supports popping out to a browser PiP experience.
+     * 
+ * + * bool supports_pop_out = 5; + * + * @param value The supportsPopOut to set. + * @return This builder for chaining. + */ + public Builder setSupportsPopOut(boolean value) { + + supportsPopOut_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether the addon supports popping out to a browser PiP experience.
+     * 
+ * + * bool supports_pop_out = 5; + * + * @return This builder for chaining. + */ + public Builder clearSupportsPopOut() { + bitField0_ = (bitField0_ & ~0x00000020); + supportsPopOut_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList hostOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureHostOriginsIsMutable() { + if (!hostOrigins_.isModifiable()) { + hostOrigins_ = new com.google.protobuf.LazyStringArrayList(hostOrigins_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @return A list containing the hostOrigins. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getHostOriginsList() { + hostOrigins_.makeImmutable(); + return hostOrigins_; + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @return The count of hostOrigins. + */ + @java.lang.Deprecated + public int getHostOriginsCount() { + return hostOrigins_.size(); + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param index The index of the element to return. + * @return The hostOrigins at the given index. + */ + @java.lang.Deprecated + public java.lang.String getHostOrigins(int index) { + return hostOrigins_.get(index); + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param index The index of the value to return. + * @return The bytes of the hostOrigins at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getHostOriginsBytes(int index) { + return hostOrigins_.getByteString(index); + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param index The index to set the value at. + * @param value The hostOrigins to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setHostOrigins(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostOriginsIsMutable(); + hostOrigins_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param value The hostOrigins to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addHostOrigins(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostOriginsIsMutable(); + hostOrigins_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param values The hostOrigins to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllHostOrigins(java.lang.Iterable values) { + ensureHostOriginsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hostOrigins_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearHostOrigins() { + hostOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Deprecated, legacy name. Origins that should be added to the frame-src
+     * property of the iframe containing the third party site. Use add_on_origins
+     * instead.
+     * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param value The bytes of the hostOrigins to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addHostOriginsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureHostOriginsIsMutable(); + hostOrigins_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList addOnOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAddOnOriginsIsMutable() { + if (!addOnOrigins_.isModifiable()) { + addOnOrigins_ = new com.google.protobuf.LazyStringArrayList(addOnOrigins_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @return A list containing the addOnOrigins. + */ + public com.google.protobuf.ProtocolStringList getAddOnOriginsList() { + addOnOrigins_.makeImmutable(); + return addOnOrigins_; + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @return The count of addOnOrigins. + */ + public int getAddOnOriginsCount() { + return addOnOrigins_.size(); + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @param index The index of the element to return. + * @return The addOnOrigins at the given index. + */ + public java.lang.String getAddOnOrigins(int index) { + return addOnOrigins_.get(index); + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @param index The index of the value to return. + * @return The bytes of the addOnOrigins at the given index. + */ + public com.google.protobuf.ByteString getAddOnOriginsBytes(int index) { + return addOnOrigins_.getByteString(index); + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @param index The index to set the value at. + * @param value The addOnOrigins to set. + * @return This builder for chaining. + */ + public Builder setAddOnOrigins(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddOnOriginsIsMutable(); + addOnOrigins_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @param value The addOnOrigins to add. + * @return This builder for chaining. + */ + public Builder addAddOnOrigins(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddOnOriginsIsMutable(); + addOnOrigins_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @param values The addOnOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllAddOnOrigins(java.lang.Iterable values) { + ensureAddOnOriginsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addOnOrigins_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @return This builder for chaining. + */ + public Builder clearAddOnOrigins() { + addOnOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Origins that should be added to the frame-src property of the iframe
+     * containing the third party site.
+     * 
+ * + * repeated string add_on_origins = 11; + * + * @param value The bytes of the addOnOrigins to add. + * @return This builder for chaining. + */ + public Builder addAddOnOriginsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAddOnOriginsIsMutable(); + addOnOrigins_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int openState_ = 0; + + /** + * + * + *
+     * The initial state when the addon is opened.
+     * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @return The enum numeric value on the wire for openState. + */ + @java.lang.Override + public int getOpenStateValue() { + return openState_; + } + + /** + * + * + *
+     * The initial state when the addon is opened.
+     * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @param value The enum numeric value on the wire for openState to set. + * @return This builder for chaining. + */ + public Builder setOpenStateValue(int value) { + openState_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * The initial state when the addon is opened.
+     * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @return The openState. + */ + @java.lang.Override + public com.google.apps.script.type.meet.Web.State getOpenState() { + com.google.apps.script.type.meet.Web.State result = + com.google.apps.script.type.meet.Web.State.forNumber(openState_); + return result == null ? com.google.apps.script.type.meet.Web.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * The initial state when the addon is opened.
+     * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @param value The openState to set. + * @return This builder for chaining. + */ + public Builder setOpenState(com.google.apps.script.type.meet.Web.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + openState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The initial state when the addon is opened.
+     * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @return This builder for chaining. + */ + public Builder clearOpenState() { + bitField0_ = (bitField0_ & ~0x00000100); + openState_ = 0; + onChanged(); + return this; + } + + private boolean supportsCollaborationHostControls_; + + /** + * + * + *
+     * Whether the collaboration add-on supports host controls.
+     * 
+ * + * bool supports_collaboration_host_controls = 8; + * + * @return The supportsCollaborationHostControls. + */ + @java.lang.Override + public boolean getSupportsCollaborationHostControls() { + return supportsCollaborationHostControls_; + } + + /** + * + * + *
+     * Whether the collaboration add-on supports host controls.
+     * 
+ * + * bool supports_collaboration_host_controls = 8; + * + * @param value The supportsCollaborationHostControls to set. + * @return This builder for chaining. + */ + public Builder setSupportsCollaborationHostControls(boolean value) { + + supportsCollaborationHostControls_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether the collaboration add-on supports host controls.
+     * 
+ * + * bool supports_collaboration_host_controls = 8; + * + * @return This builder for chaining. + */ + public Builder clearSupportsCollaborationHostControls() { + bitField0_ = (bitField0_ & ~0x00000200); + supportsCollaborationHostControls_ = false; + onChanged(); + return this; + } + + private java.lang.Object logoUrl_ = ""; + + /** + * + * + *
+     * The URL of the logo to be displayed for the addon. If not specified, the
+     * logo defaults to the logo in the common section of the manifest.
+     * 
+ * + * string logo_url = 9; + * + * @return The logoUrl. + */ + public java.lang.String getLogoUrl() { + java.lang.Object ref = logoUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logoUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URL of the logo to be displayed for the addon. If not specified, the
+     * logo defaults to the logo in the common section of the manifest.
+     * 
+ * + * string logo_url = 9; + * + * @return The bytes for logoUrl. + */ + public com.google.protobuf.ByteString getLogoUrlBytes() { + java.lang.Object ref = logoUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logoUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URL of the logo to be displayed for the addon. If not specified, the
+     * logo defaults to the logo in the common section of the manifest.
+     * 
+ * + * string logo_url = 9; + * + * @param value The logoUrl to set. + * @return This builder for chaining. + */ + public Builder setLogoUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logoUrl_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URL of the logo to be displayed for the addon. If not specified, the
+     * logo defaults to the logo in the common section of the manifest.
+     * 
+ * + * string logo_url = 9; + * + * @return This builder for chaining. + */ + public Builder clearLogoUrl() { + logoUrl_ = getDefaultInstance().getLogoUrl(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URL of the logo to be displayed for the addon. If not specified, the
+     * logo defaults to the logo in the common section of the manifest.
+     * 
+ * + * string logo_url = 9; + * + * @param value The bytes for logoUrl to set. + * @return This builder for chaining. + */ + public Builder setLogoUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logoUrl_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object darkModeLogoUrl_ = ""; + + /** + * + * + *
+     * A dark mode version of the logo_url.
+     * 
+ * + * string dark_mode_logo_url = 13; + * + * @return The darkModeLogoUrl. + */ + public java.lang.String getDarkModeLogoUrl() { + java.lang.Object ref = darkModeLogoUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + darkModeLogoUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A dark mode version of the logo_url.
+     * 
+ * + * string dark_mode_logo_url = 13; + * + * @return The bytes for darkModeLogoUrl. + */ + public com.google.protobuf.ByteString getDarkModeLogoUrlBytes() { + java.lang.Object ref = darkModeLogoUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + darkModeLogoUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A dark mode version of the logo_url.
+     * 
+ * + * string dark_mode_logo_url = 13; + * + * @param value The darkModeLogoUrl to set. + * @return This builder for chaining. + */ + public Builder setDarkModeLogoUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + darkModeLogoUrl_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * A dark mode version of the logo_url.
+     * 
+ * + * string dark_mode_logo_url = 13; + * + * @return This builder for chaining. + */ + public Builder clearDarkModeLogoUrl() { + darkModeLogoUrl_ = getDefaultInstance().getDarkModeLogoUrl(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
+     * A dark mode version of the logo_url.
+     * 
+ * + * string dark_mode_logo_url = 13; + * + * @param value The bytes for darkModeLogoUrl to set. + * @return This builder for chaining. + */ + public Builder setDarkModeLogoUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + darkModeLogoUrl_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int displayFlow_ = 0; + + /** + * + * + *
+     * The display flow the add-on will follow when launched.
+     * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @return The enum numeric value on the wire for displayFlow. + */ + @java.lang.Override + @java.lang.Deprecated + public int getDisplayFlowValue() { + return displayFlow_; + } + + /** + * + * + *
+     * The display flow the add-on will follow when launched.
+     * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @param value The enum numeric value on the wire for displayFlow to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setDisplayFlowValue(int value) { + displayFlow_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * The display flow the add-on will follow when launched.
+     * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @return The displayFlow. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.apps.script.type.meet.Web.DisplayFlow getDisplayFlow() { + com.google.apps.script.type.meet.Web.DisplayFlow result = + com.google.apps.script.type.meet.Web.DisplayFlow.forNumber(displayFlow_); + return result == null + ? com.google.apps.script.type.meet.Web.DisplayFlow.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The display flow the add-on will follow when launched.
+     * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @param value The displayFlow to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setDisplayFlow(com.google.apps.script.type.meet.Web.DisplayFlow value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + displayFlow_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The display flow the add-on will follow when launched.
+     * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearDisplayFlow() { + bitField0_ = (bitField0_ & ~0x00001000); + displayFlow_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.apps.script.type.meet.Web) + } + + // @@protoc_insertion_point(class_scope:google.apps.script.type.meet.Web) + private static final com.google.apps.script.type.meet.Web DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.script.type.meet.Web(); + } + + public static com.google.apps.script.type.meet.Web getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Web 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.apps.script.type.meet.Web getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/WebOrBuilder.java b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/WebOrBuilder.java new file mode 100644 index 000000000000..c6b1ee0f8279 --- /dev/null +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/meet/WebOrBuilder.java @@ -0,0 +1,421 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/apps/script/type/meet/meet_addon_manifest.proto +// Protobuf Java Version: 4.33.6 + +package com.google.apps.script.type.meet; + +@com.google.protobuf.Generated +public interface WebOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.script.type.meet.Web) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The URI for the side panel iframe.
+   * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @return The sidePanelUri. + */ + @java.lang.Deprecated + java.lang.String getSidePanelUri(); + + /** + * + * + *
+   * The URI for the side panel iframe.
+   * 
+ * + * string side_panel_uri = 1 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.side_panel_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=77 + * @return The bytes for sidePanelUri. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getSidePanelUriBytes(); + + /** + * + * + *
+   * The URL for the side panel iframe.
+   * 
+ * + * string side_panel_url = 12; + * + * @return The sidePanelUrl. + */ + java.lang.String getSidePanelUrl(); + + /** + * + * + *
+   * The URL for the side panel iframe.
+   * 
+ * + * string side_panel_url = 12; + * + * @return The bytes for sidePanelUrl. + */ + com.google.protobuf.ByteString getSidePanelUrlBytes(); + + /** + * + * + *
+   * The URI for the "main stage" iframe.
+   * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @return The mainStageUri. + */ + @java.lang.Deprecated + java.lang.String getMainStageUri(); + + /** + * + * + *
+   * The URI for the "main stage" iframe.
+   * 
+ * + * string main_stage_uri = 2 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.main_stage_uri is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=83 + * @return The bytes for mainStageUri. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getMainStageUriBytes(); + + /** + * + * + *
+   * Whether the addon supports screen sharing the main stage.
+   * 
+ * + * bool supports_screen_sharing = 3; + * + * @return The supportsScreenSharing. + */ + boolean getSupportsScreenSharing(); + + /** + * + * + *
+   * Whether the addon supports collaboration or inviting others into the addon
+   * experience. This field is deprecated now, please use the top level field in
+   * MeetAddOnManifest.
+   * 
+ * + * bool supports_collaboration = 4 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.supports_collaboration is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=91 + * @return The supportsCollaboration. + */ + @java.lang.Deprecated + boolean getSupportsCollaboration(); + + /** + * + * + *
+   * Whether the addon supports popping out to a browser PiP experience.
+   * 
+ * + * bool supports_pop_out = 5; + * + * @return The supportsPopOut. + */ + boolean getSupportsPopOut(); + + /** + * + * + *
+   * Deprecated, legacy name. Origins that should be added to the frame-src
+   * property of the iframe containing the third party site. Use add_on_origins
+   * instead.
+   * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @return A list containing the hostOrigins. + */ + @java.lang.Deprecated + java.util.List getHostOriginsList(); + + /** + * + * + *
+   * Deprecated, legacy name. Origins that should be added to the frame-src
+   * property of the iframe containing the third party site. Use add_on_origins
+   * instead.
+   * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @return The count of hostOrigins. + */ + @java.lang.Deprecated + int getHostOriginsCount(); + + /** + * + * + *
+   * Deprecated, legacy name. Origins that should be added to the frame-src
+   * property of the iframe containing the third party site. Use add_on_origins
+   * instead.
+   * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param index The index of the element to return. + * @return The hostOrigins at the given index. + */ + @java.lang.Deprecated + java.lang.String getHostOrigins(int index); + + /** + * + * + *
+   * Deprecated, legacy name. Origins that should be added to the frame-src
+   * property of the iframe containing the third party site. Use add_on_origins
+   * instead.
+   * 
+ * + * repeated string host_origins = 6 [deprecated = true]; + * + * @deprecated google.apps.script.type.meet.Web.host_origins is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=99 + * @param index The index of the value to return. + * @return The bytes of the hostOrigins at the given index. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getHostOriginsBytes(int index); + + /** + * + * + *
+   * Origins that should be added to the frame-src property of the iframe
+   * containing the third party site.
+   * 
+ * + * repeated string add_on_origins = 11; + * + * @return A list containing the addOnOrigins. + */ + java.util.List getAddOnOriginsList(); + + /** + * + * + *
+   * Origins that should be added to the frame-src property of the iframe
+   * containing the third party site.
+   * 
+ * + * repeated string add_on_origins = 11; + * + * @return The count of addOnOrigins. + */ + int getAddOnOriginsCount(); + + /** + * + * + *
+   * Origins that should be added to the frame-src property of the iframe
+   * containing the third party site.
+   * 
+ * + * repeated string add_on_origins = 11; + * + * @param index The index of the element to return. + * @return The addOnOrigins at the given index. + */ + java.lang.String getAddOnOrigins(int index); + + /** + * + * + *
+   * Origins that should be added to the frame-src property of the iframe
+   * containing the third party site.
+   * 
+ * + * repeated string add_on_origins = 11; + * + * @param index The index of the value to return. + * @return The bytes of the addOnOrigins at the given index. + */ + com.google.protobuf.ByteString getAddOnOriginsBytes(int index); + + /** + * + * + *
+   * The initial state when the addon is opened.
+   * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @return The enum numeric value on the wire for openState. + */ + int getOpenStateValue(); + + /** + * + * + *
+   * The initial state when the addon is opened.
+   * 
+ * + * .google.apps.script.type.meet.Web.State open_state = 7; + * + * @return The openState. + */ + com.google.apps.script.type.meet.Web.State getOpenState(); + + /** + * + * + *
+   * Whether the collaboration add-on supports host controls.
+   * 
+ * + * bool supports_collaboration_host_controls = 8; + * + * @return The supportsCollaborationHostControls. + */ + boolean getSupportsCollaborationHostControls(); + + /** + * + * + *
+   * The URL of the logo to be displayed for the addon. If not specified, the
+   * logo defaults to the logo in the common section of the manifest.
+   * 
+ * + * string logo_url = 9; + * + * @return The logoUrl. + */ + java.lang.String getLogoUrl(); + + /** + * + * + *
+   * The URL of the logo to be displayed for the addon. If not specified, the
+   * logo defaults to the logo in the common section of the manifest.
+   * 
+ * + * string logo_url = 9; + * + * @return The bytes for logoUrl. + */ + com.google.protobuf.ByteString getLogoUrlBytes(); + + /** + * + * + *
+   * A dark mode version of the logo_url.
+   * 
+ * + * string dark_mode_logo_url = 13; + * + * @return The darkModeLogoUrl. + */ + java.lang.String getDarkModeLogoUrl(); + + /** + * + * + *
+   * A dark mode version of the logo_url.
+   * 
+ * + * string dark_mode_logo_url = 13; + * + * @return The bytes for darkModeLogoUrl. + */ + com.google.protobuf.ByteString getDarkModeLogoUrlBytes(); + + /** + * + * + *
+   * The display flow the add-on will follow when launched.
+   * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @return The enum numeric value on the wire for displayFlow. + */ + @java.lang.Deprecated + int getDisplayFlowValue(); + + /** + * + * + *
+   * The display flow the add-on will follow when launched.
+   * 
+ * + * .google.apps.script.type.meet.Web.DisplayFlow display_flow = 10 [deprecated = true]; + * + * + * @deprecated google.apps.script.type.meet.Web.display_flow is deprecated. See + * google/apps/script/type/meet/meet_addon_manifest.proto;l=119 + * @return The displayFlow. + */ + @java.lang.Deprecated + com.google.apps.script.type.meet.Web.DisplayFlow getDisplayFlow(); +} diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/meet/meet_addon_manifest.proto b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/meet/meet_addon_manifest.proto new file mode 100644 index 000000000000..eefcf334676b --- /dev/null +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/meet/meet_addon_manifest.proto @@ -0,0 +1,121 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.apps.script.type.meet; + +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Meet"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/meet"; +option java_multiple_files = true; +option java_outer_classname = "MeetAddOnManifestProto"; +option java_package = "com.google.apps.script.type.meet"; +option php_namespace = "Google\\Apps\\Script\\Type\\Meet"; +option ruby_package = "Google::Apps::Script::Type::Meet"; + +// Manifest section specific to Meet add-ons. + +// Meet add-on manifest. +message MeetAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 2; + + // Details for addons that enhance the Meet web client. + Web web = 3; + + // A link to the terms of service for the add-on, if any should be shown. + optional string terms_uri = 6; + + // Whether the addon supports collaboration or inviting others into the addon + // experience. + bool supports_collaboration = 7; +} + +// Details for addons that enhance the Meet web client. +message Web { + // Enum for specifying initial addon opening state. + enum State { + // Initial state has not been specified with the addon. + STATE_UNSPECIFIED = 0; + + // The addon opens with only the side panel active. + SIDE_PANEL_ONLY = 1; + + // The addon opens with only the main stage active. + MAIN_STAGE_ONLY = 2; + + // The addon opens with both the side panel and the main stage active. + SIDE_PANEL_AND_MAIN_STAGE = 3; + } + + // Enum for specifying the display flow the add-on will follow when launched + enum DisplayFlow { + // Display flow has not been specified. + DISPLAY_FLOW_UNSPECIFIED = 0; + + // Add-on should launch in the "focus" display flow. + FOCUS = 1; + + // Add-on should launch in the "augment" display flow. + AUGMENT = 2; + } + + // The URI for the side panel iframe. + string side_panel_uri = 1 [deprecated = true]; + + // The URL for the side panel iframe. + string side_panel_url = 12; + + // The URI for the "main stage" iframe. + string main_stage_uri = 2 [deprecated = true]; + + // Whether the addon supports screen sharing the main stage. + bool supports_screen_sharing = 3; + + // Whether the addon supports collaboration or inviting others into the addon + // experience. This field is deprecated now, please use the top level field in + // MeetAddOnManifest. + bool supports_collaboration = 4 [deprecated = true]; + + // Whether the addon supports popping out to a browser PiP experience. + bool supports_pop_out = 5; + + // Deprecated, legacy name. Origins that should be added to the frame-src + // property of the iframe containing the third party site. Use add_on_origins + // instead. + repeated string host_origins = 6 [deprecated = true]; + + // Origins that should be added to the frame-src property of the iframe + // containing the third party site. + repeated string add_on_origins = 11; + + // The initial state when the addon is opened. + State open_state = 7; + + // Whether the collaboration add-on supports host controls. + bool supports_collaboration_host_controls = 8; + + // The URL of the logo to be displayed for the addon. If not specified, the + // logo defaults to the logo in the common section of the manifest. + string logo_url = 9; + + // A dark mode version of the logo_url. + string dark_mode_logo_url = 13; + + // The display flow the add-on will follow when launched. + DisplayFlow display_flow = 10 [deprecated = true]; +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppCommand.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppCommand.java new file mode 100644 index 000000000000..5ca76c4914dc --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppCommand.java @@ -0,0 +1,1763 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Configuration for an [app
+ * command](https://developers.google.com/workspace/chat/commands).
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.AppCommand} + */ +@com.google.protobuf.Generated +public final class AppCommand extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.AppCommand) + AppCommandOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AppCommand"); + } + + // Use AppCommand.newBuilder() to construct. + private AppCommand(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AppCommand() { + commandType_ = 0; + command_ = ""; + displayName_ = ""; + description_ = ""; + loadingNotificationMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.AppCommand.class, + com.google.cloud.gsuiteaddons.v1.AppCommand.Builder.class); + } + + /** + * + * + *
+   * The type of the App Command.
+   * 
+ * + * Protobuf enum {@code google.cloud.gsuiteaddons.v1.AppCommand.CommandType} + */ + public enum CommandType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Unspecified.
+     * 
+ * + * COMMAND_TYPE_UNSPECIFIED = 0; + */ + COMMAND_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A command invoked by typing a '/' followed by the command name.
+     * It may accept additional arguments in the message text.
+     * 
+ * + * SLASH_COMMAND = 1; + */ + SLASH_COMMAND(1), + /** + * + * + *
+     * A quick command invoked from the message compose context menu.
+     * Quick commands do not accept additional arguments.
+     * 
+ * + * QUICK_COMMAND = 2; + */ + QUICK_COMMAND(2), + /** + * + * + *
+     * A command invoked from a message context menu.
+     * 
+ * + * MESSAGE_ACTION = 3; + */ + MESSAGE_ACTION(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CommandType"); + } + + /** + * + * + *
+     * Default value. Unspecified.
+     * 
+ * + * COMMAND_TYPE_UNSPECIFIED = 0; + */ + public static final int COMMAND_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * A command invoked by typing a '/' followed by the command name.
+     * It may accept additional arguments in the message text.
+     * 
+ * + * SLASH_COMMAND = 1; + */ + public static final int SLASH_COMMAND_VALUE = 1; + + /** + * + * + *
+     * A quick command invoked from the message compose context menu.
+     * Quick commands do not accept additional arguments.
+     * 
+ * + * QUICK_COMMAND = 2; + */ + public static final int QUICK_COMMAND_VALUE = 2; + + /** + * + * + *
+     * A command invoked from a message context menu.
+     * 
+ * + * MESSAGE_ACTION = 3; + */ + public static final int MESSAGE_ACTION_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 CommandType 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 CommandType forNumber(int value) { + switch (value) { + case 0: + return COMMAND_TYPE_UNSPECIFIED; + case 1: + return SLASH_COMMAND; + case 2: + return QUICK_COMMAND; + case 3: + return MESSAGE_ACTION; + 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 CommandType findValueByNumber(int number) { + return CommandType.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.gsuiteaddons.v1.AppCommand.getDescriptor().getEnumTypes().get(0); + } + + private static final CommandType[] VALUES = values(); + + public static CommandType 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 CommandType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gsuiteaddons.v1.AppCommand.CommandType) + } + + public static final int COMMAND_TYPE_FIELD_NUMBER = 1; + private int commandType_ = 0; + + /** + * + * + *
+   * Required. The type of this command.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for commandType. + */ + @java.lang.Override + public int getCommandTypeValue() { + return commandType_; + } + + /** + * + * + *
+   * Required. The type of this command.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The commandType. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType getCommandType() { + com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType result = + com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType.forNumber(commandType_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType.UNRECOGNIZED + : result; + } + + public static final int COMMAND_ID_FIELD_NUMBER = 2; + private int commandId_ = 0; + + /** + * + * + *
+   * Required. The ID of the command (1-1000). Must be unique within the app.
+   * 
+ * + * int32 command_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The commandId. + */ + @java.lang.Override + public int getCommandId() { + return commandId_; + } + + public static final int COMMAND_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object command_ = ""; + + /** + * + * + *
+   * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+   * for other command types. Must start with a "/", e.g., "/command".
+   * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The command. + */ + @java.lang.Override + public java.lang.String getCommand() { + java.lang.Object ref = command_; + 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(); + command_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+   * for other command types. Must start with a "/", e.g., "/command".
+   * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for command. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommandBytes() { + java.lang.Object ref = command_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + command_ = 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 user-friendly display name of the command. Required for
+   * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+   * 
+ * + * 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 user-friendly display name of the command. Required for
+   * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Required. A short description of the command.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. A short description of the command.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DIALOG_ENABLED_FIELD_NUMBER = 6; + private boolean dialogEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether this command should trigger a dialog. Defaults to
+   * `false`, if not specified.
+   * 
+ * + * bool dialog_enabled = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dialogEnabled. + */ + @java.lang.Override + public boolean getDialogEnabled() { + return dialogEnabled_; + } + + public static final int LOADING_NOTIFICATION_MESSAGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object loadingNotificationMessage_ = ""; + + /** + * + * + *
+   * Optional. A notification to be sent to the user when they trigger the
+   * message action. Only supported for MESSAGE_ACTION commands.
+   * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The loadingNotificationMessage. + */ + @java.lang.Override + public java.lang.String getLoadingNotificationMessage() { + java.lang.Object ref = loadingNotificationMessage_; + 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(); + loadingNotificationMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A notification to be sent to the user when they trigger the
+   * message action. Only supported for MESSAGE_ACTION commands.
+   * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for loadingNotificationMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoadingNotificationMessageBytes() { + java.lang.Object ref = loadingNotificationMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loadingNotificationMessage_ = 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 (commandType_ + != com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType.COMMAND_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, commandType_); + } + if (commandId_ != 0) { + output.writeInt32(2, commandId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(command_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, command_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, description_); + } + if (dialogEnabled_ != false) { + output.writeBool(6, dialogEnabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(loadingNotificationMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, loadingNotificationMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (commandType_ + != com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType.COMMAND_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, commandType_); + } + if (commandId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, commandId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(command_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, command_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, description_); + } + if (dialogEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, dialogEnabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(loadingNotificationMessage_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(7, loadingNotificationMessage_); + } + 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.gsuiteaddons.v1.AppCommand)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.AppCommand other = + (com.google.cloud.gsuiteaddons.v1.AppCommand) obj; + + if (commandType_ != other.commandType_) return false; + if (getCommandId() != other.getCommandId()) return false; + if (!getCommand().equals(other.getCommand())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getDialogEnabled() != other.getDialogEnabled()) return false; + if (!getLoadingNotificationMessage().equals(other.getLoadingNotificationMessage())) + 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) + COMMAND_TYPE_FIELD_NUMBER; + hash = (53 * hash) + commandType_; + hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommandId(); + hash = (37 * hash) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommand().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) + DIALOG_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDialogEnabled()); + hash = (37 * hash) + LOADING_NOTIFICATION_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getLoadingNotificationMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand 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.gsuiteaddons.v1.AppCommand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand 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.gsuiteaddons.v1.AppCommand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand 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.gsuiteaddons.v1.AppCommand parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand 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.gsuiteaddons.v1.AppCommand parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand 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.gsuiteaddons.v1.AppCommand 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 an [app
+   * command](https://developers.google.com/workspace/chat/commands).
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.AppCommand} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.AppCommand) + com.google.cloud.gsuiteaddons.v1.AppCommandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.AppCommand.class, + com.google.cloud.gsuiteaddons.v1.AppCommand.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.AppCommand.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + commandType_ = 0; + commandId_ = 0; + command_ = ""; + displayName_ = ""; + description_ = ""; + dialogEnabled_ = false; + loadingNotificationMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppCommand_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppCommand getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.AppCommand.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppCommand build() { + com.google.cloud.gsuiteaddons.v1.AppCommand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppCommand buildPartial() { + com.google.cloud.gsuiteaddons.v1.AppCommand result = + new com.google.cloud.gsuiteaddons.v1.AppCommand(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.AppCommand result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.commandType_ = commandType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commandId_ = commandId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.command_ = command_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dialogEnabled_ = dialogEnabled_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.loadingNotificationMessage_ = loadingNotificationMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.AppCommand) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.AppCommand) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.AppCommand other) { + if (other == com.google.cloud.gsuiteaddons.v1.AppCommand.getDefaultInstance()) return this; + if (other.commandType_ != 0) { + setCommandTypeValue(other.getCommandTypeValue()); + } + if (other.getCommandId() != 0) { + setCommandId(other.getCommandId()); + } + if (!other.getCommand().isEmpty()) { + command_ = other.command_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getDialogEnabled() != false) { + setDialogEnabled(other.getDialogEnabled()); + } + if (!other.getLoadingNotificationMessage().isEmpty()) { + loadingNotificationMessage_ = other.loadingNotificationMessage_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + commandType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + commandId_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + command_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + dialogEnabled_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + loadingNotificationMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int commandType_ = 0; + + /** + * + * + *
+     * Required. The type of this command.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for commandType. + */ + @java.lang.Override + public int getCommandTypeValue() { + return commandType_; + } + + /** + * + * + *
+     * Required. The type of this command.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for commandType to set. + * @return This builder for chaining. + */ + public Builder setCommandTypeValue(int value) { + commandType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of this command.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The commandType. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType getCommandType() { + com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType result = + com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType.forNumber(commandType_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The type of this command.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The commandType to set. + * @return This builder for chaining. + */ + public Builder setCommandType(com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + commandType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of this command.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCommandType() { + bitField0_ = (bitField0_ & ~0x00000001); + commandType_ = 0; + onChanged(); + return this; + } + + private int commandId_; + + /** + * + * + *
+     * Required. The ID of the command (1-1000). Must be unique within the app.
+     * 
+ * + * int32 command_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The commandId. + */ + @java.lang.Override + public int getCommandId() { + return commandId_; + } + + /** + * + * + *
+     * Required. The ID of the command (1-1000). Must be unique within the app.
+     * 
+ * + * int32 command_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The commandId to set. + * @return This builder for chaining. + */ + public Builder setCommandId(int value) { + + commandId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the command (1-1000). Must be unique within the app.
+     * 
+ * + * int32 command_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCommandId() { + bitField0_ = (bitField0_ & ~0x00000002); + commandId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object command_ = ""; + + /** + * + * + *
+     * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+     * for other command types. Must start with a "/", e.g., "/command".
+     * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The command. + */ + public java.lang.String getCommand() { + java.lang.Object ref = command_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + command_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+     * for other command types. Must start with a "/", e.g., "/command".
+     * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for command. + */ + public com.google.protobuf.ByteString getCommandBytes() { + java.lang.Object ref = command_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + command_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+     * for other command types. Must start with a "/", e.g., "/command".
+     * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The command to set. + * @return This builder for chaining. + */ + public Builder setCommand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + command_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+     * for other command types. Must start with a "/", e.g., "/command".
+     * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommand() { + command_ = getDefaultInstance().getCommand(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+     * for other command types. Must start with a "/", e.g., "/command".
+     * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for command to set. + * @return This builder for chaining. + */ + public Builder setCommandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + command_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The user-friendly display name of the command. Required for
+     * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+     * 
+ * + * 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 user-friendly display name of the command. Required for
+     * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+     * 
+ * + * 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 user-friendly display name of the command. Required for
+     * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+     * 
+ * + * 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 user-friendly display name of the command. Required for
+     * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+     * 
+ * + * 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 user-friendly display name of the command. Required for
+     * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+     * 
+ * + * 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 java.lang.Object description_ = ""; + + /** + * + * + *
+     * Required. A short description of the command.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. A short description of the command.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. A short description of the command.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+     * Required. A short description of the command.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A short description of the command.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 boolean dialogEnabled_; + + /** + * + * + *
+     * Optional. Whether this command should trigger a dialog. Defaults to
+     * `false`, if not specified.
+     * 
+ * + * bool dialog_enabled = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dialogEnabled. + */ + @java.lang.Override + public boolean getDialogEnabled() { + return dialogEnabled_; + } + + /** + * + * + *
+     * Optional. Whether this command should trigger a dialog. Defaults to
+     * `false`, if not specified.
+     * 
+ * + * bool dialog_enabled = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dialogEnabled to set. + * @return This builder for chaining. + */ + public Builder setDialogEnabled(boolean value) { + + dialogEnabled_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether this command should trigger a dialog. Defaults to
+     * `false`, if not specified.
+     * 
+ * + * bool dialog_enabled = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDialogEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + dialogEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object loadingNotificationMessage_ = ""; + + /** + * + * + *
+     * Optional. A notification to be sent to the user when they trigger the
+     * message action. Only supported for MESSAGE_ACTION commands.
+     * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loadingNotificationMessage. + */ + public java.lang.String getLoadingNotificationMessage() { + java.lang.Object ref = loadingNotificationMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loadingNotificationMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A notification to be sent to the user when they trigger the
+     * message action. Only supported for MESSAGE_ACTION commands.
+     * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for loadingNotificationMessage. + */ + public com.google.protobuf.ByteString getLoadingNotificationMessageBytes() { + java.lang.Object ref = loadingNotificationMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loadingNotificationMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A notification to be sent to the user when they trigger the
+     * message action. Only supported for MESSAGE_ACTION commands.
+     * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The loadingNotificationMessage to set. + * @return This builder for chaining. + */ + public Builder setLoadingNotificationMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + loadingNotificationMessage_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A notification to be sent to the user when they trigger the
+     * message action. Only supported for MESSAGE_ACTION commands.
+     * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLoadingNotificationMessage() { + loadingNotificationMessage_ = getDefaultInstance().getLoadingNotificationMessage(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A notification to be sent to the user when they trigger the
+     * message action. Only supported for MESSAGE_ACTION commands.
+     * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for loadingNotificationMessage to set. + * @return This builder for chaining. + */ + public Builder setLoadingNotificationMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loadingNotificationMessage_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.AppCommand) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.AppCommand) + private static final com.google.cloud.gsuiteaddons.v1.AppCommand DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.AppCommand(); + } + + public static com.google.cloud.gsuiteaddons.v1.AppCommand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppCommand 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.gsuiteaddons.v1.AppCommand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppCommandOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppCommandOrBuilder.java new file mode 100644 index 000000000000..b476f1024570 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppCommandOrBuilder.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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface AppCommandOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.AppCommand) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The type of this command.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for commandType. + */ + int getCommandTypeValue(); + + /** + * + * + *
+   * Required. The type of this command.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppCommand.CommandType command_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The commandType. + */ + com.google.cloud.gsuiteaddons.v1.AppCommand.CommandType getCommandType(); + + /** + * + * + *
+   * Required. The ID of the command (1-1000). Must be unique within the app.
+   * 
+ * + * int32 command_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The commandId. + */ + int getCommandId(); + + /** + * + * + *
+   * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+   * for other command types. Must start with a "/", e.g., "/command".
+   * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The command. + */ + java.lang.String getCommand(); + + /** + * + * + *
+   * Optional. The name of the command. Required for SLASH_COMMAND, do not set
+   * for other command types. Must start with a "/", e.g., "/command".
+   * 
+ * + * string command = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for command. + */ + com.google.protobuf.ByteString getCommandBytes(); + + /** + * + * + *
+   * Optional. The user-friendly display name of the command. Required for
+   * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The user-friendly display name of the command. Required for
+   * MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. A short description of the command.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Required. A short description of the command.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Whether this command should trigger a dialog. Defaults to
+   * `false`, if not specified.
+   * 
+ * + * bool dialog_enabled = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dialogEnabled. + */ + boolean getDialogEnabled(); + + /** + * + * + *
+   * Optional. A notification to be sent to the user when they trigger the
+   * message action. Only supported for MESSAGE_ACTION commands.
+   * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The loadingNotificationMessage. + */ + java.lang.String getLoadingNotificationMessage(); + + /** + * + * + *
+   * Optional. A notification to be sent to the user when they trigger the
+   * message action. Only supported for MESSAGE_ACTION commands.
+   * 
+ * + * string loading_notification_message = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for loadingNotificationMessage. + */ + com.google.protobuf.ByteString getLoadingNotificationMessageBytes(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptEndpointConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptEndpointConfig.java new file mode 100644 index 000000000000..203c685cb160 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptEndpointConfig.java @@ -0,0 +1,953 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Apps Script endpoint configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig} + */ +@com.google.protobuf.Generated +public final class AppsScriptEndpointConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) + AppsScriptEndpointConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AppsScriptEndpointConfig"); + } + + // Use AppsScriptEndpointConfig.newBuilder() to construct. + private AppsScriptEndpointConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AppsScriptEndpointConfig() { + deploymentId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.Builder.class); + } + + private int bitField0_; + public static final int DEPLOYMENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentId_ = ""; + + /** + * + * + *
+   * Required. The Apps Script deployment ID.
+   * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. + */ + @java.lang.Override + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + 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(); + deploymentId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The Apps Script deployment ID.
+   * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PER_EVENT_ENDPOINT_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig perEventEndpointConfig_; + + /** + * + * + *
+   * Optional. The names of the Apps Script functions that Google Chat calls
+   * for each type of interactive event. If not specified, Chat calls the
+   * default function for each event type.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the perEventEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasPerEventEndpointConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The names of the Apps Script functions that Google Chat calls
+   * for each type of interactive event. If not specified, Chat calls the
+   * default function for each event type.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The perEventEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + getPerEventEndpointConfig() { + return perEventEndpointConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.getDefaultInstance() + : perEventEndpointConfig_; + } + + /** + * + * + *
+   * Optional. The names of the Apps Script functions that Google Chat calls
+   * for each type of interactive event. If not specified, Chat calls the
+   * default function for each event type.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfigOrBuilder + getPerEventEndpointConfigOrBuilder() { + return perEventEndpointConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.getDefaultInstance() + : perEventEndpointConfig_; + } + + 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(deploymentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, deploymentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPerEventEndpointConfig()); + } + 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(deploymentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, deploymentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPerEventEndpointConfig()); + } + 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.gsuiteaddons.v1.AppsScriptEndpointConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig other = + (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) obj; + + if (!getDeploymentId().equals(other.getDeploymentId())) return false; + if (hasPerEventEndpointConfig() != other.hasPerEventEndpointConfig()) return false; + if (hasPerEventEndpointConfig()) { + if (!getPerEventEndpointConfig().equals(other.getPerEventEndpointConfig())) 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) + DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentId().hashCode(); + if (hasPerEventEndpointConfig()) { + hash = (37 * hash) + PER_EVENT_ENDPOINT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPerEventEndpointConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig 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.gsuiteaddons.v1.AppsScriptEndpointConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig 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.gsuiteaddons.v1.AppsScriptEndpointConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig 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.gsuiteaddons.v1.AppsScriptEndpointConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig 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.gsuiteaddons.v1.AppsScriptEndpointConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig 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.gsuiteaddons.v1.AppsScriptEndpointConfig 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; + } + + /** + * + * + *
+   * Apps Script endpoint configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPerEventEndpointConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deploymentId_ = ""; + perEventEndpointConfig_ = null; + if (perEventEndpointConfigBuilder_ != null) { + perEventEndpointConfigBuilder_.dispose(); + perEventEndpointConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig build() { + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig result = + new com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deploymentId_ = deploymentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.perEventEndpointConfig_ = + perEventEndpointConfigBuilder_ == null + ? perEventEndpointConfig_ + : perEventEndpointConfigBuilder_.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.gsuiteaddons.v1.AppsScriptEndpointConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig other) { + if (other == com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance()) + return this; + if (!other.getDeploymentId().isEmpty()) { + deploymentId_ = other.deploymentId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPerEventEndpointConfig()) { + mergePerEventEndpointConfig(other.getPerEventEndpointConfig()); + } + 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: + { + deploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPerEventEndpointConfigFieldBuilder().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 deploymentId_ = ""; + + /** + * + * + *
+     * Required. The Apps Script deployment ID.
+     * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. + */ + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The Apps Script deployment ID.
+     * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. + */ + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The Apps Script deployment ID.
+     * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Apps Script deployment ID.
+     * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentId() { + deploymentId_ = getDefaultInstance().getDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Apps Script deployment ID.
+     * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + perEventEndpointConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig, + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfigOrBuilder> + perEventEndpointConfigBuilder_; + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the perEventEndpointConfig field is set. + */ + public boolean hasPerEventEndpointConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The perEventEndpointConfig. + */ + public com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + getPerEventEndpointConfig() { + if (perEventEndpointConfigBuilder_ == null) { + return perEventEndpointConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.getDefaultInstance() + : perEventEndpointConfig_; + } else { + return perEventEndpointConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPerEventEndpointConfig( + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig value) { + if (perEventEndpointConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + perEventEndpointConfig_ = value; + } else { + perEventEndpointConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPerEventEndpointConfig( + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.Builder builderForValue) { + if (perEventEndpointConfigBuilder_ == null) { + perEventEndpointConfig_ = builderForValue.build(); + } else { + perEventEndpointConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePerEventEndpointConfig( + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig value) { + if (perEventEndpointConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && perEventEndpointConfig_ != null + && perEventEndpointConfig_ + != com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + .getDefaultInstance()) { + getPerEventEndpointConfigBuilder().mergeFrom(value); + } else { + perEventEndpointConfig_ = value; + } + } else { + perEventEndpointConfigBuilder_.mergeFrom(value); + } + if (perEventEndpointConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPerEventEndpointConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + perEventEndpointConfig_ = null; + if (perEventEndpointConfigBuilder_ != null) { + perEventEndpointConfigBuilder_.dispose(); + perEventEndpointConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.Builder + getPerEventEndpointConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPerEventEndpointConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfigOrBuilder + getPerEventEndpointConfigOrBuilder() { + if (perEventEndpointConfigBuilder_ != null) { + return perEventEndpointConfigBuilder_.getMessageOrBuilder(); + } else { + return perEventEndpointConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.getDefaultInstance() + : perEventEndpointConfig_; + } + } + + /** + * + * + *
+     * Optional. The names of the Apps Script functions that Google Chat calls
+     * for each type of interactive event. If not specified, Chat calls the
+     * default function for each event type.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig, + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfigOrBuilder> + internalGetPerEventEndpointConfigFieldBuilder() { + if (perEventEndpointConfigBuilder_ == null) { + perEventEndpointConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig, + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfigOrBuilder>( + getPerEventEndpointConfig(), getParentForChildren(), isClean()); + perEventEndpointConfig_ = null; + } + return perEventEndpointConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) + private static final com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppsScriptEndpointConfig 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.gsuiteaddons.v1.AppsScriptEndpointConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptEndpointConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptEndpointConfigOrBuilder.java new file mode 100644 index 000000000000..c47fc4026100 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptEndpointConfigOrBuilder.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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface AppsScriptEndpointConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Apps Script deployment ID.
+   * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentId. + */ + java.lang.String getDeploymentId(); + + /** + * + * + *
+   * Required. The Apps Script deployment ID.
+   * 
+ * + * string deployment_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentId. + */ + com.google.protobuf.ByteString getDeploymentIdBytes(); + + /** + * + * + *
+   * Optional. The names of the Apps Script functions that Google Chat calls
+   * for each type of interactive event. If not specified, Chat calls the
+   * default function for each event type.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the perEventEndpointConfig field is set. + */ + boolean hasPerEventEndpointConfig(); + + /** + * + * + *
+   * Optional. The names of the Apps Script functions that Google Chat calls
+   * for each type of interactive event. If not specified, Chat calls the
+   * default function for each event type.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The perEventEndpointConfig. + */ + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig getPerEventEndpointConfig(); + + /** + * + * + *
+   * Optional. The names of the Apps Script functions that Google Chat calls
+   * for each type of interactive event. If not specified, Chat calls the
+   * default function for each event type.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfigOrBuilder + getPerEventEndpointConfigOrBuilder(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptPerEventEndpointConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptPerEventEndpointConfig.java new file mode 100644 index 000000000000..10bd0376bfbb --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptPerEventEndpointConfig.java @@ -0,0 +1,1397 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Apps Script endpoint configuration for specific event types.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig} + */ +@com.google.protobuf.Generated +public final class AppsScriptPerEventEndpointConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig) + AppsScriptPerEventEndpointConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AppsScriptPerEventEndpointConfig"); + } + + // Use AppsScriptPerEventEndpointConfig.newBuilder() to construct. + private AppsScriptPerEventEndpointConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AppsScriptPerEventEndpointConfig() { + appCommandEndpoint_ = ""; + addedToSpaceEndpoint_ = ""; + messageEndpoint_ = ""; + removedFromSpaceEndpoint_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.Builder.class); + } + + private int bitField0_; + public static final int APP_COMMAND_ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object appCommandEndpoint_ = ""; + + /** + * + * + *
+   * Optional. Function name for app command events. If not specified, the
+   * default `onAppCommand` function name will be used.
+   * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the appCommandEndpoint field is set. + */ + @java.lang.Override + public boolean hasAppCommandEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Function name for app command events. If not specified, the
+   * default `onAppCommand` function name will be used.
+   * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appCommandEndpoint. + */ + @java.lang.Override + public java.lang.String getAppCommandEndpoint() { + java.lang.Object ref = appCommandEndpoint_; + 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(); + appCommandEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Function name for app command events. If not specified, the
+   * default `onAppCommand` function name will be used.
+   * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for appCommandEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppCommandEndpointBytes() { + java.lang.Object ref = appCommandEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appCommandEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDED_TO_SPACE_ENDPOINT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object addedToSpaceEndpoint_ = ""; + + /** + * + * + *
+   * Optional. Function name for added to space events. If not specified, the
+   * default `onAddedToSpace` function name will be used.
+   * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the addedToSpaceEndpoint field is set. + */ + @java.lang.Override + public boolean hasAddedToSpaceEndpoint() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Function name for added to space events. If not specified, the
+   * default `onAddedToSpace` function name will be used.
+   * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The addedToSpaceEndpoint. + */ + @java.lang.Override + public java.lang.String getAddedToSpaceEndpoint() { + java.lang.Object ref = addedToSpaceEndpoint_; + 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(); + addedToSpaceEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Function name for added to space events. If not specified, the
+   * default `onAddedToSpace` function name will be used.
+   * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for addedToSpaceEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddedToSpaceEndpointBytes() { + java.lang.Object ref = addedToSpaceEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addedToSpaceEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_ENDPOINT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object messageEndpoint_ = ""; + + /** + * + * + *
+   * Optional. Function name for message events. If not specified, the default
+   * `onMessage` function name will be used.
+   * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the messageEndpoint field is set. + */ + @java.lang.Override + public boolean hasMessageEndpoint() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Function name for message events. If not specified, the default
+   * `onMessage` function name will be used.
+   * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The messageEndpoint. + */ + @java.lang.Override + public java.lang.String getMessageEndpoint() { + java.lang.Object ref = messageEndpoint_; + 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(); + messageEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Function name for message events. If not specified, the default
+   * `onMessage` function name will be used.
+   * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for messageEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageEndpointBytes() { + java.lang.Object ref = messageEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + messageEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOVED_FROM_SPACE_ENDPOINT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object removedFromSpaceEndpoint_ = ""; + + /** + * + * + *
+   * Optional. Function name for removed from space events. If not specified,
+   * the default `onRemovedFromSpace` function name will be used.
+   * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the removedFromSpaceEndpoint field is set. + */ + @java.lang.Override + public boolean hasRemovedFromSpaceEndpoint() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Function name for removed from space events. If not specified,
+   * the default `onRemovedFromSpace` function name will be used.
+   * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The removedFromSpaceEndpoint. + */ + @java.lang.Override + public java.lang.String getRemovedFromSpaceEndpoint() { + java.lang.Object ref = removedFromSpaceEndpoint_; + 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(); + removedFromSpaceEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Function name for removed from space events. If not specified,
+   * the default `onRemovedFromSpace` function name will be used.
+   * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for removedFromSpaceEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRemovedFromSpaceEndpointBytes() { + java.lang.Object ref = removedFromSpaceEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + removedFromSpaceEndpoint_ = 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, appCommandEndpoint_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, addedToSpaceEndpoint_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, messageEndpoint_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, removedFromSpaceEndpoint_); + } + 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, appCommandEndpoint_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, addedToSpaceEndpoint_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, messageEndpoint_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, removedFromSpaceEndpoint_); + } + 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.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig other = + (com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig) obj; + + if (hasAppCommandEndpoint() != other.hasAppCommandEndpoint()) return false; + if (hasAppCommandEndpoint()) { + if (!getAppCommandEndpoint().equals(other.getAppCommandEndpoint())) return false; + } + if (hasAddedToSpaceEndpoint() != other.hasAddedToSpaceEndpoint()) return false; + if (hasAddedToSpaceEndpoint()) { + if (!getAddedToSpaceEndpoint().equals(other.getAddedToSpaceEndpoint())) return false; + } + if (hasMessageEndpoint() != other.hasMessageEndpoint()) return false; + if (hasMessageEndpoint()) { + if (!getMessageEndpoint().equals(other.getMessageEndpoint())) return false; + } + if (hasRemovedFromSpaceEndpoint() != other.hasRemovedFromSpaceEndpoint()) return false; + if (hasRemovedFromSpaceEndpoint()) { + if (!getRemovedFromSpaceEndpoint().equals(other.getRemovedFromSpaceEndpoint())) 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 (hasAppCommandEndpoint()) { + hash = (37 * hash) + APP_COMMAND_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getAppCommandEndpoint().hashCode(); + } + if (hasAddedToSpaceEndpoint()) { + hash = (37 * hash) + ADDED_TO_SPACE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getAddedToSpaceEndpoint().hashCode(); + } + if (hasMessageEndpoint()) { + hash = (37 * hash) + MESSAGE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getMessageEndpoint().hashCode(); + } + if (hasRemovedFromSpaceEndpoint()) { + hash = (37 * hash) + REMOVED_FROM_SPACE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getRemovedFromSpaceEndpoint().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig 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.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig 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.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig 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.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + 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.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig 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.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig 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; + } + + /** + * + * + *
+   * Apps Script endpoint configuration for specific event types.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig) + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.Builder.class); + } + + // Construct using + // com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appCommandEndpoint_ = ""; + addedToSpaceEndpoint_ = ""; + messageEndpoint_ = ""; + removedFromSpaceEndpoint_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig build() { + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig result = + new com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appCommandEndpoint_ = appCommandEndpoint_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.addedToSpaceEndpoint_ = addedToSpaceEndpoint_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.messageEndpoint_ = messageEndpoint_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.removedFromSpaceEndpoint_ = removedFromSpaceEndpoint_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig other) { + if (other + == com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig.getDefaultInstance()) + return this; + if (other.hasAppCommandEndpoint()) { + appCommandEndpoint_ = other.appCommandEndpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAddedToSpaceEndpoint()) { + addedToSpaceEndpoint_ = other.addedToSpaceEndpoint_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMessageEndpoint()) { + messageEndpoint_ = other.messageEndpoint_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRemovedFromSpaceEndpoint()) { + removedFromSpaceEndpoint_ = other.removedFromSpaceEndpoint_; + 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 10: + { + appCommandEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + addedToSpaceEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + messageEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + removedFromSpaceEndpoint_ = 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 java.lang.Object appCommandEndpoint_ = ""; + + /** + * + * + *
+     * Optional. Function name for app command events. If not specified, the
+     * default `onAppCommand` function name will be used.
+     * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the appCommandEndpoint field is set. + */ + public boolean hasAppCommandEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Function name for app command events. If not specified, the
+     * default `onAppCommand` function name will be used.
+     * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appCommandEndpoint. + */ + public java.lang.String getAppCommandEndpoint() { + java.lang.Object ref = appCommandEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appCommandEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Function name for app command events. If not specified, the
+     * default `onAppCommand` function name will be used.
+     * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for appCommandEndpoint. + */ + public com.google.protobuf.ByteString getAppCommandEndpointBytes() { + java.lang.Object ref = appCommandEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appCommandEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Function name for app command events. If not specified, the
+     * default `onAppCommand` function name will be used.
+     * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The appCommandEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAppCommandEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appCommandEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Function name for app command events. If not specified, the
+     * default `onAppCommand` function name will be used.
+     * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAppCommandEndpoint() { + appCommandEndpoint_ = getDefaultInstance().getAppCommandEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Function name for app command events. If not specified, the
+     * default `onAppCommand` function name will be used.
+     * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for appCommandEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAppCommandEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appCommandEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object addedToSpaceEndpoint_ = ""; + + /** + * + * + *
+     * Optional. Function name for added to space events. If not specified, the
+     * default `onAddedToSpace` function name will be used.
+     * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the addedToSpaceEndpoint field is set. + */ + public boolean hasAddedToSpaceEndpoint() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Function name for added to space events. If not specified, the
+     * default `onAddedToSpace` function name will be used.
+     * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The addedToSpaceEndpoint. + */ + public java.lang.String getAddedToSpaceEndpoint() { + java.lang.Object ref = addedToSpaceEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addedToSpaceEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Function name for added to space events. If not specified, the
+     * default `onAddedToSpace` function name will be used.
+     * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for addedToSpaceEndpoint. + */ + public com.google.protobuf.ByteString getAddedToSpaceEndpointBytes() { + java.lang.Object ref = addedToSpaceEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addedToSpaceEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Function name for added to space events. If not specified, the
+     * default `onAddedToSpace` function name will be used.
+     * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The addedToSpaceEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAddedToSpaceEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addedToSpaceEndpoint_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Function name for added to space events. If not specified, the
+     * default `onAddedToSpace` function name will be used.
+     * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAddedToSpaceEndpoint() { + addedToSpaceEndpoint_ = getDefaultInstance().getAddedToSpaceEndpoint(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Function name for added to space events. If not specified, the
+     * default `onAddedToSpace` function name will be used.
+     * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for addedToSpaceEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAddedToSpaceEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addedToSpaceEndpoint_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object messageEndpoint_ = ""; + + /** + * + * + *
+     * Optional. Function name for message events. If not specified, the default
+     * `onMessage` function name will be used.
+     * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the messageEndpoint field is set. + */ + public boolean hasMessageEndpoint() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Function name for message events. If not specified, the default
+     * `onMessage` function name will be used.
+     * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The messageEndpoint. + */ + public java.lang.String getMessageEndpoint() { + java.lang.Object ref = messageEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + messageEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Function name for message events. If not specified, the default
+     * `onMessage` function name will be used.
+     * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for messageEndpoint. + */ + public com.google.protobuf.ByteString getMessageEndpointBytes() { + java.lang.Object ref = messageEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + messageEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Function name for message events. If not specified, the default
+     * `onMessage` function name will be used.
+     * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The messageEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMessageEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + messageEndpoint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Function name for message events. If not specified, the default
+     * `onMessage` function name will be used.
+     * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMessageEndpoint() { + messageEndpoint_ = getDefaultInstance().getMessageEndpoint(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Function name for message events. If not specified, the default
+     * `onMessage` function name will be used.
+     * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for messageEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMessageEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + messageEndpoint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object removedFromSpaceEndpoint_ = ""; + + /** + * + * + *
+     * Optional. Function name for removed from space events. If not specified,
+     * the default `onRemovedFromSpace` function name will be used.
+     * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the removedFromSpaceEndpoint field is set. + */ + public boolean hasRemovedFromSpaceEndpoint() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Function name for removed from space events. If not specified,
+     * the default `onRemovedFromSpace` function name will be used.
+     * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The removedFromSpaceEndpoint. + */ + public java.lang.String getRemovedFromSpaceEndpoint() { + java.lang.Object ref = removedFromSpaceEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + removedFromSpaceEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Function name for removed from space events. If not specified,
+     * the default `onRemovedFromSpace` function name will be used.
+     * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for removedFromSpaceEndpoint. + */ + public com.google.protobuf.ByteString getRemovedFromSpaceEndpointBytes() { + java.lang.Object ref = removedFromSpaceEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + removedFromSpaceEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Function name for removed from space events. If not specified,
+     * the default `onRemovedFromSpace` function name will be used.
+     * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The removedFromSpaceEndpoint to set. + * @return This builder for chaining. + */ + public Builder setRemovedFromSpaceEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + removedFromSpaceEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Function name for removed from space events. If not specified,
+     * the default `onRemovedFromSpace` function name will be used.
+     * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRemovedFromSpaceEndpoint() { + removedFromSpaceEndpoint_ = getDefaultInstance().getRemovedFromSpaceEndpoint(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Function name for removed from space events. If not specified,
+     * the default `onRemovedFromSpace` function name will be used.
+     * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for removedFromSpaceEndpoint to set. + * @return This builder for chaining. + */ + public Builder setRemovedFromSpaceEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + removedFromSpaceEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig) + private static final com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppsScriptPerEventEndpointConfig 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.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptPerEventEndpointConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptPerEventEndpointConfigOrBuilder.java new file mode 100644 index 000000000000..061329afa36e --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AppsScriptPerEventEndpointConfigOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface AppsScriptPerEventEndpointConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Function name for app command events. If not specified, the
+   * default `onAppCommand` function name will be used.
+   * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the appCommandEndpoint field is set. + */ + boolean hasAppCommandEndpoint(); + + /** + * + * + *
+   * Optional. Function name for app command events. If not specified, the
+   * default `onAppCommand` function name will be used.
+   * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appCommandEndpoint. + */ + java.lang.String getAppCommandEndpoint(); + + /** + * + * + *
+   * Optional. Function name for app command events. If not specified, the
+   * default `onAppCommand` function name will be used.
+   * 
+ * + * optional string app_command_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for appCommandEndpoint. + */ + com.google.protobuf.ByteString getAppCommandEndpointBytes(); + + /** + * + * + *
+   * Optional. Function name for added to space events. If not specified, the
+   * default `onAddedToSpace` function name will be used.
+   * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the addedToSpaceEndpoint field is set. + */ + boolean hasAddedToSpaceEndpoint(); + + /** + * + * + *
+   * Optional. Function name for added to space events. If not specified, the
+   * default `onAddedToSpace` function name will be used.
+   * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The addedToSpaceEndpoint. + */ + java.lang.String getAddedToSpaceEndpoint(); + + /** + * + * + *
+   * Optional. Function name for added to space events. If not specified, the
+   * default `onAddedToSpace` function name will be used.
+   * 
+ * + * optional string added_to_space_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for addedToSpaceEndpoint. + */ + com.google.protobuf.ByteString getAddedToSpaceEndpointBytes(); + + /** + * + * + *
+   * Optional. Function name for message events. If not specified, the default
+   * `onMessage` function name will be used.
+   * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the messageEndpoint field is set. + */ + boolean hasMessageEndpoint(); + + /** + * + * + *
+   * Optional. Function name for message events. If not specified, the default
+   * `onMessage` function name will be used.
+   * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The messageEndpoint. + */ + java.lang.String getMessageEndpoint(); + + /** + * + * + *
+   * Optional. Function name for message events. If not specified, the default
+   * `onMessage` function name will be used.
+   * 
+ * + * optional string message_endpoint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for messageEndpoint. + */ + com.google.protobuf.ByteString getMessageEndpointBytes(); + + /** + * + * + *
+   * Optional. Function name for removed from space events. If not specified,
+   * the default `onRemovedFromSpace` function name will be used.
+   * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the removedFromSpaceEndpoint field is set. + */ + boolean hasRemovedFromSpaceEndpoint(); + + /** + * + * + *
+   * Optional. Function name for removed from space events. If not specified,
+   * the default `onRemovedFromSpace` function name will be used.
+   * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The removedFromSpaceEndpoint. + */ + java.lang.String getRemovedFromSpaceEndpoint(); + + /** + * + * + *
+   * Optional. Function name for removed from space events. If not specified,
+   * the default `onRemovedFromSpace` function name will be used.
+   * 
+ * + * + * optional string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for removedFromSpaceEndpoint. + */ + com.google.protobuf.ByteString getRemovedFromSpaceEndpointBytes(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfig.java new file mode 100644 index 000000000000..b82db01c36e2 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfig.java @@ -0,0 +1,2568 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Represents the configuration of a Google Chat app built as a Google Workspace
+ * add-on.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.ChatAppConfig} + */ +@com.google.protobuf.Generated +public final class ChatAppConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.ChatAppConfig) + ChatAppConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ChatAppConfig"); + } + + // Use ChatAppConfig.newBuilder() to construct. + private ChatAppConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatAppConfig() { + name_ = ""; + displayName_ = ""; + avatarUri_ = ""; + description_ = ""; + state_ = 0; + markupSyntax_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.class, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.Builder.class); + } + + /** + * + * + *
+   * The current state of the Chat app.
+   * 
+ * + * Protobuf enum {@code google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState} + */ + public enum AppState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Unspecified.
+     * 
+ * + * APP_STATE_UNSPECIFIED = 0; + */ + APP_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Maps to LIVE in the Chat API configuration page.
+     * The app is active, it can be found and used by people with visibility.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The app is disabled, it can no longer be found by anyone, and nobody can
+     * talk to the app any more.
+     * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AppState"); + } + + /** + * + * + *
+     * Default value. Unspecified.
+     * 
+ * + * APP_STATE_UNSPECIFIED = 0; + */ + public static final int APP_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Maps to LIVE in the Chat API configuration page.
+     * The app is active, it can be found and used by people with visibility.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
+     * The app is disabled, it can no longer be found by anyone, and nobody can
+     * talk to the app any more.
+     * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_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 AppState 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 AppState forNumber(int value) { + switch (value) { + case 0: + return APP_STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return DISABLED; + 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 AppState findValueByNumber(int number) { + return AppState.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.gsuiteaddons.v1.ChatAppConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final AppState[] VALUES = values(); + + public static AppState 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 AppState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState) + } + + /** + * + * + *
+   * The markup syntax used to format message text for this Chat app.
+   * 
+ * + * Protobuf enum {@code google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax} + */ + public enum MarkupSyntax implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Unspecified. Existing Chat apps created before
+     * `markup_syntax` was introduced have this value and use
+     * `MARKUP_SYNTAX_CHAT` until explicitly updated.
+     * 
+ * + * MARKUP_SYNTAX_UNSPECIFIED = 0; + */ + MARKUP_SYNTAX_UNSPECIFIED(0), + /** + * + * + *
+     * Uses Google Chat's markup syntax.
+     * See
+     * https://developers.google.com/workspace/chat/format-messages#format-texts
+     * for more information.
+     * 
+ * + * MARKUP_SYNTAX_CHAT = 1; + */ + MARKUP_SYNTAX_CHAT(1), + /** + * + * + *
+     * Uses Markdown syntax. This syntax is based on the
+     * [CommonMark](https://commonmark.org/help/) specification, with additional
+     * extensions.
+     * See
+     * https://developers.google.com/workspace/chat/format-messages#format-texts
+     * for more information.
+     * 
+ * + * MARKUP_SYNTAX_MARKDOWN = 2; + */ + MARKUP_SYNTAX_MARKDOWN(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MarkupSyntax"); + } + + /** + * + * + *
+     * Default value. Unspecified. Existing Chat apps created before
+     * `markup_syntax` was introduced have this value and use
+     * `MARKUP_SYNTAX_CHAT` until explicitly updated.
+     * 
+ * + * MARKUP_SYNTAX_UNSPECIFIED = 0; + */ + public static final int MARKUP_SYNTAX_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Uses Google Chat's markup syntax.
+     * See
+     * https://developers.google.com/workspace/chat/format-messages#format-texts
+     * for more information.
+     * 
+ * + * MARKUP_SYNTAX_CHAT = 1; + */ + public static final int MARKUP_SYNTAX_CHAT_VALUE = 1; + + /** + * + * + *
+     * Uses Markdown syntax. This syntax is based on the
+     * [CommonMark](https://commonmark.org/help/) specification, with additional
+     * extensions.
+     * See
+     * https://developers.google.com/workspace/chat/format-messages#format-texts
+     * for more information.
+     * 
+ * + * MARKUP_SYNTAX_MARKDOWN = 2; + */ + public static final int MARKUP_SYNTAX_MARKDOWN_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 MarkupSyntax 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 MarkupSyntax forNumber(int value) { + switch (value) { + case 0: + return MARKUP_SYNTAX_UNSPECIFIED; + case 1: + return MARKUP_SYNTAX_CHAT; + case 2: + return MARKUP_SYNTAX_MARKDOWN; + 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 MarkupSyntax findValueByNumber(int number) { + return MarkupSyntax.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.gsuiteaddons.v1.ChatAppConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final MarkupSyntax[] VALUES = values(); + + public static MarkupSyntax 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 MarkupSyntax(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Identifier. Resource name of the Chat app configuration.
+   *
+   * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+   * Cloud project number.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. Identifier. Resource name of the Chat app configuration.
+   *
+   * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+   * Cloud project number.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. The display name of the Chat app. Length should be between 3 and
+   * 25 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The display name of the Chat app. Length should be between 3 and
+   * 25 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 AVATAR_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object avatarUri_ = ""; + + /** + * + * + *
+   * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+   * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+   * 256 by 256 pixels. A default app avatar will be used if not specified.
+   * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the avatarUri field is set. + */ + @java.lang.Override + public boolean hasAvatarUri() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+   * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+   * 256 by 256 pixels. A default app avatar will be used if not specified.
+   * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The avatarUri. + */ + @java.lang.Override + public java.lang.String getAvatarUri() { + java.lang.Object ref = avatarUri_; + 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(); + avatarUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+   * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+   * 256 by 256 pixels. A default app avatar will be used if not specified.
+   * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for avatarUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAvatarUriBytes() { + java.lang.Object ref = avatarUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + avatarUri_ = 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_ = ""; + + /** + * + * + *
+   * Required. A short description of the Chat app.
+   * Should be between 1 and 40 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. A short description of the Chat app.
+   * Should be between 1 and 40 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 STATE_FIELD_NUMBER = 5; + private int state_ = 0; + + /** + * + * + *
+   * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState getState() { + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState result = + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState.forNumber(state_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState.UNRECOGNIZED + : result; + } + + public static final int INTERACTIVE_FEATURE_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactiveFeatureConfig_; + + /** + * + * + *
+   * Optional. The settings for interactive features of the app. If this is not
+   * provided, the app will be non-interactive, meaning that it can use the Chat
+   * API, but users can't interact with the app.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interactiveFeatureConfig field is set. + */ + @java.lang.Override + public boolean hasInteractiveFeatureConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The settings for interactive features of the app. If this is not
+   * provided, the app will be non-interactive, meaning that it can use the Chat
+   * API, but users can't interact with the app.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interactiveFeatureConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig getInteractiveFeatureConfig() { + return interactiveFeatureConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.getDefaultInstance() + : interactiveFeatureConfig_; + } + + /** + * + * + *
+   * Optional. The settings for interactive features of the app. If this is not
+   * provided, the app will be non-interactive, meaning that it can use the Chat
+   * API, but users can't interact with the app.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfigOrBuilder + getInteractiveFeatureConfigOrBuilder() { + return interactiveFeatureConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.getDefaultInstance() + : interactiveFeatureConfig_; + } + + public static final int ERROR_LOGGING_ENABLED_FIELD_NUMBER = 7; + private boolean errorLoggingEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether to log errors to Cloud Logging. Defaults to `false` if
+   * not specified.
+   * 
+ * + * optional bool error_logging_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the errorLoggingEnabled field is set. + */ + @java.lang.Override + public boolean hasErrorLoggingEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Whether to log errors to Cloud Logging. Defaults to `false` if
+   * not specified.
+   * 
+ * + * optional bool error_logging_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The errorLoggingEnabled. + */ + @java.lang.Override + public boolean getErrorLoggingEnabled() { + return errorLoggingEnabled_; + } + + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 8; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. The default markup syntax for messages sent or read by this Chat
+   * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the markupSyntax field is set. + */ + @java.lang.Override + public boolean hasMarkupSyntax() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. The default markup syntax for messages sent or read by this Chat
+   * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. The default markup syntax for messages sent or read by this Chat
+   * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax getMarkupSyntax() { + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax result = + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax.forNumber(markupSyntax_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax.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(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, avatarUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(5, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getInteractiveFeatureConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(7, errorLoggingEnabled_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(8, markupSyntax_); + } + 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(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, avatarUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getInteractiveFeatureConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, errorLoggingEnabled_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, markupSyntax_); + } + 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.gsuiteaddons.v1.ChatAppConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.ChatAppConfig other = + (com.google.cloud.gsuiteaddons.v1.ChatAppConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasAvatarUri() != other.hasAvatarUri()) return false; + if (hasAvatarUri()) { + if (!getAvatarUri().equals(other.getAvatarUri())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (state_ != other.state_) return false; + } + if (hasInteractiveFeatureConfig() != other.hasInteractiveFeatureConfig()) return false; + if (hasInteractiveFeatureConfig()) { + if (!getInteractiveFeatureConfig().equals(other.getInteractiveFeatureConfig())) return false; + } + if (hasErrorLoggingEnabled() != other.hasErrorLoggingEnabled()) return false; + if (hasErrorLoggingEnabled()) { + if (getErrorLoggingEnabled() != other.getErrorLoggingEnabled()) return false; + } + if (hasMarkupSyntax() != other.hasMarkupSyntax()) return false; + if (hasMarkupSyntax()) { + if (markupSyntax_ != other.markupSyntax_) 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(); + if (hasAvatarUri()) { + hash = (37 * hash) + AVATAR_URI_FIELD_NUMBER; + hash = (53 * hash) + getAvatarUri().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + } + if (hasInteractiveFeatureConfig()) { + hash = (37 * hash) + INTERACTIVE_FEATURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInteractiveFeatureConfig().hashCode(); + } + if (hasErrorLoggingEnabled()) { + hash = (37 * hash) + ERROR_LOGGING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getErrorLoggingEnabled()); + } + if (hasMarkupSyntax()) { + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig 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.gsuiteaddons.v1.ChatAppConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig 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.gsuiteaddons.v1.ChatAppConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig 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.gsuiteaddons.v1.ChatAppConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig 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.gsuiteaddons.v1.ChatAppConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig 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.gsuiteaddons.v1.ChatAppConfig 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 configuration of a Google Chat app built as a Google Workspace
+   * add-on.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.ChatAppConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.ChatAppConfig) + com.google.cloud.gsuiteaddons.v1.ChatAppConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.class, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.ChatAppConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInteractiveFeatureConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + avatarUri_ = ""; + description_ = ""; + state_ = 0; + interactiveFeatureConfig_ = null; + if (interactiveFeatureConfigBuilder_ != null) { + interactiveFeatureConfigBuilder_.dispose(); + interactiveFeatureConfigBuilder_ = null; + } + errorLoggingEnabled_ = false; + markupSyntax_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.ChatAppConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig build() { + com.google.cloud.gsuiteaddons.v1.ChatAppConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.ChatAppConfig result = + new com.google.cloud.gsuiteaddons.v1.ChatAppConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.ChatAppConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.avatarUri_ = avatarUri_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.interactiveFeatureConfig_ = + interactiveFeatureConfigBuilder_ == null + ? interactiveFeatureConfig_ + : interactiveFeatureConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.errorLoggingEnabled_ = errorLoggingEnabled_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.markupSyntax_ = markupSyntax_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.ChatAppConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.ChatAppConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.ChatAppConfig other) { + if (other == com.google.cloud.gsuiteaddons.v1.ChatAppConfig.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.hasAvatarUri()) { + avatarUri_ = other.avatarUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasState()) { + setStateValue(other.getStateValue()); + } + if (other.hasInteractiveFeatureConfig()) { + mergeInteractiveFeatureConfig(other.getInteractiveFeatureConfig()); + } + if (other.hasErrorLoggingEnabled()) { + setErrorLoggingEnabled(other.getErrorLoggingEnabled()); + } + if (other.hasMarkupSyntax()) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + avatarUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetInteractiveFeatureConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + errorLoggingEnabled_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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. Identifier. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. Identifier. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. Identifier. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + + /** + * + * + *
+     * Required. Identifier. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Identifier. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.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 displayName_ = ""; + + /** + * + * + *
+     * Required. The display name of the Chat app. Length should be between 3 and
+     * 25 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The display name of the Chat app. Length should be between 3 and
+     * 25 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The display name of the Chat app. Length should be between 3 and
+     * 25 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+     * Required. The display name of the Chat app. Length should be between 3 and
+     * 25 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The display name of the Chat app. Length should be between 3 and
+     * 25 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 avatarUri_ = ""; + + /** + * + * + *
+     * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+     * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+     * 256 by 256 pixels. A default app avatar will be used if not specified.
+     * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the avatarUri field is set. + */ + public boolean hasAvatarUri() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+     * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+     * 256 by 256 pixels. A default app avatar will be used if not specified.
+     * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The avatarUri. + */ + public java.lang.String getAvatarUri() { + java.lang.Object ref = avatarUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatarUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+     * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+     * 256 by 256 pixels. A default app avatar will be used if not specified.
+     * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for avatarUri. + */ + public com.google.protobuf.ByteString getAvatarUriBytes() { + java.lang.Object ref = avatarUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + avatarUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+     * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+     * 256 by 256 pixels. A default app avatar will be used if not specified.
+     * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The avatarUri to set. + * @return This builder for chaining. + */ + public Builder setAvatarUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + avatarUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+     * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+     * 256 by 256 pixels. A default app avatar will be used if not specified.
+     * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAvatarUri() { + avatarUri_ = getDefaultInstance().getAvatarUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+     * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+     * 256 by 256 pixels. A default app avatar will be used if not specified.
+     * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for avatarUri to set. + * @return This builder for chaining. + */ + public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + avatarUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Required. A short description of the Chat app.
+     * Should be between 1 and 40 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. A short description of the Chat app.
+     * Should be between 1 and 40 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. A short description of the Chat app.
+     * Should be between 1 and 40 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+     * Required. A short description of the Chat app.
+     * Should be between 1 and 40 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A short description of the Chat app.
+     * Should be between 1 and 40 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + private int state_ = 0; + + /** + * + * + *
+     * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState getState() { + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState result = + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState.forNumber(state_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactiveFeatureConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig, + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.Builder, + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfigOrBuilder> + interactiveFeatureConfigBuilder_; + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interactiveFeatureConfig field is set. + */ + public boolean hasInteractiveFeatureConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interactiveFeatureConfig. + */ + public com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig getInteractiveFeatureConfig() { + if (interactiveFeatureConfigBuilder_ == null) { + return interactiveFeatureConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.getDefaultInstance() + : interactiveFeatureConfig_; + } else { + return interactiveFeatureConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInteractiveFeatureConfig( + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig value) { + if (interactiveFeatureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interactiveFeatureConfig_ = value; + } else { + interactiveFeatureConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInteractiveFeatureConfig( + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.Builder builderForValue) { + if (interactiveFeatureConfigBuilder_ == null) { + interactiveFeatureConfig_ = builderForValue.build(); + } else { + interactiveFeatureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInteractiveFeatureConfig( + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig value) { + if (interactiveFeatureConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && interactiveFeatureConfig_ != null + && interactiveFeatureConfig_ + != com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.getDefaultInstance()) { + getInteractiveFeatureConfigBuilder().mergeFrom(value); + } else { + interactiveFeatureConfig_ = value; + } + } else { + interactiveFeatureConfigBuilder_.mergeFrom(value); + } + if (interactiveFeatureConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInteractiveFeatureConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + interactiveFeatureConfig_ = null; + if (interactiveFeatureConfigBuilder_ != null) { + interactiveFeatureConfigBuilder_.dispose(); + interactiveFeatureConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.Builder + getInteractiveFeatureConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetInteractiveFeatureConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfigOrBuilder + getInteractiveFeatureConfigOrBuilder() { + if (interactiveFeatureConfigBuilder_ != null) { + return interactiveFeatureConfigBuilder_.getMessageOrBuilder(); + } else { + return interactiveFeatureConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.getDefaultInstance() + : interactiveFeatureConfig_; + } + } + + /** + * + * + *
+     * Optional. The settings for interactive features of the app. If this is not
+     * provided, the app will be non-interactive, meaning that it can use the Chat
+     * API, but users can't interact with the app.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig, + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.Builder, + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfigOrBuilder> + internalGetInteractiveFeatureConfigFieldBuilder() { + if (interactiveFeatureConfigBuilder_ == null) { + interactiveFeatureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig, + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.Builder, + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfigOrBuilder>( + getInteractiveFeatureConfig(), getParentForChildren(), isClean()); + interactiveFeatureConfig_ = null; + } + return interactiveFeatureConfigBuilder_; + } + + private boolean errorLoggingEnabled_; + + /** + * + * + *
+     * Optional. Whether to log errors to Cloud Logging. Defaults to `false` if
+     * not specified.
+     * 
+ * + * optional bool error_logging_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorLoggingEnabled field is set. + */ + @java.lang.Override + public boolean hasErrorLoggingEnabled() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Whether to log errors to Cloud Logging. Defaults to `false` if
+     * not specified.
+     * 
+ * + * optional bool error_logging_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorLoggingEnabled. + */ + @java.lang.Override + public boolean getErrorLoggingEnabled() { + return errorLoggingEnabled_; + } + + /** + * + * + *
+     * Optional. Whether to log errors to Cloud Logging. Defaults to `false` if
+     * not specified.
+     * 
+ * + * optional bool error_logging_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The errorLoggingEnabled to set. + * @return This builder for chaining. + */ + public Builder setErrorLoggingEnabled(boolean value) { + + errorLoggingEnabled_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to log errors to Cloud Logging. Defaults to `false` if
+     * not specified.
+     * 
+ * + * optional bool error_logging_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearErrorLoggingEnabled() { + bitField0_ = (bitField0_ & ~0x00000040); + errorLoggingEnabled_ = false; + onChanged(); + return this; + } + + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. The default markup syntax for messages sent or read by this Chat
+     * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the markupSyntax field is set. + */ + @java.lang.Override + public boolean hasMarkupSyntax() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. The default markup syntax for messages sent or read by this Chat
+     * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. The default markup syntax for messages sent or read by this Chat
+     * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default markup syntax for messages sent or read by this Chat
+     * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax getMarkupSyntax() { + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax result = + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax.forNumber(markupSyntax_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The default markup syntax for messages sent or read by this Chat
+     * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax( + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default markup syntax for messages sent or read by this Chat
+     * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+     * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x00000080); + markupSyntax_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.ChatAppConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.ChatAppConfig) + private static final com.google.cloud.gsuiteaddons.v1.ChatAppConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.ChatAppConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.ChatAppConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatAppConfig 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.gsuiteaddons.v1.ChatAppConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfigName.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfigName.java new file mode 100644 index 000000000000..375ebc4ff5c2 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfigName.java @@ -0,0 +1,171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.gsuiteaddons.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class ChatAppConfigName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}/chatAppConfig"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ChatAppConfigName() { + project = null; + } + + private ChatAppConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ChatAppConfigName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static @Nullable ChatAppConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ChatAppConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + 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<@Nullable ChatAppConfigName> values) { + List list = new ArrayList<>(values.size()); + for (ChatAppConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ChatAppConfigName that = ((ChatAppConfigName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}/chatAppConfig. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ChatAppConfigName chatAppConfigName) { + this.project = chatAppConfigName.project; + } + + public ChatAppConfigName build() { + return new ChatAppConfigName(this); + } + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfigOrBuilder.java new file mode 100644 index 000000000000..fa3a5277195e --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ChatAppConfigOrBuilder.java @@ -0,0 +1,336 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface ChatAppConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.ChatAppConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Identifier. Resource name of the Chat app configuration.
+   *
+   * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+   * Cloud project number.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Identifier. Resource name of the Chat app configuration.
+   *
+   * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+   * Cloud project number.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the Chat app. Length should be between 3 and
+   * 25 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. The display name of the Chat app. Length should be between 3 and
+   * 25 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+   * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+   * 256 by 256 pixels. A default app avatar will be used if not specified.
+   * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the avatarUri field is set. + */ + boolean hasAvatarUri(); + + /** + * + * + *
+   * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+   * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+   * 256 by 256 pixels. A default app avatar will be used if not specified.
+   * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The avatarUri. + */ + java.lang.String getAvatarUri(); + + /** + * + * + *
+   * Optional. The URL for the app's avatar image. Must be an HTTPS URL that
+   * hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size:
+   * 256 by 256 pixels. A default app avatar will be used if not specified.
+   * 
+ * + * optional string avatar_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for avatarUri. + */ + com.google.protobuf.ByteString getAvatarUriBytes(); + + /** + * + * + *
+   * Required. A short description of the Chat app.
+   * Should be between 1 and 40 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Required. A short description of the Chat app.
+   * Should be between 1 and 40 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
+   * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Optional. The state of the app. Defaults to `ACTIVE` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.AppState getState(); + + /** + * + * + *
+   * Optional. The settings for interactive features of the app. If this is not
+   * provided, the app will be non-interactive, meaning that it can use the Chat
+   * API, but users can't interact with the app.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interactiveFeatureConfig field is set. + */ + boolean hasInteractiveFeatureConfig(); + + /** + * + * + *
+   * Optional. The settings for interactive features of the app. If this is not
+   * provided, the app will be non-interactive, meaning that it can use the Chat
+   * API, but users can't interact with the app.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interactiveFeatureConfig. + */ + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig getInteractiveFeatureConfig(); + + /** + * + * + *
+   * Optional. The settings for interactive features of the app. If this is not
+   * provided, the app will be non-interactive, meaning that it can use the Chat
+   * API, but users can't interact with the app.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig interactive_feature_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfigOrBuilder + getInteractiveFeatureConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Whether to log errors to Cloud Logging. Defaults to `false` if
+   * not specified.
+   * 
+ * + * optional bool error_logging_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the errorLoggingEnabled field is set. + */ + boolean hasErrorLoggingEnabled(); + + /** + * + * + *
+   * Optional. Whether to log errors to Cloud Logging. Defaults to `false` if
+   * not specified.
+   * 
+ * + * optional bool error_logging_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The errorLoggingEnabled. + */ + boolean getErrorLoggingEnabled(); + + /** + * + * + *
+   * Optional. The default markup syntax for messages sent or read by this Chat
+   * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the markupSyntax field is set. + */ + boolean hasMarkupSyntax(); + + /** + * + * + *
+   * Optional. The default markup syntax for messages sent or read by this Chat
+   * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. The default markup syntax for messages sent or read by this Chat
+   * app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified.
+   * 
+ * + * + * optional .google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax markup_syntax = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.MarkupSyntax getMarkupSyntax(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/CloudPubSubEndpointConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/CloudPubSubEndpointConfig.java new file mode 100644 index 000000000000..2f2e4c26ad18 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/CloudPubSubEndpointConfig.java @@ -0,0 +1,653 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Pub/Sub endpoint configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig} + */ +@com.google.protobuf.Generated +public final class CloudPubSubEndpointConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) + CloudPubSubEndpointConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CloudPubSubEndpointConfig"); + } + + // Use CloudPubSubEndpointConfig.newBuilder() to construct. + private CloudPubSubEndpointConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudPubSubEndpointConfig() { + topic_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + + /** + * + * + *
+   * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+   * events. The topic must be in the same Google Cloud project as the app, and
+   * Chat must have permission to publish messages to the topic. For details,
+   * see [Build a Google Chat app with
+   * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+   *
+   * Format: `projects/{project}/topics/{topic}`
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + 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(); + topic_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+   * events. The topic must be in the same Google Cloud project as the app, and
+   * Chat must have permission to publish messages to the topic. For details,
+   * see [Build a Google Chat app with
+   * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+   *
+   * Format: `projects/{project}/topics/{topic}`
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = 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(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_); + } + 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(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_); + } + 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.gsuiteaddons.v1.CloudPubSubEndpointConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig other = + (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) obj; + + if (!getTopic().equals(other.getTopic())) 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) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig 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.gsuiteaddons.v1.CloudPubSubEndpointConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig 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.gsuiteaddons.v1.CloudPubSubEndpointConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig 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.gsuiteaddons.v1.CloudPubSubEndpointConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig 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.gsuiteaddons.v1.CloudPubSubEndpointConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig 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.gsuiteaddons.v1.CloudPubSubEndpointConfig 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; + } + + /** + * + * + *
+   * Pub/Sub endpoint configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + topic_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig build() { + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig result = + new com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig other) { + if (other == com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.getDefaultInstance()) + return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + 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: + { + topic_ = 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 topic_ = ""; + + /** + * + * + *
+     * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+     * events. The topic must be in the same Google Cloud project as the app, and
+     * Chat must have permission to publish messages to the topic. For details,
+     * see [Build a Google Chat app with
+     * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+     *
+     * Format: `projects/{project}/topics/{topic}`
+     * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+     * events. The topic must be in the same Google Cloud project as the app, and
+     * Chat must have permission to publish messages to the topic. For details,
+     * see [Build a Google Chat app with
+     * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+     *
+     * Format: `projects/{project}/topics/{topic}`
+     * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+     * events. The topic must be in the same Google Cloud project as the app, and
+     * Chat must have permission to publish messages to the topic. For details,
+     * see [Build a Google Chat app with
+     * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+     *
+     * Format: `projects/{project}/topics/{topic}`
+     * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+     * events. The topic must be in the same Google Cloud project as the app, and
+     * Chat must have permission to publish messages to the topic. For details,
+     * see [Build a Google Chat app with
+     * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+     *
+     * Format: `projects/{project}/topics/{topic}`
+     * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+     * events. The topic must be in the same Google Cloud project as the app, and
+     * Chat must have permission to publish messages to the topic. For details,
+     * see [Build a Google Chat app with
+     * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+     *
+     * Format: `projects/{project}/topics/{topic}`
+     * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) + private static final com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudPubSubEndpointConfig 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.gsuiteaddons.v1.CloudPubSubEndpointConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/CloudPubSubEndpointConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/CloudPubSubEndpointConfigOrBuilder.java new file mode 100644 index 000000000000..5c702ca08f31 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/CloudPubSubEndpointConfigOrBuilder.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/cloud/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface CloudPubSubEndpointConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+   * events. The topic must be in the same Google Cloud project as the app, and
+   * Chat must have permission to publish messages to the topic. For details,
+   * see [Build a Google Chat app with
+   * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+   *
+   * Format: `projects/{project}/topics/{topic}`
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The topic. + */ + java.lang.String getTopic(); + + /** + * + * + *
+   * Required. The Pub/Sub topic to which Google Chat publishes all interactive
+   * events. The topic must be in the same Google Cloud project as the app, and
+   * Chat must have permission to publish messages to the topic. For details,
+   * see [Build a Google Chat app with
+   * Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app).
+   *
+   * Format: `projects/{project}/topics/{topic}`
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ConnectionConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ConnectionConfig.java new file mode 100644 index 000000000000..90f70a5391d7 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ConnectionConfig.java @@ -0,0 +1,1799 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * How the app receives events.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.ConnectionConfig} + */ +@com.google.protobuf.Generated +public final class ConnectionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.ConnectionConfig) + ConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectionConfig"); + } + + // Use ConnectionConfig.newBuilder() to construct. + private ConnectionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectionConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.class, + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.Builder.class); + } + + private int configCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object config_; + + public enum ConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + HTTP_ENDPOINT_CONFIG(1), + APPS_SCRIPT_ENDPOINT_CONFIG(2), + CLOUD_PUB_SUB_ENDPOINT_CONFIG(3), + DIALOGFLOW_ENDPOINT_CONFIG(4), + CONFIG_NOT_SET(0); + private final int value; + + private ConfigCase(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 ConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigCase forNumber(int value) { + switch (value) { + case 1: + return HTTP_ENDPOINT_CONFIG; + case 2: + return APPS_SCRIPT_ENDPOINT_CONFIG; + case 3: + return CLOUD_PUB_SUB_ENDPOINT_CONFIG; + case 4: + return DIALOGFLOW_ENDPOINT_CONFIG; + case 0: + return CONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public static final int HTTP_ENDPOINT_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
+   * HTTP endpoint configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + * + * @return Whether the httpEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasHttpEndpointConfig() { + return configCase_ == 1; + } + + /** + * + * + *
+   * HTTP endpoint configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + * + * @return The httpEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig getHttpEndpointConfig() { + if (configCase_ == 1) { + return (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * HTTP endpoint configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpEndpointConfigOrBuilder + getHttpEndpointConfigOrBuilder() { + if (configCase_ == 1) { + return (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance(); + } + + public static final int APPS_SCRIPT_ENDPOINT_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Apps Script deployment configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + * + * @return Whether the appsScriptEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasAppsScriptEndpointConfig() { + return configCase_ == 2; + } + + /** + * + * + *
+   * Apps Script deployment configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + * + * @return The appsScriptEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig getAppsScriptEndpointConfig() { + if (configCase_ == 2) { + return (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Apps Script deployment configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfigOrBuilder + getAppsScriptEndpointConfigOrBuilder() { + if (configCase_ == 2) { + return (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance(); + } + + public static final int CLOUD_PUB_SUB_ENDPOINT_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Pub/Sub topic configuration.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + * + * @return Whether the cloudPubSubEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasCloudPubSubEndpointConfig() { + return configCase_ == 3; + } + + /** + * + * + *
+   * Pub/Sub topic configuration.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + * + * @return The cloudPubSubEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig getCloudPubSubEndpointConfig() { + if (configCase_ == 3) { + return (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Pub/Sub topic configuration.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfigOrBuilder + getCloudPubSubEndpointConfigOrBuilder() { + if (configCase_ == 3) { + return (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.getDefaultInstance(); + } + + public static final int DIALOGFLOW_ENDPOINT_CONFIG_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Dialogflow configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + * + * @return Whether the dialogflowEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasDialogflowEndpointConfig() { + return configCase_ == 4; + } + + /** + * + * + *
+   * Dialogflow configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + * + * @return The dialogflowEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig getDialogflowEndpointConfig() { + if (configCase_ == 4) { + return (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Dialogflow configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfigOrBuilder + getDialogflowEndpointConfigOrBuilder() { + if (configCase_ == 4) { + return (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.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 (configCase_ == 1) { + output.writeMessage(1, (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) config_); + } + if (configCase_ == 2) { + output.writeMessage(2, (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) config_); + } + if (configCase_ == 3) { + output.writeMessage(3, (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) config_); + } + if (configCase_ == 4) { + output.writeMessage(4, (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) config_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (configCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) config_); + } + if (configCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) config_); + } + if (configCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) config_); + } + if (configCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) config_); + } + 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.gsuiteaddons.v1.ConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.ConnectionConfig other = + (com.google.cloud.gsuiteaddons.v1.ConnectionConfig) obj; + + if (!getConfigCase().equals(other.getConfigCase())) return false; + switch (configCase_) { + case 1: + if (!getHttpEndpointConfig().equals(other.getHttpEndpointConfig())) return false; + break; + case 2: + if (!getAppsScriptEndpointConfig().equals(other.getAppsScriptEndpointConfig())) + return false; + break; + case 3: + if (!getCloudPubSubEndpointConfig().equals(other.getCloudPubSubEndpointConfig())) + return false; + break; + case 4: + if (!getDialogflowEndpointConfig().equals(other.getDialogflowEndpointConfig())) + 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 (configCase_) { + case 1: + hash = (37 * hash) + HTTP_ENDPOINT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getHttpEndpointConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + APPS_SCRIPT_ENDPOINT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAppsScriptEndpointConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + CLOUD_PUB_SUB_ENDPOINT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCloudPubSubEndpointConfig().hashCode(); + break; + case 4: + hash = (37 * hash) + DIALOGFLOW_ENDPOINT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDialogflowEndpointConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig 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.gsuiteaddons.v1.ConnectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig 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.gsuiteaddons.v1.ConnectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig 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.gsuiteaddons.v1.ConnectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig 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.gsuiteaddons.v1.ConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig 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.gsuiteaddons.v1.ConnectionConfig 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; + } + + /** + * + * + *
+   * How the app receives events.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.ConnectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.ConnectionConfig) + com.google.cloud.gsuiteaddons.v1.ConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.class, + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.ConnectionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (httpEndpointConfigBuilder_ != null) { + httpEndpointConfigBuilder_.clear(); + } + if (appsScriptEndpointConfigBuilder_ != null) { + appsScriptEndpointConfigBuilder_.clear(); + } + if (cloudPubSubEndpointConfigBuilder_ != null) { + cloudPubSubEndpointConfigBuilder_.clear(); + } + if (dialogflowEndpointConfigBuilder_ != null) { + dialogflowEndpointConfigBuilder_.clear(); + } + configCase_ = 0; + config_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ConnectionConfig getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.ConnectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ConnectionConfig build() { + com.google.cloud.gsuiteaddons.v1.ConnectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ConnectionConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.ConnectionConfig result = + new com.google.cloud.gsuiteaddons.v1.ConnectionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.ConnectionConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.gsuiteaddons.v1.ConnectionConfig result) { + result.configCase_ = configCase_; + result.config_ = this.config_; + if (configCase_ == 1 && httpEndpointConfigBuilder_ != null) { + result.config_ = httpEndpointConfigBuilder_.build(); + } + if (configCase_ == 2 && appsScriptEndpointConfigBuilder_ != null) { + result.config_ = appsScriptEndpointConfigBuilder_.build(); + } + if (configCase_ == 3 && cloudPubSubEndpointConfigBuilder_ != null) { + result.config_ = cloudPubSubEndpointConfigBuilder_.build(); + } + if (configCase_ == 4 && dialogflowEndpointConfigBuilder_ != null) { + result.config_ = dialogflowEndpointConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.ConnectionConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.ConnectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.ConnectionConfig other) { + if (other == com.google.cloud.gsuiteaddons.v1.ConnectionConfig.getDefaultInstance()) + return this; + switch (other.getConfigCase()) { + case HTTP_ENDPOINT_CONFIG: + { + mergeHttpEndpointConfig(other.getHttpEndpointConfig()); + break; + } + case APPS_SCRIPT_ENDPOINT_CONFIG: + { + mergeAppsScriptEndpointConfig(other.getAppsScriptEndpointConfig()); + break; + } + case CLOUD_PUB_SUB_ENDPOINT_CONFIG: + { + mergeCloudPubSubEndpointConfig(other.getCloudPubSubEndpointConfig()); + break; + } + case DIALOGFLOW_ENDPOINT_CONFIG: + { + mergeDialogflowEndpointConfig(other.getDialogflowEndpointConfig()); + break; + } + case CONFIG_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( + internalGetHttpEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAppsScriptEndpointConfigFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCloudPubSubEndpointConfigFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDialogflowEndpointConfigFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 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 configCase_ = 0; + private java.lang.Object config_; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public Builder clearConfig() { + configCase_ = 0; + config_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig, + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfigOrBuilder> + httpEndpointConfigBuilder_; + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + * + * @return Whether the httpEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasHttpEndpointConfig() { + return configCase_ == 1; + } + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + * + * @return The httpEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig getHttpEndpointConfig() { + if (httpEndpointConfigBuilder_ == null) { + if (configCase_ == 1) { + return (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance(); + } else { + if (configCase_ == 1) { + return httpEndpointConfigBuilder_.getMessage(); + } + return com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + public Builder setHttpEndpointConfig( + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig value) { + if (httpEndpointConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + httpEndpointConfigBuilder_.setMessage(value); + } + configCase_ = 1; + return this; + } + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + public Builder setHttpEndpointConfig( + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.Builder builderForValue) { + if (httpEndpointConfigBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + httpEndpointConfigBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 1; + return this; + } + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + public Builder mergeHttpEndpointConfig( + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig value) { + if (httpEndpointConfigBuilder_ == null) { + if (configCase_ == 1 + && config_ + != com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance()) { + config_ = + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.newBuilder( + (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 1) { + httpEndpointConfigBuilder_.mergeFrom(value); + } else { + httpEndpointConfigBuilder_.setMessage(value); + } + } + configCase_ = 1; + return this; + } + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + public Builder clearHttpEndpointConfig() { + if (httpEndpointConfigBuilder_ == null) { + if (configCase_ == 1) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 1) { + configCase_ = 0; + config_ = null; + } + httpEndpointConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + public com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.Builder + getHttpEndpointConfigBuilder() { + return internalGetHttpEndpointConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpEndpointConfigOrBuilder + getHttpEndpointConfigOrBuilder() { + if ((configCase_ == 1) && (httpEndpointConfigBuilder_ != null)) { + return httpEndpointConfigBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 1) { + return (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * HTTP endpoint configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig, + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfigOrBuilder> + internalGetHttpEndpointConfigFieldBuilder() { + if (httpEndpointConfigBuilder_ == null) { + if (!(configCase_ == 1)) { + config_ = com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance(); + } + httpEndpointConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig, + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfigOrBuilder>( + (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 1; + onChanged(); + return httpEndpointConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig, + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfigOrBuilder> + appsScriptEndpointConfigBuilder_; + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + * + * @return Whether the appsScriptEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasAppsScriptEndpointConfig() { + return configCase_ == 2; + } + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + * + * @return The appsScriptEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig getAppsScriptEndpointConfig() { + if (appsScriptEndpointConfigBuilder_ == null) { + if (configCase_ == 2) { + return (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance(); + } else { + if (configCase_ == 2) { + return appsScriptEndpointConfigBuilder_.getMessage(); + } + return com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + public Builder setAppsScriptEndpointConfig( + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig value) { + if (appsScriptEndpointConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + appsScriptEndpointConfigBuilder_.setMessage(value); + } + configCase_ = 2; + return this; + } + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + public Builder setAppsScriptEndpointConfig( + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.Builder builderForValue) { + if (appsScriptEndpointConfigBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + appsScriptEndpointConfigBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 2; + return this; + } + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + public Builder mergeAppsScriptEndpointConfig( + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig value) { + if (appsScriptEndpointConfigBuilder_ == null) { + if (configCase_ == 2 + && config_ + != com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance()) { + config_ = + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.newBuilder( + (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 2) { + appsScriptEndpointConfigBuilder_.mergeFrom(value); + } else { + appsScriptEndpointConfigBuilder_.setMessage(value); + } + } + configCase_ = 2; + return this; + } + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + public Builder clearAppsScriptEndpointConfig() { + if (appsScriptEndpointConfigBuilder_ == null) { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + } + appsScriptEndpointConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + public com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.Builder + getAppsScriptEndpointConfigBuilder() { + return internalGetAppsScriptEndpointConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfigOrBuilder + getAppsScriptEndpointConfigOrBuilder() { + if ((configCase_ == 2) && (appsScriptEndpointConfigBuilder_ != null)) { + return appsScriptEndpointConfigBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 2) { + return (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Apps Script deployment configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig, + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfigOrBuilder> + internalGetAppsScriptEndpointConfigFieldBuilder() { + if (appsScriptEndpointConfigBuilder_ == null) { + if (!(configCase_ == 2)) { + config_ = com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.getDefaultInstance(); + } + appsScriptEndpointConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig, + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfigOrBuilder>( + (com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 2; + onChanged(); + return appsScriptEndpointConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig, + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfigOrBuilder> + cloudPubSubEndpointConfigBuilder_; + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + * + * @return Whether the cloudPubSubEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasCloudPubSubEndpointConfig() { + return configCase_ == 3; + } + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + * + * @return The cloudPubSubEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig + getCloudPubSubEndpointConfig() { + if (cloudPubSubEndpointConfigBuilder_ == null) { + if (configCase_ == 3) { + return (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.getDefaultInstance(); + } else { + if (configCase_ == 3) { + return cloudPubSubEndpointConfigBuilder_.getMessage(); + } + return com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + public Builder setCloudPubSubEndpointConfig( + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig value) { + if (cloudPubSubEndpointConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + cloudPubSubEndpointConfigBuilder_.setMessage(value); + } + configCase_ = 3; + return this; + } + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + public Builder setCloudPubSubEndpointConfig( + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.Builder builderForValue) { + if (cloudPubSubEndpointConfigBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + cloudPubSubEndpointConfigBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 3; + return this; + } + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + public Builder mergeCloudPubSubEndpointConfig( + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig value) { + if (cloudPubSubEndpointConfigBuilder_ == null) { + if (configCase_ == 3 + && config_ + != com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig + .getDefaultInstance()) { + config_ = + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.newBuilder( + (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 3) { + cloudPubSubEndpointConfigBuilder_.mergeFrom(value); + } else { + cloudPubSubEndpointConfigBuilder_.setMessage(value); + } + } + configCase_ = 3; + return this; + } + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + public Builder clearCloudPubSubEndpointConfig() { + if (cloudPubSubEndpointConfigBuilder_ == null) { + if (configCase_ == 3) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 3) { + configCase_ = 0; + config_ = null; + } + cloudPubSubEndpointConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + public com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.Builder + getCloudPubSubEndpointConfigBuilder() { + return internalGetCloudPubSubEndpointConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfigOrBuilder + getCloudPubSubEndpointConfigOrBuilder() { + if ((configCase_ == 3) && (cloudPubSubEndpointConfigBuilder_ != null)) { + return cloudPubSubEndpointConfigBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 3) { + return (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Pub/Sub topic configuration.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig, + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfigOrBuilder> + internalGetCloudPubSubEndpointConfigFieldBuilder() { + if (cloudPubSubEndpointConfigBuilder_ == null) { + if (!(configCase_ == 3)) { + config_ = com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.getDefaultInstance(); + } + cloudPubSubEndpointConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig, + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfigOrBuilder>( + (com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 3; + onChanged(); + return cloudPubSubEndpointConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig, + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfigOrBuilder> + dialogflowEndpointConfigBuilder_; + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + * + * @return Whether the dialogflowEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasDialogflowEndpointConfig() { + return configCase_ == 4; + } + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + * + * @return The dialogflowEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig getDialogflowEndpointConfig() { + if (dialogflowEndpointConfigBuilder_ == null) { + if (configCase_ == 4) { + return (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.getDefaultInstance(); + } else { + if (configCase_ == 4) { + return dialogflowEndpointConfigBuilder_.getMessage(); + } + return com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + public Builder setDialogflowEndpointConfig( + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig value) { + if (dialogflowEndpointConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + dialogflowEndpointConfigBuilder_.setMessage(value); + } + configCase_ = 4; + return this; + } + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + public Builder setDialogflowEndpointConfig( + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.Builder builderForValue) { + if (dialogflowEndpointConfigBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + dialogflowEndpointConfigBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 4; + return this; + } + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + public Builder mergeDialogflowEndpointConfig( + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig value) { + if (dialogflowEndpointConfigBuilder_ == null) { + if (configCase_ == 4 + && config_ + != com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.getDefaultInstance()) { + config_ = + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.newBuilder( + (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 4) { + dialogflowEndpointConfigBuilder_.mergeFrom(value); + } else { + dialogflowEndpointConfigBuilder_.setMessage(value); + } + } + configCase_ = 4; + return this; + } + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + public Builder clearDialogflowEndpointConfig() { + if (dialogflowEndpointConfigBuilder_ == null) { + if (configCase_ == 4) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 4) { + configCase_ = 0; + config_ = null; + } + dialogflowEndpointConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.Builder + getDialogflowEndpointConfigBuilder() { + return internalGetDialogflowEndpointConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfigOrBuilder + getDialogflowEndpointConfigOrBuilder() { + if ((configCase_ == 4) && (dialogflowEndpointConfigBuilder_ != null)) { + return dialogflowEndpointConfigBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 4) { + return (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Dialogflow configuration.
+     * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig, + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfigOrBuilder> + internalGetDialogflowEndpointConfigFieldBuilder() { + if (dialogflowEndpointConfigBuilder_ == null) { + if (!(configCase_ == 4)) { + config_ = com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.getDefaultInstance(); + } + dialogflowEndpointConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig, + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfigOrBuilder>( + (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 4; + onChanged(); + return dialogflowEndpointConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.ConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.ConnectionConfig) + private static final com.google.cloud.gsuiteaddons.v1.ConnectionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.ConnectionConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.ConnectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionConfig 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.gsuiteaddons.v1.ConnectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ConnectionConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ConnectionConfigOrBuilder.java new file mode 100644 index 000000000000..58ed3e9c1f51 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ConnectionConfigOrBuilder.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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface ConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.ConnectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * HTTP endpoint configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + * + * @return Whether the httpEndpointConfig field is set. + */ + boolean hasHttpEndpointConfig(); + + /** + * + * + *
+   * HTTP endpoint configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + * + * @return The httpEndpointConfig. + */ + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig getHttpEndpointConfig(); + + /** + * + * + *
+   * HTTP endpoint configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.HttpEndpointConfig http_endpoint_config = 1; + */ + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfigOrBuilder getHttpEndpointConfigOrBuilder(); + + /** + * + * + *
+   * Apps Script deployment configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + * + * @return Whether the appsScriptEndpointConfig field is set. + */ + boolean hasAppsScriptEndpointConfig(); + + /** + * + * + *
+   * Apps Script deployment configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + * + * @return The appsScriptEndpointConfig. + */ + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig getAppsScriptEndpointConfig(); + + /** + * + * + *
+   * Apps Script deployment configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfig apps_script_endpoint_config = 2; + * + */ + com.google.cloud.gsuiteaddons.v1.AppsScriptEndpointConfigOrBuilder + getAppsScriptEndpointConfigOrBuilder(); + + /** + * + * + *
+   * Pub/Sub topic configuration.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + * + * @return Whether the cloudPubSubEndpointConfig field is set. + */ + boolean hasCloudPubSubEndpointConfig(); + + /** + * + * + *
+   * Pub/Sub topic configuration.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + * + * @return The cloudPubSubEndpointConfig. + */ + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig getCloudPubSubEndpointConfig(); + + /** + * + * + *
+   * Pub/Sub topic configuration.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + * + */ + com.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfigOrBuilder + getCloudPubSubEndpointConfigOrBuilder(); + + /** + * + * + *
+   * Dialogflow configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + * + * @return Whether the dialogflowEndpointConfig field is set. + */ + boolean hasDialogflowEndpointConfig(); + + /** + * + * + *
+   * Dialogflow configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + * + * @return The dialogflowEndpointConfig. + */ + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig getDialogflowEndpointConfig(); + + /** + * + * + *
+   * Dialogflow configuration.
+   * 
+ * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig dialogflow_endpoint_config = 4; + * + */ + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfigOrBuilder + getDialogflowEndpointConfigOrBuilder(); + + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.ConfigCase getConfigCase(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DialogflowEndpointConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DialogflowEndpointConfig.java new file mode 100644 index 000000000000..ebdf1abca97f --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DialogflowEndpointConfig.java @@ -0,0 +1,1039 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Dialogflow endpoint configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig} + */ +@com.google.protobuf.Generated +public final class DialogflowEndpointConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) + DialogflowEndpointConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DialogflowEndpointConfig"); + } + + // Use DialogflowEndpointConfig.newBuilder() to construct. + private DialogflowEndpointConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DialogflowEndpointConfig() { + dialogflowEdition_ = 0; + agent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.Builder.class); + } + + /** + * + * + *
+   * Dialogflow edition type.
+   * 
+ * + * Protobuf enum {@code google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition} + */ + public enum DialogflowEdition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Unspecified.
+     * 
+ * + * DIALOGFLOW_EDITION_UNSPECIFIED = 0; + */ + DIALOGFLOW_EDITION_UNSPECIFIED(0), + /** + * + * + *
+     * Dialogflow ES edition. To use this edition, a Dialogflow ES agent must
+     * exist in the same Google Cloud project as the app. Google Chat sends all
+     * interactive events to that agent.
+     * 
+ * + * ES = 1; + */ + ES(1), + /** + * + * + *
+     * Dialogflow CX edition. To use this edition, a Dialogflow CX agent must
+     * exist in the same Google Cloud project as the app and be specified in the
+     * `agent` field. Google Chat sends all interactive events to that agent.
+     * 
+ * + * CX = 2; + */ + CX(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DialogflowEdition"); + } + + /** + * + * + *
+     * Default value. Unspecified.
+     * 
+ * + * DIALOGFLOW_EDITION_UNSPECIFIED = 0; + */ + public static final int DIALOGFLOW_EDITION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Dialogflow ES edition. To use this edition, a Dialogflow ES agent must
+     * exist in the same Google Cloud project as the app. Google Chat sends all
+     * interactive events to that agent.
+     * 
+ * + * ES = 1; + */ + public static final int ES_VALUE = 1; + + /** + * + * + *
+     * Dialogflow CX edition. To use this edition, a Dialogflow CX agent must
+     * exist in the same Google Cloud project as the app and be specified in the
+     * `agent` field. Google Chat sends all interactive events to that agent.
+     * 
+ * + * CX = 2; + */ + public static final int CX_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 DialogflowEdition 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 DialogflowEdition forNumber(int value) { + switch (value) { + case 0: + return DIALOGFLOW_EDITION_UNSPECIFIED; + case 1: + return ES; + case 2: + return CX; + 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 DialogflowEdition findValueByNumber(int number) { + return DialogflowEdition.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.gsuiteaddons.v1.DialogflowEndpointConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DialogflowEdition[] VALUES = values(); + + public static DialogflowEdition 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 DialogflowEdition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition) + } + + private int bitField0_; + public static final int DIALOGFLOW_EDITION_FIELD_NUMBER = 1; + private int dialogflowEdition_ = 0; + + /** + * + * + *
+   * Required. The Dialogflow edition.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dialogflowEdition. + */ + @java.lang.Override + public int getDialogflowEditionValue() { + return dialogflowEdition_; + } + + /** + * + * + *
+   * Required. The Dialogflow edition.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dialogflowEdition. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition + getDialogflowEdition() { + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition result = + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition.forNumber( + dialogflowEdition_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition.UNRECOGNIZED + : result; + } + + public static final int AGENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; + + /** + * + * + *
+   * Optional. The Dialogflow CX agent or environment name.
+   * Required for Dialogflow CX. Do not set for Dialogflow ES.
+   *
+   * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+   * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+   * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the agent field is set. + */ + @java.lang.Override + public boolean hasAgent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The Dialogflow CX agent or environment name.
+   * Required for Dialogflow CX. Do not set for Dialogflow ES.
+   *
+   * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+   * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+   * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agent. + */ + @java.lang.Override + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + 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(); + agent_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The Dialogflow CX agent or environment name.
+   * Required for Dialogflow CX. Do not set for Dialogflow ES.
+   *
+   * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+   * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+   * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = 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 (dialogflowEdition_ + != com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition + .DIALOGFLOW_EDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, dialogflowEdition_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dialogflowEdition_ + != com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition + .DIALOGFLOW_EDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, dialogflowEdition_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agent_); + } + 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.gsuiteaddons.v1.DialogflowEndpointConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig other = + (com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) obj; + + if (dialogflowEdition_ != other.dialogflowEdition_) return false; + if (hasAgent() != other.hasAgent()) return false; + if (hasAgent()) { + if (!getAgent().equals(other.getAgent())) 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) + DIALOGFLOW_EDITION_FIELD_NUMBER; + hash = (53 * hash) + dialogflowEdition_; + if (hasAgent()) { + hash = (37 * hash) + AGENT_FIELD_NUMBER; + hash = (53 * hash) + getAgent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig 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.gsuiteaddons.v1.DialogflowEndpointConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig 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.gsuiteaddons.v1.DialogflowEndpointConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig 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.gsuiteaddons.v1.DialogflowEndpointConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig 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.gsuiteaddons.v1.DialogflowEndpointConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig 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.gsuiteaddons.v1.DialogflowEndpointConfig 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; + } + + /** + * + * + *
+   * Dialogflow endpoint configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dialogflowEdition_ = 0; + agent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig build() { + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig result = + new com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dialogflowEdition_ = dialogflowEdition_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agent_ = agent_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig other) { + if (other == com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.getDefaultInstance()) + return this; + if (other.dialogflowEdition_ != 0) { + setDialogflowEditionValue(other.getDialogflowEditionValue()); + } + if (other.hasAgent()) { + agent_ = other.agent_; + 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: + { + dialogflowEdition_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + agent_ = 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 dialogflowEdition_ = 0; + + /** + * + * + *
+     * Required. The Dialogflow edition.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dialogflowEdition. + */ + @java.lang.Override + public int getDialogflowEditionValue() { + return dialogflowEdition_; + } + + /** + * + * + *
+     * Required. The Dialogflow edition.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for dialogflowEdition to set. + * @return This builder for chaining. + */ + public Builder setDialogflowEditionValue(int value) { + dialogflowEdition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Dialogflow edition.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dialogflowEdition. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition + getDialogflowEdition() { + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition result = + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition.forNumber( + dialogflowEdition_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The Dialogflow edition.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The dialogflowEdition to set. + * @return This builder for chaining. + */ + public Builder setDialogflowEdition( + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + dialogflowEdition_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Dialogflow edition.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDialogflowEdition() { + bitField0_ = (bitField0_ & ~0x00000001); + dialogflowEdition_ = 0; + onChanged(); + return this; + } + + private java.lang.Object agent_ = ""; + + /** + * + * + *
+     * Optional. The Dialogflow CX agent or environment name.
+     * Required for Dialogflow CX. Do not set for Dialogflow ES.
+     *
+     * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+     * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+     * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the agent field is set. + */ + public boolean hasAgent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The Dialogflow CX agent or environment name.
+     * Required for Dialogflow CX. Do not set for Dialogflow ES.
+     *
+     * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+     * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+     * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agent. + */ + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Dialogflow CX agent or environment name.
+     * Required for Dialogflow CX. Do not set for Dialogflow ES.
+     *
+     * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+     * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+     * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agent. + */ + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Dialogflow CX agent or environment name.
+     * Required for Dialogflow CX. Do not set for Dialogflow ES.
+     *
+     * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+     * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+     * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agent to set. + * @return This builder for chaining. + */ + public Builder setAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Dialogflow CX agent or environment name.
+     * Required for Dialogflow CX. Do not set for Dialogflow ES.
+     *
+     * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+     * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+     * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgent() { + agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Dialogflow CX agent or environment name.
+     * Required for Dialogflow CX. Do not set for Dialogflow ES.
+     *
+     * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+     * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+     * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agent to set. + * @return This builder for chaining. + */ + public Builder setAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) + private static final com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DialogflowEndpointConfig 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.gsuiteaddons.v1.DialogflowEndpointConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DialogflowEndpointConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DialogflowEndpointConfigOrBuilder.java new file mode 100644 index 000000000000..8881f9c696b5 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DialogflowEndpointConfigOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface DialogflowEndpointConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Dialogflow edition.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dialogflowEdition. + */ + int getDialogflowEditionValue(); + + /** + * + * + *
+   * Required. The Dialogflow edition.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition dialogflow_edition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dialogflowEdition. + */ + com.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfig.DialogflowEdition + getDialogflowEdition(); + + /** + * + * + *
+   * Optional. The Dialogflow CX agent or environment name.
+   * Required for Dialogflow CX. Do not set for Dialogflow ES.
+   *
+   * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+   * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+   * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the agent field is set. + */ + boolean hasAgent(); + + /** + * + * + *
+   * Optional. The Dialogflow CX agent or environment name.
+   * Required for Dialogflow CX. Do not set for Dialogflow ES.
+   *
+   * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+   * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+   * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agent. + */ + java.lang.String getAgent(); + + /** + * + * + *
+   * Optional. The Dialogflow CX agent or environment name.
+   * Required for Dialogflow CX. Do not set for Dialogflow ES.
+   *
+   * Format: `projects/{project}/locations/{location}/agents/{agent}` or
+   * `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`.
+   * 
+ * + * optional string agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agent. + */ + com.google.protobuf.ByteString getAgentBytes(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsProto.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsProto.java index 05c2cd38ad95..a8a4ca05c5c4 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsProto.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsProto.java @@ -96,6 +96,58 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gsuiteaddons_v1_AddOns_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gsuiteaddons_v1_AddOns_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_AppCommand_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_AppCommand_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -105,127 +157,249 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n/google/cloud/gsuiteaddons/v1/gsuiteadd" + "\n" + + "/google/cloud/gsuiteaddons/v1/gsuiteadd" + "ons.proto\022\034google.cloud.gsuiteaddons.v1\032" + "\034google/api/annotations.proto\032\027google/ap" + "i/client.proto\032\037google/api/field_behavio" + "r.proto\032\031google/api/resource.proto\032>goog" - + "le/apps/script/type/calendar/calendar_ad" - + "don_manifest.proto\0326google/apps/script/t" - + "ype/docs/docs_addon_manifest.proto\0328goog" - + "le/apps/script/type/drive/drive_addon_ma" - + "nifest.proto\0328google/apps/script/type/gm" - + "ail/gmail_addon_manifest.proto\032-google/a" - + "pps/script/type/script_manifest.proto\032:g" - + "oogle/apps/script/type/sheets/sheets_add" + + "le/apps/script/type/calendar/calendar_addon_manifest.proto\0326google/apps/script/t" + + "ype/docs/docs_addon_manifest.proto\0328google/apps/script/type/drive/drive_addon_ma" + + "nifest.proto\0328google/apps/script/type/gmail/gmail_addon_manifest.proto\032-google/a" + + "pps/script/type/script_manifest.proto\032:google/apps/script/type/sheets/sheets_add" + "on_manifest.proto\032:google/apps/script/ty" - + "pe/slides/slides_addon_manifest.proto\032\033g" - + "oogle/protobuf/empty.proto\032\036google/proto" - + "buf/wrappers.proto\"[\n\027GetAuthorizationRe" - + "quest\022@\n\004name\030\002 \001(\tB2\342A\001\002\372A+\n)gsuiteaddo" - + "ns.googleapis.com/Authorization\"\247\001\n\rAuth" - + "orization\022\014\n\004name\030\001 \001(\t\022\035\n\025service_accou" - + "nt_email\030\002 \001(\t\022\027\n\017oauth_client_id\030\003 \001(\t:" - + "P\352AM\n)gsuiteaddons.googleapis.com/Author" - + "ization\022 projects/{project}/authorizatio" - + "n\"\300\001\n\027CreateDeploymentRequest\022D\n\006parent\030" - + "\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.goo" - + "gleapis.com/Project\022\033\n\rdeployment_id\030\002 \001" - + "(\tB\004\342A\001\002\022B\n\ndeployment\030\003 \001(\0132(.google.cl" - + "oud.gsuiteaddons.v1.DeploymentB\004\342A\001\002\"^\n\030" - + "ReplaceDeploymentRequest\022B\n\ndeployment\030\002" - + " \001(\0132(.google.cloud.gsuiteaddons.v1.Depl" - + "oymentB\004\342A\001\002\"U\n\024GetDeploymentRequest\022=\n\004" - + "name\030\001 \001(\tB/\342A\001\002\372A(\n&gsuiteaddons.google" - + "apis.com/Deployment\"\205\001\n\026ListDeploymentsR" - + "equest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudre" - + "sourcemanager.googleapis.com/Project\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"q\n\027L" - + "istDeploymentsResponse\022=\n\013deployments\030\001 " - + "\003(\0132(.google.cloud.gsuiteaddons.v1.Deplo" - + "yment\022\027\n\017next_page_token\030\002 \001(\t\"f\n\027Delete" - + "DeploymentRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(" - + "\n&gsuiteaddons.googleapis.com/Deployment" - + "\022\014\n\004etag\030\002 \001(\t\"Y\n\030InstallDeploymentReque" - + "st\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&gsuiteaddons." - + "googleapis.com/Deployment\"[\n\032UninstallDe" - + "ploymentRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&" - + "gsuiteaddons.googleapis.com/Deployment\"[" - + "\n\027GetInstallStatusRequest\022@\n\004name\030\001 \001(\tB" - + "2\342A\001\002\372A+\n)gsuiteaddons.googleapis.com/In" - + "stallStatus\"\267\001\n\rInstallStatus\022\014\n\004name\030\001 " - + "\001(\t\022-\n\tinstalled\030\002 \001(\0132\032.google.protobuf" - + ".BoolValue:i\352Af\n)gsuiteaddons.googleapis" - + ".com/InstallStatus\0229projects/{project}/d" - + "eployments/{deployment}/installStatus\"\317\001" - + "\n\nDeployment\022\014\n\004name\030\001 \001(\t\022\024\n\014oauth_scop" - + "es\030\002 \003(\t\0225\n\007add_ons\030\003 \001(\0132$.google.cloud" - + ".gsuiteaddons.v1.AddOns\022\014\n\004etag\030\005 \001(\t:X\352" - + "AU\n&gsuiteaddons.googleapis.com/Deployme" - + "nt\022+projects/{project}/deployments/{depl" - + "oyment}\"\232\004\n\006AddOns\022<\n\006common\030\001 \001(\0132,.goo" - + "gle.apps.script.type.CommonAddOnManifest" - + "\022@\n\005gmail\030\002 \001(\01321.google.apps.script.typ" - + "e.gmail.GmailAddOnManifest\022@\n\005drive\030\005 \001(" - + "\01321.google.apps.script.type.drive.DriveA" - + "ddOnManifest\022I\n\010calendar\030\006 \001(\01327.google." - + "apps.script.type.calendar.CalendarAddOnM" - + "anifest\022=\n\004docs\030\007 \001(\0132/.google.apps.scri" - + "pt.type.docs.DocsAddOnManifest\022C\n\006sheets" - + "\030\010 \001(\01323.google.apps.script.type.sheets." - + "SheetsAddOnManifest\022C\n\006slides\030\n \001(\01323.go" - + "ogle.apps.script.type.slides.SlidesAddOn" - + "Manifest\022:\n\014http_options\030\017 \001(\0132$.google." - + "apps.script.type.HttpOptions2\244\r\n\014GSuiteA" - + "ddOns\022\252\001\n\020GetAuthorization\0225.google.clou" - + "d.gsuiteaddons.v1.GetAuthorizationReques" - + "t\032+.google.cloud.gsuiteaddons.v1.Authori" - + "zation\"2\332A\004name\202\323\344\223\002%\022#/v1/{name=project" - + "s/*/authorization}\022\316\001\n\020CreateDeployment\022" - + "5.google.cloud.gsuiteaddons.v1.CreateDep" - + "loymentRequest\032(.google.cloud.gsuiteaddo" - + "ns.v1.Deployment\"Y\332A\037parent,deployment,d" - + "eployment_id\202\323\344\223\0021\"#/v1/{parent=projects" - + "/*}/deployments:\ndeployment\022\306\001\n\021ReplaceD" - + "eployment\0226.google.cloud.gsuiteaddons.v1" - + ".ReplaceDeploymentRequest\032(.google.cloud" - + ".gsuiteaddons.v1.Deployment\"O\332A\ndeployme" - + "nt\202\323\344\223\002<\032./v1/{deployment.name=projects/" - + "*/deployments/*}:\ndeployment\022\241\001\n\rGetDepl" - + "oyment\0222.google.cloud.gsuiteaddons.v1.Ge" - + "tDeploymentRequest\032(.google.cloud.gsuite" - + "addons.v1.Deployment\"2\332A\004name\202\323\344\223\002%\022#/v1" - + "/{name=projects/*/deployments/*}\022\264\001\n\017Lis" - + "tDeployments\0224.google.cloud.gsuiteaddons" - + ".v1.ListDeploymentsRequest\0325.google.clou" - + "d.gsuiteaddons.v1.ListDeploymentsRespons" - + "e\"4\332A\006parent\202\323\344\223\002%\022#/v1/{parent=projects" - + "/*}/deployments\022\225\001\n\020DeleteDeployment\0225.g" - + "oogle.cloud.gsuiteaddons.v1.DeleteDeploy" - + "mentRequest\032\026.google.protobuf.Empty\"2\332A\004" - + "name\202\323\344\223\002%*#/v1/{name=projects/*/deploym" - + "ents/*}\022\242\001\n\021InstallDeployment\0226.google.c" - + "loud.gsuiteaddons.v1.InstallDeploymentRe" - + "quest\032\026.google.protobuf.Empty\"=\332A\004name\202\323" - + "\344\223\0020\"+/v1/{name=projects/*/deployments/*" - + "}:install:\001*\022\250\001\n\023UninstallDeployment\0228.g" - + "oogle.cloud.gsuiteaddons.v1.UninstallDep" - + "loymentRequest\032\026.google.protobuf.Empty\"?" - + "\332A\004name\202\323\344\223\0022\"-/v1/{name=projects/*/depl" - + "oyments/*}:uninstall:\001*\022\270\001\n\020GetInstallSt" - + "atus\0225.google.cloud.gsuiteaddons.v1.GetI" - + "nstallStatusRequest\032+.google.cloud.gsuit" - + "eaddons.v1.InstallStatus\"@\332A\004name\202\323\344\223\0023\022" - + "1/v1/{name=projects/*/deployments/*/inst" - + "allStatus}\032O\312A\033gsuiteaddons.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\335\001\n com.google.cloud.gsuitea" - + "ddons.v1B\021GSuiteAddOnsProtoP\001ZDcloud.goo" - + "gle.com/go/gsuiteaddons/apiv1/gsuiteaddo" - + "nspb;gsuiteaddonspb\252\002\034Google.Cloud.GSuit" - + "eAddOns.V1\312\002\034Google\\Cloud\\GSuiteAddOns\\V" - + "1\352\002\037Google::Cloud::GSuiteAddOns::V1b\006pro" - + "to3" + + "pe/slides/slides_addon_manifest.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\036google/protobuf/wrappers.proto\"[\n" + + "\027GetAuthorizationRequest\022@\n" + + "\004name\030\002 \001(\tB2\342A\001\002\372A+\n" + + ")gsuiteaddons.googleapis.com/Authorization\"\247\001\n\r" + + "Authorization\022\014\n" + + "\004name\030\001 \001(\t\022\035\n" + + "\025service_account_email\030\002 \001(\t\022\027\n" + + "\017oauth_client_id\030\003 \001(\t:P\352AM\n" + + ")gsuiteaddons.googleapis.com/Authorization\022" + + " projects/{project}/authorization\"\300\001\n" + + "\027CreateDeploymentRequest\022D\n" + + "\006parent\030\001 \001(\tB4\342A\001\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\033\n\r" + + "deployment_id\030\002 \001(\tB\004\342A\001\002\022B\n\n" + + "deployment\030\003" + + " \001(\0132(.google.cloud.gsuiteaddons.v1.DeploymentB\004\342A\001\002\"^\n" + + "\030ReplaceDeploymentRequest\022B\n\n" + + "deployment\030\002 \001(\0132(" + + ".google.cloud.gsuiteaddons.v1.DeploymentB\004\342A\001\002\"U\n" + + "\024GetDeploymentRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&gsuiteaddons.googleapis.com/Deployment\"\205\001\n" + + "\026ListDeploymentsRequest\022D\n" + + "\006parent\030\001 \001(\tB4\342A\001\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"q\n" + + "\027ListDeploymentsResponse\022=\n" + + "\013deployments\030\001 \003(\0132(.google.cloud.gsuiteaddons.v1.Deployment\022\027\n" + + "\017next_page_token\030\002 \001(\t\"f\n" + + "\027DeleteDeploymentRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&gsuiteaddons.googleapis.com/Deployment\022\014\n" + + "\004etag\030\002 \001(\t\"Y\n" + + "\030InstallDeploymentRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&gsuiteaddons.googleapis.com/Deployment\"[\n" + + "\032UninstallDeploymentRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&gsuiteaddons.googleapis.com/Deployment\"[\n" + + "\027GetInstallStatusRequest\022@\n" + + "\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + + ")gsuiteaddons.googleapis.com/InstallStatus\"\267\001\n\r" + + "InstallStatus\022\014\n" + + "\004name\030\001 \001(\t\022-\n" + + "\tinstalled\030\002 \001(\0132\032.google.protobuf.BoolValue:i\352Af\n" + + ")gsuiteaddons.googleapis.com/I" + + "nstallStatus\0229projects/{project}/deployments/{deployment}/installStatus\"\317\001\n\n" + + "Deployment\022\014\n" + + "\004name\030\001 \001(\t\022\024\n" + + "\014oauth_scopes\030\002 \003(\t\0225\n" + + "\007add_ons\030\003 \001(\0132$.google.cloud.gsuiteaddons.v1.AddOns\022\014\n" + + "\004etag\030\005 \001(\t:X\352AU\n" + + "&gsuiteaddons.googleapis.com/Deployment\022+pr" + + "ojects/{project}/deployments/{deployment}\"\232\004\n" + + "\006AddOns\022<\n" + + "\006common\030\001 \001(\0132,.google.apps.script.type.CommonAddOnManifest\022@\n" + + "\005gmail\030\002 \001(\01321.google.apps.script.type.gmail.GmailAddOnManifest\022@\n" + + "\005drive\030\005 \001(\01321.google.apps.script.type.drive.DriveAddOnManifest\022I\n" + + "\010calendar\030\006 \001(\01327.google.apps.s" + + "cript.type.calendar.CalendarAddOnManifest\022=\n" + + "\004docs\030\007 \001(\0132/.google.apps.script.type.docs.DocsAddOnManifest\022C\n" + + "\006sheets\030\010 \001(\013" + + "23.google.apps.script.type.sheets.SheetsAddOnManifest\022C\n" + + "\006slides\030\n" + + " \001(\01323.google.apps.script.type.slides.SlidesAddOnManifest\022:\n" + + "\014http_options\030\017 \001(\0132$.google.apps.script.type.HttpOptions\"\210\002\n" + + "\027GetChatAppConfigRequest\022@\n" + + "\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + + ")gsuiteaddons.googleapis.com/ChatAppConfig\022[\n" + + "\004view\030\002 \001(\0162G.google.cloud.gsuiteaddons.v" + + "1.GetChatAppConfigRequest.ChatAppConfigViewB\004\342A\001\001\"N\n" + + "\021ChatAppConfigView\022$\n" + + " CHAT_APP_CONFIG_VIEW_UNSPECIFIED\020\000\022\t\n" + + "\005BASIC\020\001\022\010\n" + + "\004FULL\020\002\"\237\001\n" + + "\032UpdateChatAppConfigRequest\022J\n" + + "\017chat_app_config\030\001" + + " \001(\0132+.google.cloud.gsuiteaddons.v1.ChatAppConfigB\004\342A\001\002\0225\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"\214\006\n\r" + + "ChatAppConfig\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\002\010\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\035\n\n" + + "avatar_uri\030\003 \001(\tB\004\342A\001\001H\000\210\001\001\022\031\n" + + "\013description\030\004 \001(\tB\004\342A\001\002\022N\n" + + "\005state\030\005 \001(\01624.google" + + ".cloud.gsuiteaddons.v1.ChatAppConfig.AppStateB\004\342A\001\001H\001\210\001\001\022`\n" + + "\032interactive_feature_config\030\006" + + " \001(\01326.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfigB\004\342A\001\001\022(\n" + + "\025error_logging_enabled\030\007" + + " \001(\010B\004\342A\001\001H\002\210\001\001\022Z\n\r" + + "markup_syntax\030\010 \001(\01628.google.cloud.gsuit" + + "eaddons.v1.ChatAppConfig.MarkupSyntaxB\004\342A\001\001H\003\210\001\001\"?\n" + + "\010AppState\022\031\n" + + "\025APP_STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010DISABLED\020\002\"a\n" + + "\014MarkupSyntax\022\035\n" + + "\031MARKUP_SYNTAX_UNSPECIFIED\020\000\022\026\n" + + "\022MARKUP_SYNTAX_CHAT\020\001\022\032\n" + + "\026MARKUP_SYNTAX_MARKDOWN\020\002:o\352Al\n" + + ")gsuiteaddons.googleapis.com/ChatAppConfig\022" + + " projects/{project}/chatAppConfig*\016chatAppConfigs2\r" + + "chatAppConfigB\r\n" + + "\013_avatar_uriB\010\n" + + "\006_stateB\030\n" + + "\026_error_logging_enabledB\020\n" + + "\016_markup_syntax\"\361\002\n" + + "\030InteractiveFeatureConfig\022,\n" + + "\031supports_multiuser_spaces\030\001" + + " \001(\010B\004\342A\001\001H\000\210\001\001\022O\n" + + "\021connection_config\030\002" + + " \001(\0132..google.cloud.gsuiteaddons.v1.ConnectionConfigB\004\342A\001\002\022D\n" + + "\014app_commands\030\003" + + " \003(\0132(.google.cloud.gsuiteaddons.v1.AppCommandB\004\342A\001\001\022D\n" + + "\014url_patterns\030\004 \003" + + "(\0132(.google.cloud.gsuiteaddons.v1.UrlPatternB\004\342A\001\001\022,\n" + + "\036allowlisted_testing_principals\030\005 \003(\tB\004\342A\001\001B\034\n" + + "\032_supports_multiuser_spaces\"\215\003\n" + + "\020ConnectionConfig\022P\n" + + "\024http_endpoint_config\030\001" + + " \001(\01320.google.cloud.gsuiteaddons.v1.HttpEndpointConfigH\000\022]\n" + + "\033apps_script_endpoint_config\030\002 \001(\01326.google.clou" + + "d.gsuiteaddons.v1.AppsScriptEndpointConfigH\000\022`\n" + + "\035cloud_pub_sub_endpoint_config\030\003 " + + "\001(\01327.google.cloud.gsuiteaddons.v1.CloudPubSubEndpointConfigH\000\022\\\n" + + "\032dialogflow_endpoint_config\030\004" + + " \001(\01326.google.cloud.gsuiteaddons.v1.DialogflowEndpointConfigH\000B\010\n" + + "\006config\"\237\001\n" + + "\022HttpEndpointConfig\022\032\n\n" + + "common_url\030\001 \001(\tB\004\342A\001\001H\000\022c\n" + + "\031per_event_endpoint_config\030\002 \001(\01328.google.cloud.gsuiteaddons" + + ".v1.HttpPerEventEndpointConfigB\004\342A\001\001H\000B\010\n" + + "\006config\"\262\001\n" + + "\032HttpPerEventEndpointConfig\022\"\n" + + "\024app_command_endpoint\030\001 \001(\tB\004\342A\001\002\022%\n" + + "\027added_to_space_endpoint\030\002 \001(\tB\004\342A\001\002\022\036\n" + + "\020message_endpoint\030\003 \001(\tB\004\342A\001\002\022)\n" + + "\033removed_from_space_endpoint\030\004 \001(\tB\004\342A\001\002\"\240\001\n" + + "\030AppsScriptEndpointConfig\022\033\n\r" + + "deployment_id\030\001 \001(\tB\004\342A\001\002\022g\n" + + "\031per_event_endpoint_config\030\002 \001" + + "(\0132>.google.cloud.gsuiteaddons.v1.AppsScriptPerEventEndpointConfigB\004\342A\001\001\"\266\002\n" + + " AppsScriptPerEventEndpointConfig\022\'\n" + + "\024app_command_endpoint\030\001 \001(\tB\004\342A\001\001H\000\210\001\001\022*\n" + + "\027added_to_space_endpoint\030\002 \001(\tB\004\342A\001\001H\001\210\001\001\022#\n" + + "\020message_endpoint\030\003 \001(\tB\004\342A\001\001H\002\210\001\001\022.\n" + + "\033removed_from_space_endpoint\030\004 \001(" + + "\tB\004\342A\001\001H\003\210\001\001B\027\n" + + "\025_app_command_endpointB\032\n" + + "\030_added_to_space_endpointB\023\n" + + "\021_message_endpointB\036\n" + + "\034_removed_from_space_endpoint\"P\n" + + "\031CloudPubSubEndpointConfig\0223\n" + + "\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\"\363\001\n" + + "\030DialogflowEndpointConfig\022j\n" + + "\022dialogflow_edition\030\001 \001(\0162H.google.cloud.gsuiteaddons.v1.Dial" + + "ogflowEndpointConfig.DialogflowEditionB\004\342A\001\002\022\030\n" + + "\005agent\030\002 \001(\tB\004\342A\001\001H\000\210\001\001\"G\n" + + "\021DialogflowEdition\022\"\n" + + "\036DIALOGFLOW_EDITION_UNSPECIFIED\020\000\022\006\n" + + "\002ES\020\001\022\006\n" + + "\002CX\020\002B\010\n" + + "\006_agent\"\367\002\n\n" + + "AppCommand\022P\n" + + "\014command_type\030\001 \001(\01624.google." + + "cloud.gsuiteaddons.v1.AppCommand.CommandTypeB\004\342A\001\002\022\030\n\n" + + "command_id\030\002 \001(\005B\004\342A\001\002\022\025\n" + + "\007command\030\003 \001(\tB\004\342A\001\001\022\032\n" + + "\014display_name\030\004 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\005 \001(\tB\004\342A\001\002\022\034\n" + + "\016dialog_enabled\030\006 \001(\010B\004\342A\001\001\022*\n" + + "\034loading_notification_message\030\007 \001(\tB\004\342A\001\001\"e\n" + + "\013CommandType\022\034\n" + + "\030COMMAND_TYPE_UNSPECIFIED\020\000\022\021\n\r" + + "SLASH_COMMAND\020\001\022\021\n\r" + + "QUICK_COMMAND\020\002\022\022\n" + + "\016MESSAGE_ACTION\020\003\"C\n\n" + + "UrlPattern\022\032\n" + + "\014host_pattern\030\001 \001(\tB\004\342A\001\002\022\031\n" + + "\013path_prefix\030\002 \001(\tB\004\342A\001\0012\366\020\n" + + "\014GSuiteAddOns\022\252\001\n" + + "\020GetAuthorization\0225.google.cloud.gsuiteaddons.v1.GetAuthori" + + "zationRequest\032+.google.cloud.gsuiteaddon" + + "s.v1.Authorization\"2\332A\004name\202\323\344\223\002%\022#/v1/{name=projects/*/authorization}\022\316\001\n" + + "\020CreateDeployment\0225.google.cloud.gsuiteaddons." + + "v1.CreateDeploymentRequest\032(.google.clou" + + "d.gsuiteaddons.v1.Deployment\"Y\332A\037parent," + + "deployment,deployment_id\202\323\344\223\0021\"#/v1/{parent=projects/*}/deployments:\n" + + "deployment\022\306\001\n" + + "\021ReplaceDeployment\0226.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest\032(." + + "google.cloud.gsuiteaddons.v1.Deployment\"O\332A\n" + + "deployment\202\323\344\223\002<\032./v1/{deployment.name=projects/*/deployments/*}:\n" + + "deployment\022\241\001\n\r" + + "GetDeployment\0222.google.cloud.gsuiteaddons.v1.GetDeploymentRequest\032(.google." + + "cloud.gsuiteaddons.v1.Deployment\"2\332A\004nam" + + "e\202\323\344\223\002%\022#/v1/{name=projects/*/deployments/*}\022\264\001\n" + + "\017ListDeployments\0224.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest\0325" + + ".google.cloud.gsuiteaddons.v1.ListDeploy" + + "mentsResponse\"4\332A\006parent\202\323\344\223\002%\022#/v1/{parent=projects/*}/deployments\022\225\001\n" + + "\020DeleteDeployment\0225.google.cloud.gsuiteaddons.v1." + + "DeleteDeploymentRequest\032\026.google.protobu" + + "f.Empty\"2\332A\004name\202\323\344\223\002%*#/v1/{name=projects/*/deployments/*}\022\242\001\n" + + "\021InstallDeployment\0226.google.cloud.gsuiteaddons.v1.Install" + + "DeploymentRequest\032\026.google.protobuf.Empt" + + "y\"=\332A\004name\202\323\344\223\0020\"+/v1/{name=projects/*/deployments/*}:install:\001*\022\250\001\n" + + "\023UninstallDeployment\0228.google.cloud.gsuiteaddons.v1." + + "UninstallDeploymentRequest\032\026.google.prot" + + "obuf.Empty\"?\332A\004name\202\323\344\223\0022\"-/v1/{name=projects/*/deployments/*}:uninstall:\001*\022\270\001\n" + + "\020GetInstallStatus\0225.google.cloud.gsuitead" + + "dons.v1.GetInstallStatusRequest\032+.google" + + ".cloud.gsuiteaddons.v1.InstallStatus\"@\332A" + + "\004name\202\323\344\223\0023\0221/v1/{name=projects/*/deployments/*/installStatus}\022\252\001\n" + + "\020GetChatAppConfig\0225.google.cloud.gsuiteaddons.v1.GetCh" + + "atAppConfigRequest\032+.google.cloud.gsuite" + + "addons.v1.ChatAppConfig\"2\332A\004name\202\323\344\223\002%\022#/v1/{name=projects/*/chatAppConfig}\022\350\001\n" + + "\023UpdateChatAppConfig\0228.google.cloud.gsuit" + + "eaddons.v1.UpdateChatAppConfigRequest\032+.google.cloud.gsuiteaddons.v1.ChatAppConf" + + "ig\"j\332A\033chat_app_config,update_mask\202\323\344\223\002F" + + "23/v1/{chat_app_config.name=projects/*/c" + + "hatAppConfig}:\017chat_app_config\032\210\001\312A\033gsui" + + "teaddons.googleapis.com\322Aghttps://www.googleapis.com/auth/cloud-platform,https:/" + + "/www.googleapis.com/auth/cloud-platform.read-onlyB\257\002\n" + + " com.google.cloud.gsuiteaddons.v1B\021GSuiteAddOnsProtoP\001ZDcloud.googl" + + "e.com/go/gsuiteaddons/apiv1/gsuiteaddons" + + "pb;gsuiteaddonspb\252\002\034Google.Cloud.GSuiteA" + + "ddOns.V1\312\002\034Google\\Cloud\\GSuiteAddOns\\V1\352\002\037Google::Cloud::GSuiteAddOns::V1\352AO\n" + + "\033pubsub.googleapis.com/Topic\022!projects/{pro" + + "ject}/topics/{topic}*\006topics2\005topicb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -243,6 +417,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.apps.script.type.sheets.SheetsAddOnManifestProto.getDescriptor(), com.google.apps.script.type.slides.SlidesAddOnManifestProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }); internal_static_google_cloud_gsuiteaddons_v1_GetAuthorizationRequest_descriptor = @@ -357,6 +532,137 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Common", "Gmail", "Drive", "Calendar", "Docs", "Sheets", "Slides", "HttpOptions", }); + internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_descriptor, + new java.lang.String[] { + "ChatAppConfig", "UpdateMask", + }); + internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_ChatAppConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "AvatarUri", + "Description", + "State", + "InteractiveFeatureConfig", + "ErrorLoggingEnabled", + "MarkupSyntax", + }); + internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_descriptor, + new java.lang.String[] { + "SupportsMultiuserSpaces", + "ConnectionConfig", + "AppCommands", + "UrlPatterns", + "AllowlistedTestingPrincipals", + }); + internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_ConnectionConfig_descriptor, + new java.lang.String[] { + "HttpEndpointConfig", + "AppsScriptEndpointConfig", + "CloudPubSubEndpointConfig", + "DialogflowEndpointConfig", + "Config", + }); + internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_descriptor, + new java.lang.String[] { + "CommonUrl", "PerEventEndpointConfig", "Config", + }); + internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_descriptor, + new java.lang.String[] { + "AppCommandEndpoint", + "AddedToSpaceEndpoint", + "MessageEndpoint", + "RemovedFromSpaceEndpoint", + }); + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptEndpointConfig_descriptor, + new java.lang.String[] { + "DeploymentId", "PerEventEndpointConfig", + }); + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_AppsScriptPerEventEndpointConfig_descriptor, + new java.lang.String[] { + "AppCommandEndpoint", + "AddedToSpaceEndpoint", + "MessageEndpoint", + "RemovedFromSpaceEndpoint", + }); + internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_CloudPubSubEndpointConfig_descriptor, + new java.lang.String[] { + "Topic", + }); + internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_DialogflowEndpointConfig_descriptor, + new java.lang.String[] { + "DialogflowEdition", "Agent", + }); + internal_static_google_cloud_gsuiteaddons_v1_AppCommand_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_gsuiteaddons_v1_AppCommand_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_AppCommand_descriptor, + new java.lang.String[] { + "CommandType", + "CommandId", + "Command", + "DisplayName", + "Description", + "DialogEnabled", + "LoadingNotificationMessage", + }); + internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_descriptor, + new java.lang.String[] { + "HostPattern", "PathPrefix", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); @@ -370,6 +676,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.apps.script.type.sheets.SheetsAddOnManifestProto.getDescriptor(); com.google.apps.script.type.slides.SlidesAddOnManifestProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -379,6 +686,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.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-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetChatAppConfigRequest.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetChatAppConfigRequest.java new file mode 100644 index 000000000000..cc2aca0bb9de --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetChatAppConfigRequest.java @@ -0,0 +1,1001 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Request message to get the Chat app configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetChatAppConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) + GetChatAppConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetChatAppConfigRequest"); + } + + // Use GetChatAppConfigRequest.newBuilder() to construct. + private GetChatAppConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetChatAppConfigRequest() { + name_ = ""; + view_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.class, + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.Builder.class); + } + + /** + * + * + *
+   * A view that specifies which fields should be populated in the ChatAppConfig
+   * resource.
+   * 
+ * + * Protobuf enum {@code google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView} + */ + public enum ChatAppConfigView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default or unset value. Defaults to `BASIC`.
+     * 
+ * + * CHAT_APP_CONFIG_VIEW_UNSPECIFIED = 0; + */ + CHAT_APP_CONFIG_VIEW_UNSPECIFIED(0), + /** + * + * + *
+     * Populates only the basic metadata about the app configuration, without
+     * the interactive feature configuration.
+     * This is the default value.
+     * 
+ * + * BASIC = 1; + */ + BASIC(1), + /** + * + * + *
+     * Populates all the fields including the interactive feature
+     * configurations.
+     * 
+ * + * FULL = 2; + */ + FULL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ChatAppConfigView"); + } + + /** + * + * + *
+     * The default or unset value. Defaults to `BASIC`.
+     * 
+ * + * CHAT_APP_CONFIG_VIEW_UNSPECIFIED = 0; + */ + public static final int CHAT_APP_CONFIG_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Populates only the basic metadata about the app configuration, without
+     * the interactive feature configuration.
+     * This is the default value.
+     * 
+ * + * BASIC = 1; + */ + public static final int BASIC_VALUE = 1; + + /** + * + * + *
+     * Populates all the fields including the interactive feature
+     * configurations.
+     * 
+ * + * FULL = 2; + */ + public static final int 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 ChatAppConfigView 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 ChatAppConfigView forNumber(int value) { + switch (value) { + case 0: + return CHAT_APP_CONFIG_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return 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 ChatAppConfigView findValueByNumber(int number) { + return ChatAppConfigView.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.gsuiteaddons.v1.GetChatAppConfigRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ChatAppConfigView[] VALUES = values(); + + public static ChatAppConfigView 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 ChatAppConfigView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the Chat app configuration.
+   *
+   * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+   * Cloud project number.
+   * 
+ * + * + * 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. Resource name of the Chat app configuration.
+   *
+   * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+   * Cloud project number.
+   * 
+ * + * + * 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 VIEW_FIELD_NUMBER = 2; + private int view_ = 0; + + /** + * + * + *
+   * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+   * to `BASIC`.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+   * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+   * to `BASIC`.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView getView() { + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView result = + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView.forNumber(view_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView.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(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (view_ + != com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView + .CHAT_APP_CONFIG_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } + 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 (view_ + != com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView + .CHAT_APP_CONFIG_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + 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.gsuiteaddons.v1.GetChatAppConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest other = + (com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) 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) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest 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.gsuiteaddons.v1.GetChatAppConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest 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.gsuiteaddons.v1.GetChatAppConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest 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.gsuiteaddons.v1.GetChatAppConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest 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.gsuiteaddons.v1.GetChatAppConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest 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.gsuiteaddons.v1.GetChatAppConfigRequest 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 to get the Chat app configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.class, + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_GetChatAppConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest build() { + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest buildPartial() { + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest result = + new com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest other) { + if (other == com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + 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: + { + view_ = 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.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * 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. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * 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. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * 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. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * 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. Resource name of the Chat app configuration.
+     *
+     * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+     * Cloud project number.
+     * 
+ * + * + * 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 view_ = 0; + + /** + * + * + *
+     * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+     * to `BASIC`.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+     * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+     * to `BASIC`.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+     * to `BASIC`.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView getView() { + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView result = + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView.forNumber( + view_); + return result == null + ? com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+     * to `BASIC`.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView( + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+     * to `BASIC`.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) + private static final com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest(); + } + + public static com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetChatAppConfigRequest 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.gsuiteaddons.v1.GetChatAppConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetChatAppConfigRequestOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetChatAppConfigRequestOrBuilder.java new file mode 100644 index 000000000000..a6ef29299012 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetChatAppConfigRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface GetChatAppConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the Chat app configuration.
+   *
+   * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+   * Cloud project number.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the Chat app configuration.
+   *
+   * Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google
+   * Cloud project number.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+   * to `BASIC`.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
+   * Optional. The view of the ChatAppConfig to return. If unspecified, defaults
+   * to `BASIC`.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest.ChatAppConfigView getView(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpEndpointConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpEndpointConfig.java new file mode 100644 index 000000000000..a89f252cd4d8 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpEndpointConfig.java @@ -0,0 +1,1091 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * HTTP endpoint configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.HttpEndpointConfig} + */ +@com.google.protobuf.Generated +public final class HttpEndpointConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.HttpEndpointConfig) + HttpEndpointConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HttpEndpointConfig"); + } + + // Use HttpEndpointConfig.newBuilder() to construct. + private HttpEndpointConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HttpEndpointConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.Builder.class); + } + + private int configCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object config_; + + public enum ConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COMMON_URL(1), + PER_EVENT_ENDPOINT_CONFIG(2), + CONFIG_NOT_SET(0); + private final int value; + + private ConfigCase(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 ConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigCase forNumber(int value) { + switch (value) { + case 1: + return COMMON_URL; + case 2: + return PER_EVENT_ENDPOINT_CONFIG; + case 0: + return CONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public static final int COMMON_URL_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. The HTTPS URL to which Google Chat sends all interactive
+   * events.
+   * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the commonUrl field is set. + */ + public boolean hasCommonUrl() { + return configCase_ == 1; + } + + /** + * + * + *
+   * Optional. The HTTPS URL to which Google Chat sends all interactive
+   * events.
+   * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commonUrl. + */ + public java.lang.String getCommonUrl() { + java.lang.Object ref = ""; + if (configCase_ == 1) { + ref = config_; + } + 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 (configCase_ == 1) { + config_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The HTTPS URL to which Google Chat sends all interactive
+   * events.
+   * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commonUrl. + */ + public com.google.protobuf.ByteString getCommonUrlBytes() { + java.lang.Object ref = ""; + if (configCase_ == 1) { + ref = config_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (configCase_ == 1) { + config_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PER_EVENT_ENDPOINT_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+   * interactive event.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the perEventEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasPerEventEndpointConfig() { + return configCase_ == 2; + } + + /** + * + * + *
+   * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+   * interactive event.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The perEventEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig getPerEventEndpointConfig() { + if (configCase_ == 2) { + return (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+   * interactive event.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfigOrBuilder + getPerEventEndpointConfigOrBuilder() { + if (configCase_ == 2) { + return (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.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 (configCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, config_); + } + if (configCase_ == 2) { + output.writeMessage(2, (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) config_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (configCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, config_); + } + if (configCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) config_); + } + 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.gsuiteaddons.v1.HttpEndpointConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig other = + (com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) obj; + + if (!getConfigCase().equals(other.getConfigCase())) return false; + switch (configCase_) { + case 1: + if (!getCommonUrl().equals(other.getCommonUrl())) return false; + break; + case 2: + if (!getPerEventEndpointConfig().equals(other.getPerEventEndpointConfig())) 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 (configCase_) { + case 1: + hash = (37 * hash) + COMMON_URL_FIELD_NUMBER; + hash = (53 * hash) + getCommonUrl().hashCode(); + break; + case 2: + hash = (37 * hash) + PER_EVENT_ENDPOINT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPerEventEndpointConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig 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.gsuiteaddons.v1.HttpEndpointConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig 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.gsuiteaddons.v1.HttpEndpointConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig 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.gsuiteaddons.v1.HttpEndpointConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig 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.gsuiteaddons.v1.HttpEndpointConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig 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.gsuiteaddons.v1.HttpEndpointConfig 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; + } + + /** + * + * + *
+   * HTTP endpoint configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.HttpEndpointConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.HttpEndpointConfig) + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (perEventEndpointConfigBuilder_ != null) { + perEventEndpointConfigBuilder_.clear(); + } + configCase_ = 0; + config_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpEndpointConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig build() { + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig result = + new com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig result) { + result.configCase_ = configCase_; + result.config_ = this.config_; + if (configCase_ == 2 && perEventEndpointConfigBuilder_ != null) { + result.config_ = perEventEndpointConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig other) { + if (other == com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.getDefaultInstance()) + return this; + switch (other.getConfigCase()) { + case COMMON_URL: + { + configCase_ = 1; + config_ = other.config_; + onChanged(); + break; + } + case PER_EVENT_ENDPOINT_CONFIG: + { + mergePerEventEndpointConfig(other.getPerEventEndpointConfig()); + break; + } + case CONFIG_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(); + configCase_ = 1; + config_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPerEventEndpointConfigFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 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 configCase_ = 0; + private java.lang.Object config_; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public Builder clearConfig() { + configCase_ = 0; + config_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The HTTPS URL to which Google Chat sends all interactive
+     * events.
+     * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the commonUrl field is set. + */ + @java.lang.Override + public boolean hasCommonUrl() { + return configCase_ == 1; + } + + /** + * + * + *
+     * Optional. The HTTPS URL to which Google Chat sends all interactive
+     * events.
+     * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commonUrl. + */ + @java.lang.Override + public java.lang.String getCommonUrl() { + java.lang.Object ref = ""; + if (configCase_ == 1) { + ref = config_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (configCase_ == 1) { + config_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The HTTPS URL to which Google Chat sends all interactive
+     * events.
+     * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commonUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommonUrlBytes() { + java.lang.Object ref = ""; + if (configCase_ == 1) { + ref = config_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (configCase_ == 1) { + config_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The HTTPS URL to which Google Chat sends all interactive
+     * events.
+     * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The commonUrl to set. + * @return This builder for chaining. + */ + public Builder setCommonUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + configCase_ = 1; + config_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The HTTPS URL to which Google Chat sends all interactive
+     * events.
+     * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommonUrl() { + if (configCase_ == 1) { + configCase_ = 0; + config_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The HTTPS URL to which Google Chat sends all interactive
+     * events.
+     * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for commonUrl to set. + * @return This builder for chaining. + */ + public Builder setCommonUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configCase_ = 1; + config_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig, + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfigOrBuilder> + perEventEndpointConfigBuilder_; + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the perEventEndpointConfig field is set. + */ + @java.lang.Override + public boolean hasPerEventEndpointConfig() { + return configCase_ == 2; + } + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The perEventEndpointConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig getPerEventEndpointConfig() { + if (perEventEndpointConfigBuilder_ == null) { + if (configCase_ == 2) { + return (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.getDefaultInstance(); + } else { + if (configCase_ == 2) { + return perEventEndpointConfigBuilder_.getMessage(); + } + return com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPerEventEndpointConfig( + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig value) { + if (perEventEndpointConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + perEventEndpointConfigBuilder_.setMessage(value); + } + configCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPerEventEndpointConfig( + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.Builder builderForValue) { + if (perEventEndpointConfigBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + perEventEndpointConfigBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePerEventEndpointConfig( + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig value) { + if (perEventEndpointConfigBuilder_ == null) { + if (configCase_ == 2 + && config_ + != com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig + .getDefaultInstance()) { + config_ = + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.newBuilder( + (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 2) { + perEventEndpointConfigBuilder_.mergeFrom(value); + } else { + perEventEndpointConfigBuilder_.setMessage(value); + } + } + configCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPerEventEndpointConfig() { + if (perEventEndpointConfigBuilder_ == null) { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + } + perEventEndpointConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.Builder + getPerEventEndpointConfigBuilder() { + return internalGetPerEventEndpointConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfigOrBuilder + getPerEventEndpointConfigOrBuilder() { + if ((configCase_ == 2) && (perEventEndpointConfigBuilder_ != null)) { + return perEventEndpointConfigBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 2) { + return (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) config_; + } + return com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+     * interactive event.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig, + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfigOrBuilder> + internalGetPerEventEndpointConfigFieldBuilder() { + if (perEventEndpointConfigBuilder_ == null) { + if (!(configCase_ == 2)) { + config_ = + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.getDefaultInstance(); + } + perEventEndpointConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig, + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.Builder, + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfigOrBuilder>( + (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 2; + onChanged(); + return perEventEndpointConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.HttpEndpointConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.HttpEndpointConfig) + private static final com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpEndpointConfig 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.gsuiteaddons.v1.HttpEndpointConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpEndpointConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpEndpointConfigOrBuilder.java new file mode 100644 index 000000000000..9f8c6792df71 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpEndpointConfigOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface HttpEndpointConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.HttpEndpointConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The HTTPS URL to which Google Chat sends all interactive
+   * events.
+   * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the commonUrl field is set. + */ + boolean hasCommonUrl(); + + /** + * + * + *
+   * Optional. The HTTPS URL to which Google Chat sends all interactive
+   * events.
+   * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commonUrl. + */ + java.lang.String getCommonUrl(); + + /** + * + * + *
+   * Optional. The HTTPS URL to which Google Chat sends all interactive
+   * events.
+   * 
+ * + * string common_url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commonUrl. + */ + com.google.protobuf.ByteString getCommonUrlBytes(); + + /** + * + * + *
+   * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+   * interactive event.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the perEventEndpointConfig field is set. + */ + boolean hasPerEventEndpointConfig(); + + /** + * + * + *
+   * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+   * interactive event.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The perEventEndpointConfig. + */ + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig getPerEventEndpointConfig(); + + /** + * + * + *
+   * Optional. Separate HTTPS URLs to which Google Chat sends each type of
+   * interactive event.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig per_event_endpoint_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfigOrBuilder + getPerEventEndpointConfigOrBuilder(); + + com.google.cloud.gsuiteaddons.v1.HttpEndpointConfig.ConfigCase getConfigCase(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpPerEventEndpointConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpPerEventEndpointConfig.java new file mode 100644 index 000000000000..83041b89221b --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpPerEventEndpointConfig.java @@ -0,0 +1,1169 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * HTTP endpoint configuration for specific event types.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig} + */ +@com.google.protobuf.Generated +public final class HttpPerEventEndpointConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) + HttpPerEventEndpointConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HttpPerEventEndpointConfig"); + } + + // Use HttpPerEventEndpointConfig.newBuilder() to construct. + private HttpPerEventEndpointConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HttpPerEventEndpointConfig() { + appCommandEndpoint_ = ""; + addedToSpaceEndpoint_ = ""; + messageEndpoint_ = ""; + removedFromSpaceEndpoint_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.Builder.class); + } + + public static final int APP_COMMAND_ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object appCommandEndpoint_ = ""; + + /** + * + * + *
+   * Required. HTTPS URL endpoint for app command events.
+   * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The appCommandEndpoint. + */ + @java.lang.Override + public java.lang.String getAppCommandEndpoint() { + java.lang.Object ref = appCommandEndpoint_; + 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(); + appCommandEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. HTTPS URL endpoint for app command events.
+   * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for appCommandEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppCommandEndpointBytes() { + java.lang.Object ref = appCommandEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appCommandEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDED_TO_SPACE_ENDPOINT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object addedToSpaceEndpoint_ = ""; + + /** + * + * + *
+   * Required. HTTPS URL endpoint for added to space events.
+   * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The addedToSpaceEndpoint. + */ + @java.lang.Override + public java.lang.String getAddedToSpaceEndpoint() { + java.lang.Object ref = addedToSpaceEndpoint_; + 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(); + addedToSpaceEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. HTTPS URL endpoint for added to space events.
+   * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for addedToSpaceEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddedToSpaceEndpointBytes() { + java.lang.Object ref = addedToSpaceEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addedToSpaceEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_ENDPOINT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object messageEndpoint_ = ""; + + /** + * + * + *
+   * Required. HTTPS URL endpoint for message events.
+   * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The messageEndpoint. + */ + @java.lang.Override + public java.lang.String getMessageEndpoint() { + java.lang.Object ref = messageEndpoint_; + 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(); + messageEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. HTTPS URL endpoint for message events.
+   * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for messageEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageEndpointBytes() { + java.lang.Object ref = messageEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + messageEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOVED_FROM_SPACE_ENDPOINT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object removedFromSpaceEndpoint_ = ""; + + /** + * + * + *
+   * Required. HTTPS URL endpoint for removed from space events.
+   * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The removedFromSpaceEndpoint. + */ + @java.lang.Override + public java.lang.String getRemovedFromSpaceEndpoint() { + java.lang.Object ref = removedFromSpaceEndpoint_; + 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(); + removedFromSpaceEndpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. HTTPS URL endpoint for removed from space events.
+   * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for removedFromSpaceEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRemovedFromSpaceEndpointBytes() { + java.lang.Object ref = removedFromSpaceEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + removedFromSpaceEndpoint_ = 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(appCommandEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, appCommandEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(addedToSpaceEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, addedToSpaceEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(messageEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, messageEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(removedFromSpaceEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, removedFromSpaceEndpoint_); + } + 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(appCommandEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, appCommandEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(addedToSpaceEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, addedToSpaceEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(messageEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, messageEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(removedFromSpaceEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, removedFromSpaceEndpoint_); + } + 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.gsuiteaddons.v1.HttpPerEventEndpointConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig other = + (com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) obj; + + if (!getAppCommandEndpoint().equals(other.getAppCommandEndpoint())) return false; + if (!getAddedToSpaceEndpoint().equals(other.getAddedToSpaceEndpoint())) return false; + if (!getMessageEndpoint().equals(other.getMessageEndpoint())) return false; + if (!getRemovedFromSpaceEndpoint().equals(other.getRemovedFromSpaceEndpoint())) 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) + APP_COMMAND_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getAppCommandEndpoint().hashCode(); + hash = (37 * hash) + ADDED_TO_SPACE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getAddedToSpaceEndpoint().hashCode(); + hash = (37 * hash) + MESSAGE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getMessageEndpoint().hashCode(); + hash = (37 * hash) + REMOVED_FROM_SPACE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getRemovedFromSpaceEndpoint().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig 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.gsuiteaddons.v1.HttpPerEventEndpointConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig 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.gsuiteaddons.v1.HttpPerEventEndpointConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig 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.gsuiteaddons.v1.HttpPerEventEndpointConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig 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.gsuiteaddons.v1.HttpPerEventEndpointConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig 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.gsuiteaddons.v1.HttpPerEventEndpointConfig 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; + } + + /** + * + * + *
+   * HTTP endpoint configuration for specific event types.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.class, + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appCommandEndpoint_ = ""; + addedToSpaceEndpoint_ = ""; + messageEndpoint_ = ""; + removedFromSpaceEndpoint_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_HttpPerEventEndpointConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig build() { + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig result = + new com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appCommandEndpoint_ = appCommandEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.addedToSpaceEndpoint_ = addedToSpaceEndpoint_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.messageEndpoint_ = messageEndpoint_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.removedFromSpaceEndpoint_ = removedFromSpaceEndpoint_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig other) { + if (other == com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig.getDefaultInstance()) + return this; + if (!other.getAppCommandEndpoint().isEmpty()) { + appCommandEndpoint_ = other.appCommandEndpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAddedToSpaceEndpoint().isEmpty()) { + addedToSpaceEndpoint_ = other.addedToSpaceEndpoint_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMessageEndpoint().isEmpty()) { + messageEndpoint_ = other.messageEndpoint_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRemovedFromSpaceEndpoint().isEmpty()) { + removedFromSpaceEndpoint_ = other.removedFromSpaceEndpoint_; + 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 10: + { + appCommandEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + addedToSpaceEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + messageEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + removedFromSpaceEndpoint_ = 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 java.lang.Object appCommandEndpoint_ = ""; + + /** + * + * + *
+     * Required. HTTPS URL endpoint for app command events.
+     * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The appCommandEndpoint. + */ + public java.lang.String getAppCommandEndpoint() { + java.lang.Object ref = appCommandEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appCommandEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for app command events.
+     * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for appCommandEndpoint. + */ + public com.google.protobuf.ByteString getAppCommandEndpointBytes() { + java.lang.Object ref = appCommandEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appCommandEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for app command events.
+     * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The appCommandEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAppCommandEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appCommandEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for app command events.
+     * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAppCommandEndpoint() { + appCommandEndpoint_ = getDefaultInstance().getAppCommandEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for app command events.
+     * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for appCommandEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAppCommandEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appCommandEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object addedToSpaceEndpoint_ = ""; + + /** + * + * + *
+     * Required. HTTPS URL endpoint for added to space events.
+     * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The addedToSpaceEndpoint. + */ + public java.lang.String getAddedToSpaceEndpoint() { + java.lang.Object ref = addedToSpaceEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addedToSpaceEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for added to space events.
+     * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for addedToSpaceEndpoint. + */ + public com.google.protobuf.ByteString getAddedToSpaceEndpointBytes() { + java.lang.Object ref = addedToSpaceEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addedToSpaceEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for added to space events.
+     * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The addedToSpaceEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAddedToSpaceEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addedToSpaceEndpoint_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for added to space events.
+     * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAddedToSpaceEndpoint() { + addedToSpaceEndpoint_ = getDefaultInstance().getAddedToSpaceEndpoint(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for added to space events.
+     * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for addedToSpaceEndpoint to set. + * @return This builder for chaining. + */ + public Builder setAddedToSpaceEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addedToSpaceEndpoint_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object messageEndpoint_ = ""; + + /** + * + * + *
+     * Required. HTTPS URL endpoint for message events.
+     * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The messageEndpoint. + */ + public java.lang.String getMessageEndpoint() { + java.lang.Object ref = messageEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + messageEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for message events.
+     * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for messageEndpoint. + */ + public com.google.protobuf.ByteString getMessageEndpointBytes() { + java.lang.Object ref = messageEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + messageEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for message events.
+     * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The messageEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMessageEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + messageEndpoint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for message events.
+     * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMessageEndpoint() { + messageEndpoint_ = getDefaultInstance().getMessageEndpoint(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for message events.
+     * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for messageEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMessageEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + messageEndpoint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object removedFromSpaceEndpoint_ = ""; + + /** + * + * + *
+     * Required. HTTPS URL endpoint for removed from space events.
+     * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The removedFromSpaceEndpoint. + */ + public java.lang.String getRemovedFromSpaceEndpoint() { + java.lang.Object ref = removedFromSpaceEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + removedFromSpaceEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for removed from space events.
+     * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for removedFromSpaceEndpoint. + */ + public com.google.protobuf.ByteString getRemovedFromSpaceEndpointBytes() { + java.lang.Object ref = removedFromSpaceEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + removedFromSpaceEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for removed from space events.
+     * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The removedFromSpaceEndpoint to set. + * @return This builder for chaining. + */ + public Builder setRemovedFromSpaceEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + removedFromSpaceEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for removed from space events.
+     * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRemovedFromSpaceEndpoint() { + removedFromSpaceEndpoint_ = getDefaultInstance().getRemovedFromSpaceEndpoint(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. HTTPS URL endpoint for removed from space events.
+     * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for removedFromSpaceEndpoint to set. + * @return This builder for chaining. + */ + public Builder setRemovedFromSpaceEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + removedFromSpaceEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) + private static final com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpPerEventEndpointConfig 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.gsuiteaddons.v1.HttpPerEventEndpointConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpPerEventEndpointConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpPerEventEndpointConfigOrBuilder.java new file mode 100644 index 000000000000..2335d47af7db --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/HttpPerEventEndpointConfigOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface HttpPerEventEndpointConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.HttpPerEventEndpointConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. HTTPS URL endpoint for app command events.
+   * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The appCommandEndpoint. + */ + java.lang.String getAppCommandEndpoint(); + + /** + * + * + *
+   * Required. HTTPS URL endpoint for app command events.
+   * 
+ * + * string app_command_endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for appCommandEndpoint. + */ + com.google.protobuf.ByteString getAppCommandEndpointBytes(); + + /** + * + * + *
+   * Required. HTTPS URL endpoint for added to space events.
+   * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The addedToSpaceEndpoint. + */ + java.lang.String getAddedToSpaceEndpoint(); + + /** + * + * + *
+   * Required. HTTPS URL endpoint for added to space events.
+   * 
+ * + * string added_to_space_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for addedToSpaceEndpoint. + */ + com.google.protobuf.ByteString getAddedToSpaceEndpointBytes(); + + /** + * + * + *
+   * Required. HTTPS URL endpoint for message events.
+   * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The messageEndpoint. + */ + java.lang.String getMessageEndpoint(); + + /** + * + * + *
+   * Required. HTTPS URL endpoint for message events.
+   * 
+ * + * string message_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for messageEndpoint. + */ + com.google.protobuf.ByteString getMessageEndpointBytes(); + + /** + * + * + *
+   * Required. HTTPS URL endpoint for removed from space events.
+   * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The removedFromSpaceEndpoint. + */ + java.lang.String getRemovedFromSpaceEndpoint(); + + /** + * + * + *
+   * Required. HTTPS URL endpoint for removed from space events.
+   * 
+ * + * string removed_from_space_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for removedFromSpaceEndpoint. + */ + com.google.protobuf.ByteString getRemovedFromSpaceEndpointBytes(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InteractiveFeatureConfig.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InteractiveFeatureConfig.java new file mode 100644 index 000000000000..fa7752579abd --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InteractiveFeatureConfig.java @@ -0,0 +1,2334 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Settings for the [interactive
+ * features](https://developers.google.com/workspace/chat/interact-users-overview)
+ * of the app.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig} + */ +@com.google.protobuf.Generated +public final class InteractiveFeatureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig) + InteractiveFeatureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InteractiveFeatureConfig"); + } + + // Use InteractiveFeatureConfig.newBuilder() to construct. + private InteractiveFeatureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InteractiveFeatureConfig() { + appCommands_ = java.util.Collections.emptyList(); + urlPatterns_ = java.util.Collections.emptyList(); + allowlistedTestingPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.class, + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.Builder.class); + } + + private int bitField0_; + public static final int SUPPORTS_MULTIUSER_SPACES_FIELD_NUMBER = 1; + private boolean supportsMultiuserSpaces_ = false; + + /** + * + * + *
+   * Optional. Whether the app can be added to 1:1 human DMs, group chats and
+   * spaces. Defaults to `false` if not specified.
+   * 
+ * + * optional bool supports_multiuser_spaces = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supportsMultiuserSpaces field is set. + */ + @java.lang.Override + public boolean hasSupportsMultiuserSpaces() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Whether the app can be added to 1:1 human DMs, group chats and
+   * spaces. Defaults to `false` if not specified.
+   * 
+ * + * optional bool supports_multiuser_spaces = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supportsMultiuserSpaces. + */ + @java.lang.Override + public boolean getSupportsMultiuserSpaces() { + return supportsMultiuserSpaces_; + } + + public static final int CONNECTION_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.gsuiteaddons.v1.ConnectionConfig connectionConfig_; + + /** + * + * + *
+   * Required. How the app receives events from Google Chat.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connectionConfig field is set. + */ + @java.lang.Override + public boolean hasConnectionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. How the app receives events from Google Chat.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connectionConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ConnectionConfig getConnectionConfig() { + return connectionConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.ConnectionConfig.getDefaultInstance() + : connectionConfig_; + } + + /** + * + * + *
+   * Required. How the app receives events from Google Chat.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ConnectionConfigOrBuilder getConnectionConfigOrBuilder() { + return connectionConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.ConnectionConfig.getDefaultInstance() + : connectionConfig_; + } + + public static final int APP_COMMANDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List appCommands_; + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAppCommandsList() { + return appCommands_; + } + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAppCommandsOrBuilderList() { + return appCommands_; + } + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAppCommandsCount() { + return appCommands_.size(); + } + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppCommand getAppCommands(int index) { + return appCommands_.get(index); + } + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.AppCommandOrBuilder getAppCommandsOrBuilder(int index) { + return appCommands_.get(index); + } + + public static final int URL_PATTERNS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List urlPatterns_; + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getUrlPatternsList() { + return urlPatterns_; + } + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getUrlPatternsOrBuilderList() { + return urlPatterns_; + } + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getUrlPatternsCount() { + return urlPatterns_.size(); + } + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.UrlPattern getUrlPatterns(int index) { + return urlPatterns_.get(index); + } + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.UrlPatternOrBuilder getUrlPatternsOrBuilder(int index) { + return urlPatterns_.get(index); + } + + public static final int ALLOWLISTED_TESTING_PRINCIPALS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowlistedTestingPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The email addresses of users and groups in your Google Workspace
+   * domain who can find and use the app.
+   * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowlistedTestingPrincipals. + */ + public com.google.protobuf.ProtocolStringList getAllowlistedTestingPrincipalsList() { + return allowlistedTestingPrincipals_; + } + + /** + * + * + *
+   * Optional. The email addresses of users and groups in your Google Workspace
+   * domain who can find and use the app.
+   * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowlistedTestingPrincipals. + */ + public int getAllowlistedTestingPrincipalsCount() { + return allowlistedTestingPrincipals_.size(); + } + + /** + * + * + *
+   * Optional. The email addresses of users and groups in your Google Workspace
+   * domain who can find and use the app.
+   * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowlistedTestingPrincipals at the given index. + */ + public java.lang.String getAllowlistedTestingPrincipals(int index) { + return allowlistedTestingPrincipals_.get(index); + } + + /** + * + * + *
+   * Optional. The email addresses of users and groups in your Google Workspace
+   * domain who can find and use the app.
+   * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowlistedTestingPrincipals at the given index. + */ + public com.google.protobuf.ByteString getAllowlistedTestingPrincipalsBytes(int index) { + return allowlistedTestingPrincipals_.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)) { + output.writeBool(1, supportsMultiuserSpaces_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getConnectionConfig()); + } + for (int i = 0; i < appCommands_.size(); i++) { + output.writeMessage(3, appCommands_.get(i)); + } + for (int i = 0; i < urlPatterns_.size(); i++) { + output.writeMessage(4, urlPatterns_.get(i)); + } + for (int i = 0; i < allowlistedTestingPrincipals_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 5, allowlistedTestingPrincipals_.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.CodedOutputStream.computeBoolSize(1, supportsMultiuserSpaces_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionConfig()); + } + for (int i = 0; i < appCommands_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, appCommands_.get(i)); + } + for (int i = 0; i < urlPatterns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, urlPatterns_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < allowlistedTestingPrincipals_.size(); i++) { + dataSize += computeStringSizeNoTag(allowlistedTestingPrincipals_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowlistedTestingPrincipalsList().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.gsuiteaddons.v1.InteractiveFeatureConfig)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig other = + (com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig) obj; + + if (hasSupportsMultiuserSpaces() != other.hasSupportsMultiuserSpaces()) return false; + if (hasSupportsMultiuserSpaces()) { + if (getSupportsMultiuserSpaces() != other.getSupportsMultiuserSpaces()) return false; + } + if (hasConnectionConfig() != other.hasConnectionConfig()) return false; + if (hasConnectionConfig()) { + if (!getConnectionConfig().equals(other.getConnectionConfig())) return false; + } + if (!getAppCommandsList().equals(other.getAppCommandsList())) return false; + if (!getUrlPatternsList().equals(other.getUrlPatternsList())) return false; + if (!getAllowlistedTestingPrincipalsList().equals(other.getAllowlistedTestingPrincipalsList())) + 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 (hasSupportsMultiuserSpaces()) { + hash = (37 * hash) + SUPPORTS_MULTIUSER_SPACES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportsMultiuserSpaces()); + } + if (hasConnectionConfig()) { + hash = (37 * hash) + CONNECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConnectionConfig().hashCode(); + } + if (getAppCommandsCount() > 0) { + hash = (37 * hash) + APP_COMMANDS_FIELD_NUMBER; + hash = (53 * hash) + getAppCommandsList().hashCode(); + } + if (getUrlPatternsCount() > 0) { + hash = (37 * hash) + URL_PATTERNS_FIELD_NUMBER; + hash = (53 * hash) + getUrlPatternsList().hashCode(); + } + if (getAllowlistedTestingPrincipalsCount() > 0) { + hash = (37 * hash) + ALLOWLISTED_TESTING_PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getAllowlistedTestingPrincipalsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig 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.gsuiteaddons.v1.InteractiveFeatureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig 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.gsuiteaddons.v1.InteractiveFeatureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig 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.gsuiteaddons.v1.InteractiveFeatureConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig 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.gsuiteaddons.v1.InteractiveFeatureConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig 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.gsuiteaddons.v1.InteractiveFeatureConfig 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; + } + + /** + * + * + *
+   * Settings for the [interactive
+   * features](https://developers.google.com/workspace/chat/interact-users-overview)
+   * of the app.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig) + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.class, + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetConnectionConfigFieldBuilder(); + internalGetAppCommandsFieldBuilder(); + internalGetUrlPatternsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + supportsMultiuserSpaces_ = false; + connectionConfig_ = null; + if (connectionConfigBuilder_ != null) { + connectionConfigBuilder_.dispose(); + connectionConfigBuilder_ = null; + } + if (appCommandsBuilder_ == null) { + appCommands_ = java.util.Collections.emptyList(); + } else { + appCommands_ = null; + appCommandsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (urlPatternsBuilder_ == null) { + urlPatterns_ = java.util.Collections.emptyList(); + } else { + urlPatterns_ = null; + urlPatternsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + allowlistedTestingPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_InteractiveFeatureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig build() { + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig buildPartial() { + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig result = + new com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig result) { + if (appCommandsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + appCommands_ = java.util.Collections.unmodifiableList(appCommands_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.appCommands_ = appCommands_; + } else { + result.appCommands_ = appCommandsBuilder_.build(); + } + if (urlPatternsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + urlPatterns_ = java.util.Collections.unmodifiableList(urlPatterns_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.urlPatterns_ = urlPatterns_; + } else { + result.urlPatterns_ = urlPatternsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.supportsMultiuserSpaces_ = supportsMultiuserSpaces_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectionConfig_ = + connectionConfigBuilder_ == null ? connectionConfig_ : connectionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + allowlistedTestingPrincipals_.makeImmutable(); + result.allowlistedTestingPrincipals_ = allowlistedTestingPrincipals_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig other) { + if (other == com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig.getDefaultInstance()) + return this; + if (other.hasSupportsMultiuserSpaces()) { + setSupportsMultiuserSpaces(other.getSupportsMultiuserSpaces()); + } + if (other.hasConnectionConfig()) { + mergeConnectionConfig(other.getConnectionConfig()); + } + if (appCommandsBuilder_ == null) { + if (!other.appCommands_.isEmpty()) { + if (appCommands_.isEmpty()) { + appCommands_ = other.appCommands_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAppCommandsIsMutable(); + appCommands_.addAll(other.appCommands_); + } + onChanged(); + } + } else { + if (!other.appCommands_.isEmpty()) { + if (appCommandsBuilder_.isEmpty()) { + appCommandsBuilder_.dispose(); + appCommandsBuilder_ = null; + appCommands_ = other.appCommands_; + bitField0_ = (bitField0_ & ~0x00000004); + appCommandsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAppCommandsFieldBuilder() + : null; + } else { + appCommandsBuilder_.addAllMessages(other.appCommands_); + } + } + } + if (urlPatternsBuilder_ == null) { + if (!other.urlPatterns_.isEmpty()) { + if (urlPatterns_.isEmpty()) { + urlPatterns_ = other.urlPatterns_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureUrlPatternsIsMutable(); + urlPatterns_.addAll(other.urlPatterns_); + } + onChanged(); + } + } else { + if (!other.urlPatterns_.isEmpty()) { + if (urlPatternsBuilder_.isEmpty()) { + urlPatternsBuilder_.dispose(); + urlPatternsBuilder_ = null; + urlPatterns_ = other.urlPatterns_; + bitField0_ = (bitField0_ & ~0x00000008); + urlPatternsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetUrlPatternsFieldBuilder() + : null; + } else { + urlPatternsBuilder_.addAllMessages(other.urlPatterns_); + } + } + } + if (!other.allowlistedTestingPrincipals_.isEmpty()) { + if (allowlistedTestingPrincipals_.isEmpty()) { + allowlistedTestingPrincipals_ = other.allowlistedTestingPrincipals_; + bitField0_ |= 0x00000010; + } else { + ensureAllowlistedTestingPrincipalsIsMutable(); + allowlistedTestingPrincipals_.addAll(other.allowlistedTestingPrincipals_); + } + 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: + { + supportsMultiuserSpaces_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.gsuiteaddons.v1.AppCommand m = + input.readMessage( + com.google.cloud.gsuiteaddons.v1.AppCommand.parser(), extensionRegistry); + if (appCommandsBuilder_ == null) { + ensureAppCommandsIsMutable(); + appCommands_.add(m); + } else { + appCommandsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.cloud.gsuiteaddons.v1.UrlPattern m = + input.readMessage( + com.google.cloud.gsuiteaddons.v1.UrlPattern.parser(), extensionRegistry); + if (urlPatternsBuilder_ == null) { + ensureUrlPatternsIsMutable(); + urlPatterns_.add(m); + } else { + urlPatternsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowlistedTestingPrincipalsIsMutable(); + allowlistedTestingPrincipals_.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 boolean supportsMultiuserSpaces_; + + /** + * + * + *
+     * Optional. Whether the app can be added to 1:1 human DMs, group chats and
+     * spaces. Defaults to `false` if not specified.
+     * 
+ * + * optional bool supports_multiuser_spaces = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supportsMultiuserSpaces field is set. + */ + @java.lang.Override + public boolean hasSupportsMultiuserSpaces() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Whether the app can be added to 1:1 human DMs, group chats and
+     * spaces. Defaults to `false` if not specified.
+     * 
+ * + * optional bool supports_multiuser_spaces = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supportsMultiuserSpaces. + */ + @java.lang.Override + public boolean getSupportsMultiuserSpaces() { + return supportsMultiuserSpaces_; + } + + /** + * + * + *
+     * Optional. Whether the app can be added to 1:1 human DMs, group chats and
+     * spaces. Defaults to `false` if not specified.
+     * 
+ * + * optional bool supports_multiuser_spaces = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The supportsMultiuserSpaces to set. + * @return This builder for chaining. + */ + public Builder setSupportsMultiuserSpaces(boolean value) { + + supportsMultiuserSpaces_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the app can be added to 1:1 human DMs, group chats and
+     * spaces. Defaults to `false` if not specified.
+     * 
+ * + * optional bool supports_multiuser_spaces = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSupportsMultiuserSpaces() { + bitField0_ = (bitField0_ & ~0x00000001); + supportsMultiuserSpaces_ = false; + onChanged(); + return this; + } + + private com.google.cloud.gsuiteaddons.v1.ConnectionConfig connectionConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.ConnectionConfig, + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.Builder, + com.google.cloud.gsuiteaddons.v1.ConnectionConfigOrBuilder> + connectionConfigBuilder_; + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connectionConfig field is set. + */ + public boolean hasConnectionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connectionConfig. + */ + public com.google.cloud.gsuiteaddons.v1.ConnectionConfig getConnectionConfig() { + if (connectionConfigBuilder_ == null) { + return connectionConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.ConnectionConfig.getDefaultInstance() + : connectionConfig_; + } else { + return connectionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnectionConfig(com.google.cloud.gsuiteaddons.v1.ConnectionConfig value) { + if (connectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionConfig_ = value; + } else { + connectionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnectionConfig( + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.Builder builderForValue) { + if (connectionConfigBuilder_ == null) { + connectionConfig_ = builderForValue.build(); + } else { + connectionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConnectionConfig(com.google.cloud.gsuiteaddons.v1.ConnectionConfig value) { + if (connectionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && connectionConfig_ != null + && connectionConfig_ + != com.google.cloud.gsuiteaddons.v1.ConnectionConfig.getDefaultInstance()) { + getConnectionConfigBuilder().mergeFrom(value); + } else { + connectionConfig_ = value; + } + } else { + connectionConfigBuilder_.mergeFrom(value); + } + if (connectionConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConnectionConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + connectionConfig_ = null; + if (connectionConfigBuilder_ != null) { + connectionConfigBuilder_.dispose(); + connectionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gsuiteaddons.v1.ConnectionConfig.Builder getConnectionConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetConnectionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gsuiteaddons.v1.ConnectionConfigOrBuilder + getConnectionConfigOrBuilder() { + if (connectionConfigBuilder_ != null) { + return connectionConfigBuilder_.getMessageOrBuilder(); + } else { + return connectionConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.ConnectionConfig.getDefaultInstance() + : connectionConfig_; + } + } + + /** + * + * + *
+     * Required. How the app receives events from Google Chat.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.ConnectionConfig, + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.Builder, + com.google.cloud.gsuiteaddons.v1.ConnectionConfigOrBuilder> + internalGetConnectionConfigFieldBuilder() { + if (connectionConfigBuilder_ == null) { + connectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.ConnectionConfig, + com.google.cloud.gsuiteaddons.v1.ConnectionConfig.Builder, + com.google.cloud.gsuiteaddons.v1.ConnectionConfigOrBuilder>( + getConnectionConfig(), getParentForChildren(), isClean()); + connectionConfig_ = null; + } + return connectionConfigBuilder_; + } + + private java.util.List appCommands_ = + java.util.Collections.emptyList(); + + private void ensureAppCommandsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + appCommands_ = + new java.util.ArrayList(appCommands_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppCommand, + com.google.cloud.gsuiteaddons.v1.AppCommand.Builder, + com.google.cloud.gsuiteaddons.v1.AppCommandOrBuilder> + appCommandsBuilder_; + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAppCommandsList() { + if (appCommandsBuilder_ == null) { + return java.util.Collections.unmodifiableList(appCommands_); + } else { + return appCommandsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAppCommandsCount() { + if (appCommandsBuilder_ == null) { + return appCommands_.size(); + } else { + return appCommandsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.AppCommand getAppCommands(int index) { + if (appCommandsBuilder_ == null) { + return appCommands_.get(index); + } else { + return appCommandsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAppCommands(int index, com.google.cloud.gsuiteaddons.v1.AppCommand value) { + if (appCommandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppCommandsIsMutable(); + appCommands_.set(index, value); + onChanged(); + } else { + appCommandsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAppCommands( + int index, com.google.cloud.gsuiteaddons.v1.AppCommand.Builder builderForValue) { + if (appCommandsBuilder_ == null) { + ensureAppCommandsIsMutable(); + appCommands_.set(index, builderForValue.build()); + onChanged(); + } else { + appCommandsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAppCommands(com.google.cloud.gsuiteaddons.v1.AppCommand value) { + if (appCommandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppCommandsIsMutable(); + appCommands_.add(value); + onChanged(); + } else { + appCommandsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAppCommands(int index, com.google.cloud.gsuiteaddons.v1.AppCommand value) { + if (appCommandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppCommandsIsMutable(); + appCommands_.add(index, value); + onChanged(); + } else { + appCommandsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAppCommands( + com.google.cloud.gsuiteaddons.v1.AppCommand.Builder builderForValue) { + if (appCommandsBuilder_ == null) { + ensureAppCommandsIsMutable(); + appCommands_.add(builderForValue.build()); + onChanged(); + } else { + appCommandsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAppCommands( + int index, com.google.cloud.gsuiteaddons.v1.AppCommand.Builder builderForValue) { + if (appCommandsBuilder_ == null) { + ensureAppCommandsIsMutable(); + appCommands_.add(index, builderForValue.build()); + onChanged(); + } else { + appCommandsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAppCommands( + java.lang.Iterable values) { + if (appCommandsBuilder_ == null) { + ensureAppCommandsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, appCommands_); + onChanged(); + } else { + appCommandsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAppCommands() { + if (appCommandsBuilder_ == null) { + appCommands_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + appCommandsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAppCommands(int index) { + if (appCommandsBuilder_ == null) { + ensureAppCommandsIsMutable(); + appCommands_.remove(index); + onChanged(); + } else { + appCommandsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.AppCommand.Builder getAppCommandsBuilder(int index) { + return internalGetAppCommandsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.AppCommandOrBuilder getAppCommandsOrBuilder(int index) { + if (appCommandsBuilder_ == null) { + return appCommands_.get(index); + } else { + return appCommandsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAppCommandsOrBuilderList() { + if (appCommandsBuilder_ != null) { + return appCommandsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(appCommands_); + } + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.AppCommand.Builder addAppCommandsBuilder() { + return internalGetAppCommandsFieldBuilder() + .addBuilder(com.google.cloud.gsuiteaddons.v1.AppCommand.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.AppCommand.Builder addAppCommandsBuilder(int index) { + return internalGetAppCommandsFieldBuilder() + .addBuilder(index, com.google.cloud.gsuiteaddons.v1.AppCommand.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configuration for app commands.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAppCommandsBuilderList() { + return internalGetAppCommandsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppCommand, + com.google.cloud.gsuiteaddons.v1.AppCommand.Builder, + com.google.cloud.gsuiteaddons.v1.AppCommandOrBuilder> + internalGetAppCommandsFieldBuilder() { + if (appCommandsBuilder_ == null) { + appCommandsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gsuiteaddons.v1.AppCommand, + com.google.cloud.gsuiteaddons.v1.AppCommand.Builder, + com.google.cloud.gsuiteaddons.v1.AppCommandOrBuilder>( + appCommands_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + appCommands_ = null; + } + return appCommandsBuilder_; + } + + private java.util.List urlPatterns_ = + java.util.Collections.emptyList(); + + private void ensureUrlPatternsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + urlPatterns_ = + new java.util.ArrayList(urlPatterns_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gsuiteaddons.v1.UrlPattern, + com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder, + com.google.cloud.gsuiteaddons.v1.UrlPatternOrBuilder> + urlPatternsBuilder_; + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getUrlPatternsList() { + if (urlPatternsBuilder_ == null) { + return java.util.Collections.unmodifiableList(urlPatterns_); + } else { + return urlPatternsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getUrlPatternsCount() { + if (urlPatternsBuilder_ == null) { + return urlPatterns_.size(); + } else { + return urlPatternsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.UrlPattern getUrlPatterns(int index) { + if (urlPatternsBuilder_ == null) { + return urlPatterns_.get(index); + } else { + return urlPatternsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUrlPatterns(int index, com.google.cloud.gsuiteaddons.v1.UrlPattern value) { + if (urlPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlPatternsIsMutable(); + urlPatterns_.set(index, value); + onChanged(); + } else { + urlPatternsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUrlPatterns( + int index, com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder builderForValue) { + if (urlPatternsBuilder_ == null) { + ensureUrlPatternsIsMutable(); + urlPatterns_.set(index, builderForValue.build()); + onChanged(); + } else { + urlPatternsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUrlPatterns(com.google.cloud.gsuiteaddons.v1.UrlPattern value) { + if (urlPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlPatternsIsMutable(); + urlPatterns_.add(value); + onChanged(); + } else { + urlPatternsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUrlPatterns(int index, com.google.cloud.gsuiteaddons.v1.UrlPattern value) { + if (urlPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlPatternsIsMutable(); + urlPatterns_.add(index, value); + onChanged(); + } else { + urlPatternsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUrlPatterns( + com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder builderForValue) { + if (urlPatternsBuilder_ == null) { + ensureUrlPatternsIsMutable(); + urlPatterns_.add(builderForValue.build()); + onChanged(); + } else { + urlPatternsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUrlPatterns( + int index, com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder builderForValue) { + if (urlPatternsBuilder_ == null) { + ensureUrlPatternsIsMutable(); + urlPatterns_.add(index, builderForValue.build()); + onChanged(); + } else { + urlPatternsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllUrlPatterns( + java.lang.Iterable values) { + if (urlPatternsBuilder_ == null) { + ensureUrlPatternsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, urlPatterns_); + onChanged(); + } else { + urlPatternsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUrlPatterns() { + if (urlPatternsBuilder_ == null) { + urlPatterns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + urlPatternsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeUrlPatterns(int index) { + if (urlPatternsBuilder_ == null) { + ensureUrlPatternsIsMutable(); + urlPatterns_.remove(index); + onChanged(); + } else { + urlPatternsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder getUrlPatternsBuilder(int index) { + return internalGetUrlPatternsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.UrlPatternOrBuilder getUrlPatternsOrBuilder(int index) { + if (urlPatternsBuilder_ == null) { + return urlPatterns_.get(index); + } else { + return urlPatternsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getUrlPatternsOrBuilderList() { + if (urlPatternsBuilder_ != null) { + return urlPatternsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(urlPatterns_); + } + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder addUrlPatternsBuilder() { + return internalGetUrlPatternsFieldBuilder() + .addBuilder(com.google.cloud.gsuiteaddons.v1.UrlPattern.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder addUrlPatternsBuilder(int index) { + return internalGetUrlPatternsFieldBuilder() + .addBuilder(index, com.google.cloud.gsuiteaddons.v1.UrlPattern.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configuration for link previews.
+     * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getUrlPatternsBuilderList() { + return internalGetUrlPatternsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gsuiteaddons.v1.UrlPattern, + com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder, + com.google.cloud.gsuiteaddons.v1.UrlPatternOrBuilder> + internalGetUrlPatternsFieldBuilder() { + if (urlPatternsBuilder_ == null) { + urlPatternsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gsuiteaddons.v1.UrlPattern, + com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder, + com.google.cloud.gsuiteaddons.v1.UrlPatternOrBuilder>( + urlPatterns_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + urlPatterns_ = null; + } + return urlPatternsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList allowlistedTestingPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowlistedTestingPrincipalsIsMutable() { + if (!allowlistedTestingPrincipals_.isModifiable()) { + allowlistedTestingPrincipals_ = + new com.google.protobuf.LazyStringArrayList(allowlistedTestingPrincipals_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowlistedTestingPrincipals. + */ + public com.google.protobuf.ProtocolStringList getAllowlistedTestingPrincipalsList() { + allowlistedTestingPrincipals_.makeImmutable(); + return allowlistedTestingPrincipals_; + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowlistedTestingPrincipals. + */ + public int getAllowlistedTestingPrincipalsCount() { + return allowlistedTestingPrincipals_.size(); + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowlistedTestingPrincipals at the given index. + */ + public java.lang.String getAllowlistedTestingPrincipals(int index) { + return allowlistedTestingPrincipals_.get(index); + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowlistedTestingPrincipals at the given index. + */ + public com.google.protobuf.ByteString getAllowlistedTestingPrincipalsBytes(int index) { + return allowlistedTestingPrincipals_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowlistedTestingPrincipals to set. + * @return This builder for chaining. + */ + public Builder setAllowlistedTestingPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowlistedTestingPrincipalsIsMutable(); + allowlistedTestingPrincipals_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowlistedTestingPrincipals to add. + * @return This builder for chaining. + */ + public Builder addAllowlistedTestingPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowlistedTestingPrincipalsIsMutable(); + allowlistedTestingPrincipals_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowlistedTestingPrincipals to add. + * @return This builder for chaining. + */ + public Builder addAllAllowlistedTestingPrincipals(java.lang.Iterable values) { + ensureAllowlistedTestingPrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowlistedTestingPrincipals_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowlistedTestingPrincipals() { + allowlistedTestingPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The email addresses of users and groups in your Google Workspace
+     * domain who can find and use the app.
+     * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowlistedTestingPrincipals to add. + * @return This builder for chaining. + */ + public Builder addAllowlistedTestingPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowlistedTestingPrincipalsIsMutable(); + allowlistedTestingPrincipals_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig) + private static final com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig(); + } + + public static com.google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InteractiveFeatureConfig 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.gsuiteaddons.v1.InteractiveFeatureConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InteractiveFeatureConfigOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InteractiveFeatureConfigOrBuilder.java new file mode 100644 index 000000000000..c5161b6f5f57 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InteractiveFeatureConfigOrBuilder.java @@ -0,0 +1,299 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface InteractiveFeatureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.InteractiveFeatureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Whether the app can be added to 1:1 human DMs, group chats and
+   * spaces. Defaults to `false` if not specified.
+   * 
+ * + * optional bool supports_multiuser_spaces = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supportsMultiuserSpaces field is set. + */ + boolean hasSupportsMultiuserSpaces(); + + /** + * + * + *
+   * Optional. Whether the app can be added to 1:1 human DMs, group chats and
+   * spaces. Defaults to `false` if not specified.
+   * 
+ * + * optional bool supports_multiuser_spaces = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supportsMultiuserSpaces. + */ + boolean getSupportsMultiuserSpaces(); + + /** + * + * + *
+   * Required. How the app receives events from Google Chat.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connectionConfig field is set. + */ + boolean hasConnectionConfig(); + + /** + * + * + *
+   * Required. How the app receives events from Google Chat.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connectionConfig. + */ + com.google.cloud.gsuiteaddons.v1.ConnectionConfig getConnectionConfig(); + + /** + * + * + *
+   * Required. How the app receives events from Google Chat.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ConnectionConfig connection_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gsuiteaddons.v1.ConnectionConfigOrBuilder getConnectionConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAppCommandsList(); + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gsuiteaddons.v1.AppCommand getAppCommands(int index); + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAppCommandsCount(); + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAppCommandsOrBuilderList(); + + /** + * + * + *
+   * Optional. Configuration for app commands.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.AppCommand app_commands = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gsuiteaddons.v1.AppCommandOrBuilder getAppCommandsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getUrlPatternsList(); + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gsuiteaddons.v1.UrlPattern getUrlPatterns(int index); + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getUrlPatternsCount(); + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getUrlPatternsOrBuilderList(); + + /** + * + * + *
+   * Optional. Configuration for link previews.
+   * 
+ * + * + * repeated .google.cloud.gsuiteaddons.v1.UrlPattern url_patterns = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gsuiteaddons.v1.UrlPatternOrBuilder getUrlPatternsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The email addresses of users and groups in your Google Workspace
+   * domain who can find and use the app.
+   * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowlistedTestingPrincipals. + */ + java.util.List getAllowlistedTestingPrincipalsList(); + + /** + * + * + *
+   * Optional. The email addresses of users and groups in your Google Workspace
+   * domain who can find and use the app.
+   * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowlistedTestingPrincipals. + */ + int getAllowlistedTestingPrincipalsCount(); + + /** + * + * + *
+   * Optional. The email addresses of users and groups in your Google Workspace
+   * domain who can find and use the app.
+   * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowlistedTestingPrincipals at the given index. + */ + java.lang.String getAllowlistedTestingPrincipals(int index); + + /** + * + * + *
+   * Optional. The email addresses of users and groups in your Google Workspace
+   * domain who can find and use the app.
+   * 
+ * + * + * repeated string allowlisted_testing_principals = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowlistedTestingPrincipals at the given index. + */ + com.google.protobuf.ByteString getAllowlistedTestingPrincipalsBytes(int index); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UpdateChatAppConfigRequest.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UpdateChatAppConfigRequest.java new file mode 100644 index 000000000000..00766428c511 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UpdateChatAppConfigRequest.java @@ -0,0 +1,1051 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Request message for UpdateChatAppConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateChatAppConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest) + UpdateChatAppConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateChatAppConfigRequest"); + } + + // Use UpdateChatAppConfigRequest.newBuilder() to construct. + private UpdateChatAppConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateChatAppConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest.class, + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int CHAT_APP_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.gsuiteaddons.v1.ChatAppConfig chatAppConfig_; + + /** + * + * + *
+   * Required. The app configuration to update.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the chatAppConfig field is set. + */ + @java.lang.Override + public boolean hasChatAppConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The app configuration to update.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The chatAppConfig. + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig getChatAppConfig() { + return chatAppConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.ChatAppConfig.getDefaultInstance() + : chatAppConfig_; + } + + /** + * + * + *
+   * Required. The app configuration to update.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.ChatAppConfigOrBuilder getChatAppConfigOrBuilder() { + return chatAppConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.ChatAppConfig.getDefaultInstance() + : chatAppConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The list of fields to update.
+   *
+   * If omitted, only the fields with non-empty values in the provided Chat app
+   * configuration are 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. The list of fields to update.
+   *
+   * If omitted, only the fields with non-empty values in the provided Chat app
+   * configuration are 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. The list of fields to update.
+   *
+   * If omitted, only the fields with non-empty values in the provided Chat app
+   * configuration are 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, getChatAppConfig()); + } + 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, getChatAppConfig()); + } + 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.gsuiteaddons.v1.UpdateChatAppConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest other = + (com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest) obj; + + if (hasChatAppConfig() != other.hasChatAppConfig()) return false; + if (hasChatAppConfig()) { + if (!getChatAppConfig().equals(other.getChatAppConfig())) 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 (hasChatAppConfig()) { + hash = (37 * hash) + CHAT_APP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getChatAppConfig().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.gsuiteaddons.v1.UpdateChatAppConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest 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.gsuiteaddons.v1.UpdateChatAppConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest 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.gsuiteaddons.v1.UpdateChatAppConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest 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.gsuiteaddons.v1.UpdateChatAppConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest 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.gsuiteaddons.v1.UpdateChatAppConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest 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.gsuiteaddons.v1.UpdateChatAppConfigRequest 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 UpdateChatAppConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest) + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest.class, + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetChatAppConfigFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + chatAppConfig_ = null; + if (chatAppConfigBuilder_ != null) { + chatAppConfigBuilder_.dispose(); + chatAppConfigBuilder_ = 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.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UpdateChatAppConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest build() { + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest buildPartial() { + com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest result = + new com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chatAppConfig_ = + chatAppConfigBuilder_ == null ? chatAppConfig_ : chatAppConfigBuilder_.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.gsuiteaddons.v1.UpdateChatAppConfigRequest) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest other) { + if (other == com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest.getDefaultInstance()) + return this; + if (other.hasChatAppConfig()) { + mergeChatAppConfig(other.getChatAppConfig()); + } + 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( + internalGetChatAppConfigFieldBuilder().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.gsuiteaddons.v1.ChatAppConfig chatAppConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.ChatAppConfig, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.Builder, + com.google.cloud.gsuiteaddons.v1.ChatAppConfigOrBuilder> + chatAppConfigBuilder_; + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the chatAppConfig field is set. + */ + public boolean hasChatAppConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The chatAppConfig. + */ + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig getChatAppConfig() { + if (chatAppConfigBuilder_ == null) { + return chatAppConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.ChatAppConfig.getDefaultInstance() + : chatAppConfig_; + } else { + return chatAppConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChatAppConfig(com.google.cloud.gsuiteaddons.v1.ChatAppConfig value) { + if (chatAppConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chatAppConfig_ = value; + } else { + chatAppConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChatAppConfig( + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.Builder builderForValue) { + if (chatAppConfigBuilder_ == null) { + chatAppConfig_ = builderForValue.build(); + } else { + chatAppConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeChatAppConfig(com.google.cloud.gsuiteaddons.v1.ChatAppConfig value) { + if (chatAppConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && chatAppConfig_ != null + && chatAppConfig_ + != com.google.cloud.gsuiteaddons.v1.ChatAppConfig.getDefaultInstance()) { + getChatAppConfigBuilder().mergeFrom(value); + } else { + chatAppConfig_ = value; + } + } else { + chatAppConfigBuilder_.mergeFrom(value); + } + if (chatAppConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChatAppConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + chatAppConfig_ = null; + if (chatAppConfigBuilder_ != null) { + chatAppConfigBuilder_.dispose(); + chatAppConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gsuiteaddons.v1.ChatAppConfig.Builder getChatAppConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetChatAppConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gsuiteaddons.v1.ChatAppConfigOrBuilder getChatAppConfigOrBuilder() { + if (chatAppConfigBuilder_ != null) { + return chatAppConfigBuilder_.getMessageOrBuilder(); + } else { + return chatAppConfig_ == null + ? com.google.cloud.gsuiteaddons.v1.ChatAppConfig.getDefaultInstance() + : chatAppConfig_; + } + } + + /** + * + * + *
+     * Required. The app configuration to update.
+     * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.ChatAppConfig, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.Builder, + com.google.cloud.gsuiteaddons.v1.ChatAppConfigOrBuilder> + internalGetChatAppConfigFieldBuilder() { + if (chatAppConfigBuilder_ == null) { + chatAppConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gsuiteaddons.v1.ChatAppConfig, + com.google.cloud.gsuiteaddons.v1.ChatAppConfig.Builder, + com.google.cloud.gsuiteaddons.v1.ChatAppConfigOrBuilder>( + getChatAppConfig(), getParentForChildren(), isClean()); + chatAppConfig_ = null; + } + return chatAppConfigBuilder_; + } + + 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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. The list of fields to update.
+     *
+     * If omitted, only the fields with non-empty values in the provided Chat app
+     * configuration are 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.gsuiteaddons.v1.UpdateChatAppConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest) + private static final com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest(); + } + + public static com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateChatAppConfigRequest 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.gsuiteaddons.v1.UpdateChatAppConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UpdateChatAppConfigRequestOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UpdateChatAppConfigRequestOrBuilder.java new file mode 100644 index 000000000000..a33d037788b9 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UpdateChatAppConfigRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface UpdateChatAppConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app configuration to update.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the chatAppConfig field is set. + */ + boolean hasChatAppConfig(); + + /** + * + * + *
+   * Required. The app configuration to update.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The chatAppConfig. + */ + com.google.cloud.gsuiteaddons.v1.ChatAppConfig getChatAppConfig(); + + /** + * + * + *
+   * Required. The app configuration to update.
+   * 
+ * + * + * .google.cloud.gsuiteaddons.v1.ChatAppConfig chat_app_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gsuiteaddons.v1.ChatAppConfigOrBuilder getChatAppConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The list of fields to update.
+   *
+   * If omitted, only the fields with non-empty values in the provided Chat app
+   * configuration are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update.
+   *
+   * If omitted, only the fields with non-empty values in the provided Chat app
+   * configuration are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update.
+   *
+   * If omitted, only the fields with non-empty values in the provided Chat app
+   * configuration are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UrlPattern.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UrlPattern.java new file mode 100644 index 000000000000..9b57f06d5980 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UrlPattern.java @@ -0,0 +1,835 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +/** + * + * + *
+ * Configuration for a [link
+ * preview](https://developers.google.com/workspace/chat/preview-links).
+ * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.UrlPattern} + */ +@com.google.protobuf.Generated +public final class UrlPattern extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gsuiteaddons.v1.UrlPattern) + UrlPatternOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UrlPattern"); + } + + // Use UrlPattern.newBuilder() to construct. + private UrlPattern(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UrlPattern() { + hostPattern_ = ""; + pathPrefix_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.UrlPattern.class, + com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder.class); + } + + public static final int HOST_PATTERN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostPattern_ = ""; + + /** + * + * + *
+   * Required. The domain to match.
+   * Match a specific subdomain, like "subdomain.example.com", or an entire
+   * domain by including an asterisk (*) as a leading wildcard character. For
+   * example, "*.example.com" matches "https://subdomain.example.com" and
+   * "https://any.number.of.subdomains.example.com".
+   * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostPattern. + */ + @java.lang.Override + public java.lang.String getHostPattern() { + java.lang.Object ref = hostPattern_; + 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(); + hostPattern_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The domain to match.
+   * Match a specific subdomain, like "subdomain.example.com", or an entire
+   * domain by including an asterisk (*) as a leading wildcard character. For
+   * example, "*.example.com" matches "https://subdomain.example.com" and
+   * "https://any.number.of.subdomains.example.com".
+   * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostPatternBytes() { + java.lang.Object ref = hostPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_PREFIX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pathPrefix_ = ""; + + /** + * + * + *
+   * Optional. Path prefix appended to the host pattern. If blank, matches all
+   * URLs in the host pattern. For example, when paired with the host pattern
+   * "subdomain.example.com", specify "path/" to match page URLs that begin with
+   * "https://subdomain.example.com/path/".
+   * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pathPrefix. + */ + @java.lang.Override + public java.lang.String getPathPrefix() { + java.lang.Object ref = pathPrefix_; + 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(); + pathPrefix_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Path prefix appended to the host pattern. If blank, matches all
+   * URLs in the host pattern. For example, when paired with the host pattern
+   * "subdomain.example.com", specify "path/" to match page URLs that begin with
+   * "https://subdomain.example.com/path/".
+   * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pathPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathPrefixBytes() { + java.lang.Object ref = pathPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pathPrefix_ = 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(hostPattern_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, hostPattern_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pathPrefix_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pathPrefix_); + } + 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(hostPattern_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, hostPattern_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pathPrefix_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pathPrefix_); + } + 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.gsuiteaddons.v1.UrlPattern)) { + return super.equals(obj); + } + com.google.cloud.gsuiteaddons.v1.UrlPattern other = + (com.google.cloud.gsuiteaddons.v1.UrlPattern) obj; + + if (!getHostPattern().equals(other.getHostPattern())) return false; + if (!getPathPrefix().equals(other.getPathPrefix())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOST_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getHostPattern().hashCode(); + hash = (37 * hash) + PATH_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getPathPrefix().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern 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.gsuiteaddons.v1.UrlPattern parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern 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.gsuiteaddons.v1.UrlPattern parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern 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.gsuiteaddons.v1.UrlPattern parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern 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.gsuiteaddons.v1.UrlPattern parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern 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.gsuiteaddons.v1.UrlPattern 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 [link
+   * preview](https://developers.google.com/workspace/chat/preview-links).
+   * 
+ * + * Protobuf type {@code google.cloud.gsuiteaddons.v1.UrlPattern} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gsuiteaddons.v1.UrlPattern) + com.google.cloud.gsuiteaddons.v1.UrlPatternOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gsuiteaddons.v1.UrlPattern.class, + com.google.cloud.gsuiteaddons.v1.UrlPattern.Builder.class); + } + + // Construct using com.google.cloud.gsuiteaddons.v1.UrlPattern.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostPattern_ = ""; + pathPrefix_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsProto + .internal_static_google_cloud_gsuiteaddons_v1_UrlPattern_descriptor; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.UrlPattern getDefaultInstanceForType() { + return com.google.cloud.gsuiteaddons.v1.UrlPattern.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.UrlPattern build() { + com.google.cloud.gsuiteaddons.v1.UrlPattern result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gsuiteaddons.v1.UrlPattern buildPartial() { + com.google.cloud.gsuiteaddons.v1.UrlPattern result = + new com.google.cloud.gsuiteaddons.v1.UrlPattern(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gsuiteaddons.v1.UrlPattern result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostPattern_ = hostPattern_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pathPrefix_ = pathPrefix_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gsuiteaddons.v1.UrlPattern) { + return mergeFrom((com.google.cloud.gsuiteaddons.v1.UrlPattern) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gsuiteaddons.v1.UrlPattern other) { + if (other == com.google.cloud.gsuiteaddons.v1.UrlPattern.getDefaultInstance()) return this; + if (!other.getHostPattern().isEmpty()) { + hostPattern_ = other.hostPattern_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPathPrefix().isEmpty()) { + pathPrefix_ = other.pathPrefix_; + 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: + { + hostPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pathPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object hostPattern_ = ""; + + /** + * + * + *
+     * Required. The domain to match.
+     * Match a specific subdomain, like "subdomain.example.com", or an entire
+     * domain by including an asterisk (*) as a leading wildcard character. For
+     * example, "*.example.com" matches "https://subdomain.example.com" and
+     * "https://any.number.of.subdomains.example.com".
+     * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostPattern. + */ + public java.lang.String getHostPattern() { + java.lang.Object ref = hostPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The domain to match.
+     * Match a specific subdomain, like "subdomain.example.com", or an entire
+     * domain by including an asterisk (*) as a leading wildcard character. For
+     * example, "*.example.com" matches "https://subdomain.example.com" and
+     * "https://any.number.of.subdomains.example.com".
+     * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostPattern. + */ + public com.google.protobuf.ByteString getHostPatternBytes() { + java.lang.Object ref = hostPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The domain to match.
+     * Match a specific subdomain, like "subdomain.example.com", or an entire
+     * domain by including an asterisk (*) as a leading wildcard character. For
+     * example, "*.example.com" matches "https://subdomain.example.com" and
+     * "https://any.number.of.subdomains.example.com".
+     * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostPattern to set. + * @return This builder for chaining. + */ + public Builder setHostPattern(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostPattern_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The domain to match.
+     * Match a specific subdomain, like "subdomain.example.com", or an entire
+     * domain by including an asterisk (*) as a leading wildcard character. For
+     * example, "*.example.com" matches "https://subdomain.example.com" and
+     * "https://any.number.of.subdomains.example.com".
+     * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostPattern() { + hostPattern_ = getDefaultInstance().getHostPattern(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The domain to match.
+     * Match a specific subdomain, like "subdomain.example.com", or an entire
+     * domain by including an asterisk (*) as a leading wildcard character. For
+     * example, "*.example.com" matches "https://subdomain.example.com" and
+     * "https://any.number.of.subdomains.example.com".
+     * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostPattern to set. + * @return This builder for chaining. + */ + public Builder setHostPatternBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostPattern_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pathPrefix_ = ""; + + /** + * + * + *
+     * Optional. Path prefix appended to the host pattern. If blank, matches all
+     * URLs in the host pattern. For example, when paired with the host pattern
+     * "subdomain.example.com", specify "path/" to match page URLs that begin with
+     * "https://subdomain.example.com/path/".
+     * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pathPrefix. + */ + public java.lang.String getPathPrefix() { + java.lang.Object ref = pathPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pathPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Path prefix appended to the host pattern. If blank, matches all
+     * URLs in the host pattern. For example, when paired with the host pattern
+     * "subdomain.example.com", specify "path/" to match page URLs that begin with
+     * "https://subdomain.example.com/path/".
+     * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pathPrefix. + */ + public com.google.protobuf.ByteString getPathPrefixBytes() { + java.lang.Object ref = pathPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pathPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Path prefix appended to the host pattern. If blank, matches all
+     * URLs in the host pattern. For example, when paired with the host pattern
+     * "subdomain.example.com", specify "path/" to match page URLs that begin with
+     * "https://subdomain.example.com/path/".
+     * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pathPrefix to set. + * @return This builder for chaining. + */ + public Builder setPathPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pathPrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path prefix appended to the host pattern. If blank, matches all
+     * URLs in the host pattern. For example, when paired with the host pattern
+     * "subdomain.example.com", specify "path/" to match page URLs that begin with
+     * "https://subdomain.example.com/path/".
+     * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPathPrefix() { + pathPrefix_ = getDefaultInstance().getPathPrefix(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path prefix appended to the host pattern. If blank, matches all
+     * URLs in the host pattern. For example, when paired with the host pattern
+     * "subdomain.example.com", specify "path/" to match page URLs that begin with
+     * "https://subdomain.example.com/path/".
+     * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pathPrefix to set. + * @return This builder for chaining. + */ + public Builder setPathPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pathPrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gsuiteaddons.v1.UrlPattern) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gsuiteaddons.v1.UrlPattern) + private static final com.google.cloud.gsuiteaddons.v1.UrlPattern DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gsuiteaddons.v1.UrlPattern(); + } + + public static com.google.cloud.gsuiteaddons.v1.UrlPattern getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UrlPattern 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.gsuiteaddons.v1.UrlPattern getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UrlPatternOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UrlPatternOrBuilder.java new file mode 100644 index 000000000000..af8c7a9423a5 --- /dev/null +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/UrlPatternOrBuilder.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/gsuiteaddons/v1/gsuiteaddons.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.gsuiteaddons.v1; + +@com.google.protobuf.Generated +public interface UrlPatternOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gsuiteaddons.v1.UrlPattern) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The domain to match.
+   * Match a specific subdomain, like "subdomain.example.com", or an entire
+   * domain by including an asterisk (*) as a leading wildcard character. For
+   * example, "*.example.com" matches "https://subdomain.example.com" and
+   * "https://any.number.of.subdomains.example.com".
+   * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostPattern. + */ + java.lang.String getHostPattern(); + + /** + * + * + *
+   * Required. The domain to match.
+   * Match a specific subdomain, like "subdomain.example.com", or an entire
+   * domain by including an asterisk (*) as a leading wildcard character. For
+   * example, "*.example.com" matches "https://subdomain.example.com" and
+   * "https://any.number.of.subdomains.example.com".
+   * 
+ * + * string host_pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostPattern. + */ + com.google.protobuf.ByteString getHostPatternBytes(); + + /** + * + * + *
+   * Optional. Path prefix appended to the host pattern. If blank, matches all
+   * URLs in the host pattern. For example, when paired with the host pattern
+   * "subdomain.example.com", specify "path/" to match page URLs that begin with
+   * "https://subdomain.example.com/path/".
+   * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pathPrefix. + */ + java.lang.String getPathPrefix(); + + /** + * + * + *
+   * Optional. Path prefix appended to the host pattern. If blank, matches all
+   * URLs in the host pattern. For example, when paired with the host pattern
+   * "subdomain.example.com", specify "path/" to match page URLs that begin with
+   * "https://subdomain.example.com/path/".
+   * 
+ * + * string path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pathPrefix. + */ + com.google.protobuf.ByteString getPathPrefixBytes(); +} diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/proto/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/proto/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto index 2828d220f865..73c1545a61e2 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/proto/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/proto/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto @@ -28,6 +28,7 @@ import "google/apps/script/type/script_manifest.proto"; import "google/apps/script/type/sheets/sheets_addon_manifest.proto"; import "google/apps/script/type/slides/slides_addon_manifest.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.GSuiteAddOns.V1"; @@ -37,39 +38,19 @@ option java_outer_classname = "GSuiteAddOnsProto"; option java_package = "com.google.cloud.gsuiteaddons.v1"; option php_namespace = "Google\\Cloud\\GSuiteAddOns\\V1"; option ruby_package = "Google::Cloud::GSuiteAddOns::V1"; - -// A service for managing Google Workspace add-ons deployments. -// -// A Google Workspace add-on is a third-party embedded component that can be -// installed in Google Workspace Applications like Gmail, Calendar, Drive, and -// the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can -// display UI cards, receive contextual information from the host application, -// and perform actions in the host application (See: -// https://developers.google.com/gsuite/add-ons/overview for more information). -// -// A Google Workspace add-on deployment resource specifies metadata about the -// add-on, including a specification of the entry points in the host application -// that trigger add-on executions (see: -// https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). -// Add-on deployments defined via the Google Workspace add-ons API define their -// entrypoints using HTTPS URLs (See: -// https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes), -// -// A Google Workspace add-on deployment can be installed in developer mode, -// which allows an add-on developer to test the experience an end-user would see -// when installing and running the add-on in their G Suite applications. When -// running in developer mode, more detailed error messages are exposed in the -// add-on UI to aid in debugging. -// -// A Google Workspace add-on deployment can be published to Google Workspace -// Marketplace, which allows other Google Workspace users to discover and -// install the add-on. See: -// https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview -// for details. +option (google.api.resource_definition) = { + type: "pubsub.googleapis.com/Topic" + pattern: "projects/{project}/topics/{topic}" + plural: "topics" + singular: "topic" +}; + +// A service for managing Google Workspace add-ons. service GSuiteAddOns { option (google.api.default_host) = "gsuiteaddons.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; // Gets the authorization information for deployments in a given project. rpc GetAuthorization(GetAuthorizationRequest) returns (Authorization) { @@ -154,6 +135,35 @@ service GSuiteAddOns { }; option (google.api.method_signature) = "name"; } + + // Gets the Chat app configuration of a project. Only Chat apps built as + // Google Workspace add-ons are supported. Each Google Cloud project has + // exactly one Chat app configuration. + // + // Requires authenticating and authorizing with user credentials and the + // `gsuiteaddons.chatAppConfigs.get` and `chat.bots.get` IAM permissions on + // the project. + rpc GetChatAppConfig(GetChatAppConfigRequest) returns (ChatAppConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/chatAppConfig}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the Chat app configuration of a project. Only Chat apps built as + // Google Workspace add-ons are supported. Each Google Cloud project has + // exactly one Chat app configuration. + // + // Requires authenticating and authorizing with user credentials and the + // `gsuiteaddons.chatAppConfigs.update`, `chat.bots.update` and + // `chat.bots.get` IAM permissions on the project. + rpc UpdateChatAppConfig(UpdateChatAppConfigRequest) returns (ChatAppConfig) { + option (google.api.http) = { + patch: "/v1/{chat_app_config.name=projects/*/chatAppConfig}" + body: "chat_app_config" + }; + option (google.api.method_signature) = "chat_app_config,update_mask"; + } } // Request message to get Google Workspace add-ons authorization information. @@ -387,3 +397,355 @@ message AddOns { // Options for sending requests to add-on HTTP endpoints google.apps.script.type.HttpOptions http_options = 15; } + +// Request message to get the Chat app configuration. +message GetChatAppConfigRequest { + // A view that specifies which fields should be populated in the ChatAppConfig + // resource. + enum ChatAppConfigView { + // The default or unset value. Defaults to `BASIC`. + CHAT_APP_CONFIG_VIEW_UNSPECIFIED = 0; + + // Populates only the basic metadata about the app configuration, without + // the interactive feature configuration. + // This is the default value. + BASIC = 1; + + // Populates all the fields including the interactive feature + // configurations. + FULL = 2; + } + + // Required. Resource name of the Chat app configuration. + // + // Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google + // Cloud project number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/ChatAppConfig" + } + ]; + + // Optional. The view of the ChatAppConfig to return. If unspecified, defaults + // to `BASIC`. + ChatAppConfigView view = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for UpdateChatAppConfig. +message UpdateChatAppConfigRequest { + // Required. The app configuration to update. + ChatAppConfig chat_app_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + // + // If omitted, only the fields with non-empty values in the provided Chat app + // configuration are updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents the configuration of a Google Chat app built as a Google Workspace +// add-on. +message ChatAppConfig { + option (google.api.resource) = { + type: "gsuiteaddons.googleapis.com/ChatAppConfig" + pattern: "projects/{project}/chatAppConfig" + plural: "chatAppConfigs" + singular: "chatAppConfig" + }; + + // The current state of the Chat app. + enum AppState { + // Default value. Unspecified. + APP_STATE_UNSPECIFIED = 0; + + // Maps to LIVE in the Chat API configuration page. + // The app is active, it can be found and used by people with visibility. + ACTIVE = 1; + + // The app is disabled, it can no longer be found by anyone, and nobody can + // talk to the app any more. + DISABLED = 2; + } + + // The markup syntax used to format message text for this Chat app. + enum MarkupSyntax { + // Default value. Unspecified. Existing Chat apps created before + // `markup_syntax` was introduced have this value and use + // `MARKUP_SYNTAX_CHAT` until explicitly updated. + MARKUP_SYNTAX_UNSPECIFIED = 0; + + // Uses Google Chat's markup syntax. + // See + // https://developers.google.com/workspace/chat/format-messages#format-texts + // for more information. + MARKUP_SYNTAX_CHAT = 1; + + // Uses Markdown syntax. This syntax is based on the + // [CommonMark](https://commonmark.org/help/) specification, with additional + // extensions. + // See + // https://developers.google.com/workspace/chat/format-messages#format-texts + // for more information. + MARKUP_SYNTAX_MARKDOWN = 2; + } + + // Required. Identifier. Resource name of the Chat app configuration. + // + // Format: `projects/{project}/chatAppConfig`, where `{project}` is the Google + // Cloud project number. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Required. The display name of the Chat app. Length should be between 3 and + // 25 characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The URL for the app's avatar image. Must be an HTTPS URL that + // hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size: + // 256 by 256 pixels. A default app avatar will be used if not specified. + optional string avatar_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. A short description of the Chat app. + // Should be between 1 and 40 characters. + string description = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The state of the app. Defaults to `ACTIVE` if not specified. + optional AppState state = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The settings for interactive features of the app. If this is not + // provided, the app will be non-interactive, meaning that it can use the Chat + // API, but users can't interact with the app. + InteractiveFeatureConfig interactive_feature_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to log errors to Cloud Logging. Defaults to `false` if + // not specified. + optional bool error_logging_enabled = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default markup syntax for messages sent or read by this Chat + // app. Defaults to `MARKUP_SYNTAX_MARKDOWN` if not specified. + optional MarkupSyntax markup_syntax = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for the [interactive +// features](https://developers.google.com/workspace/chat/interact-users-overview) +// of the app. +message InteractiveFeatureConfig { + // Optional. Whether the app can be added to 1:1 human DMs, group chats and + // spaces. Defaults to `false` if not specified. + optional bool supports_multiuser_spaces = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. How the app receives events from Google Chat. + ConnectionConfig connection_config = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration for app commands. + repeated AppCommand app_commands = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for link previews. + repeated UrlPattern url_patterns = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The email addresses of users and groups in your Google Workspace + // domain who can find and use the app. + repeated string allowlisted_testing_principals = 5 + [(google.api.field_behavior) = OPTIONAL]; +} + +// How the app receives events. +message ConnectionConfig { + // The type of connection. + oneof config { + // HTTP endpoint configuration. + HttpEndpointConfig http_endpoint_config = 1; + + // Apps Script deployment configuration. + AppsScriptEndpointConfig apps_script_endpoint_config = 2; + + // Pub/Sub topic configuration. + CloudPubSubEndpointConfig cloud_pub_sub_endpoint_config = 3; + + // Dialogflow configuration. + DialogflowEndpointConfig dialogflow_endpoint_config = 4; + } +} + +// HTTP endpoint configuration. +message HttpEndpointConfig { + // The HTTP endpoint URL configuration. + oneof config { + // Optional. The HTTPS URL to which Google Chat sends all interactive + // events. + string common_url = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Separate HTTPS URLs to which Google Chat sends each type of + // interactive event. + HttpPerEventEndpointConfig per_event_endpoint_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// HTTP endpoint configuration for specific event types. +message HttpPerEventEndpointConfig { + // Required. HTTPS URL endpoint for app command events. + string app_command_endpoint = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. HTTPS URL endpoint for added to space events. + string added_to_space_endpoint = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. HTTPS URL endpoint for message events. + string message_endpoint = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. HTTPS URL endpoint for removed from space events. + string removed_from_space_endpoint = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// Apps Script endpoint configuration. +message AppsScriptEndpointConfig { + // Required. The Apps Script deployment ID. + string deployment_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The names of the Apps Script functions that Google Chat calls + // for each type of interactive event. If not specified, Chat calls the + // default function for each event type. + AppsScriptPerEventEndpointConfig per_event_endpoint_config = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Apps Script endpoint configuration for specific event types. +message AppsScriptPerEventEndpointConfig { + // Optional. Function name for app command events. If not specified, the + // default `onAppCommand` function name will be used. + optional string app_command_endpoint = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Function name for added to space events. If not specified, the + // default `onAddedToSpace` function name will be used. + optional string added_to_space_endpoint = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Function name for message events. If not specified, the default + // `onMessage` function name will be used. + optional string message_endpoint = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Function name for removed from space events. If not specified, + // the default `onRemovedFromSpace` function name will be used. + optional string removed_from_space_endpoint = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Pub/Sub endpoint configuration. +message CloudPubSubEndpointConfig { + // Required. The Pub/Sub topic to which Google Chat publishes all interactive + // events. The topic must be in the same Google Cloud project as the app, and + // Chat must have permission to publish messages to the topic. For details, + // see [Build a Google Chat app with + // Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub#configure-chat-app). + // + // Format: `projects/{project}/topics/{topic}` + string topic = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; +} + +// Dialogflow endpoint configuration. +message DialogflowEndpointConfig { + // Dialogflow edition type. + enum DialogflowEdition { + // Default value. Unspecified. + DIALOGFLOW_EDITION_UNSPECIFIED = 0; + + // Dialogflow ES edition. To use this edition, a Dialogflow ES agent must + // exist in the same Google Cloud project as the app. Google Chat sends all + // interactive events to that agent. + ES = 1; + + // Dialogflow CX edition. To use this edition, a Dialogflow CX agent must + // exist in the same Google Cloud project as the app and be specified in the + // `agent` field. Google Chat sends all interactive events to that agent. + CX = 2; + } + + // Required. The Dialogflow edition. + DialogflowEdition dialogflow_edition = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Dialogflow CX agent or environment name. + // Required for Dialogflow CX. Do not set for Dialogflow ES. + // + // Format: `projects/{project}/locations/{location}/agents/{agent}` or + // `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`. + optional string agent = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for an [app +// command](https://developers.google.com/workspace/chat/commands). +message AppCommand { + // The type of the App Command. + enum CommandType { + // Default value. Unspecified. + COMMAND_TYPE_UNSPECIFIED = 0; + + // A command invoked by typing a '/' followed by the command name. + // It may accept additional arguments in the message text. + SLASH_COMMAND = 1; + + // A quick command invoked from the message compose context menu. + // Quick commands do not accept additional arguments. + QUICK_COMMAND = 2; + + // A command invoked from a message context menu. + MESSAGE_ACTION = 3; + } + + // Required. The type of this command. + CommandType command_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID of the command (1-1000). Must be unique within the app. + int32 command_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The name of the command. Required for SLASH_COMMAND, do not set + // for other command types. Must start with a "/", e.g., "/command". + string command = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The user-friendly display name of the command. Required for + // MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND. + string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. A short description of the command. + string description = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether this command should trigger a dialog. Defaults to + // `false`, if not specified. + bool dialog_enabled = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A notification to be sent to the user when they trigger the + // message action. Only supported for MESSAGE_ACTION commands. + string loading_notification_message = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for a [link +// preview](https://developers.google.com/workspace/chat/preview-links). +message UrlPattern { + // Required. The domain to match. + // Match a specific subdomain, like "subdomain.example.com", or an entire + // domain by including an asterisk (*) as a leading wildcard character. For + // example, "*.example.com" matches "https://subdomain.example.com" and + // "https://any.number.of.subdomains.example.com". + string host_pattern = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Path prefix appended to the host pattern. If blank, matches all + // URLs in the host pattern. For example, when paired with the host pattern + // "subdomain.example.com", specify "path/" to match page URLs that begin with + // "https://subdomain.example.com/path/". + string path_prefix = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/AsyncGetChatAppConfig.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/AsyncGetChatAppConfig.java new file mode 100644 index 000000000000..83c52de650f5 --- /dev/null +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/AsyncGetChatAppConfig.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.gsuiteaddons.v1.samples; + +// [START gsuiteaddons_v1_generated_GSuiteAddOns_GetChatAppConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfigName; +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; +import com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest; + +public class AsyncGetChatAppConfig { + + public static void main(String[] args) throws Exception { + asyncGetChatAppConfig(); + } + + public static void asyncGetChatAppConfig() 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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { + GetChatAppConfigRequest request = + GetChatAppConfigRequest.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .build(); + ApiFuture future = + gSuiteAddOnsClient.getChatAppConfigCallable().futureCall(request); + // Do something. + ChatAppConfig response = future.get(); + } + } +} +// [END gsuiteaddons_v1_generated_GSuiteAddOns_GetChatAppConfig_async] diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfig.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfig.java new file mode 100644 index 000000000000..46c3ab4254ad --- /dev/null +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfig.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.gsuiteaddons.v1.samples; + +// [START gsuiteaddons_v1_generated_GSuiteAddOns_GetChatAppConfig_sync] +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfigName; +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; +import com.google.cloud.gsuiteaddons.v1.GetChatAppConfigRequest; + +public class SyncGetChatAppConfig { + + public static void main(String[] args) throws Exception { + syncGetChatAppConfig(); + } + + public static void syncGetChatAppConfig() 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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { + GetChatAppConfigRequest request = + GetChatAppConfigRequest.newBuilder() + .setName(ChatAppConfigName.of("[PROJECT]").toString()) + .build(); + ChatAppConfig response = gSuiteAddOnsClient.getChatAppConfig(request); + } + } +} +// [END gsuiteaddons_v1_generated_GSuiteAddOns_GetChatAppConfig_sync] diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfigChatappconfigname.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfigChatappconfigname.java new file mode 100644 index 000000000000..0da77c650daa --- /dev/null +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfigChatappconfigname.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.gsuiteaddons.v1.samples; + +// [START gsuiteaddons_v1_generated_GSuiteAddOns_GetChatAppConfig_Chatappconfigname_sync] +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfigName; +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; + +public class SyncGetChatAppConfigChatappconfigname { + + public static void main(String[] args) throws Exception { + syncGetChatAppConfigChatappconfigname(); + } + + public static void syncGetChatAppConfigChatappconfigname() 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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { + ChatAppConfigName name = ChatAppConfigName.of("[PROJECT]"); + ChatAppConfig response = gSuiteAddOnsClient.getChatAppConfig(name); + } + } +} +// [END gsuiteaddons_v1_generated_GSuiteAddOns_GetChatAppConfig_Chatappconfigname_sync] diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfigString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfigString.java new file mode 100644 index 000000000000..67bf5c8968ff --- /dev/null +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/getchatappconfig/SyncGetChatAppConfigString.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.gsuiteaddons.v1.samples; + +// [START gsuiteaddons_v1_generated_GSuiteAddOns_GetChatAppConfig_String_sync] +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfigName; +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; + +public class SyncGetChatAppConfigString { + + public static void main(String[] args) throws Exception { + syncGetChatAppConfigString(); + } + + public static void syncGetChatAppConfigString() 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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { + String name = ChatAppConfigName.of("[PROJECT]").toString(); + ChatAppConfig response = gSuiteAddOnsClient.getChatAppConfig(name); + } + } +} +// [END gsuiteaddons_v1_generated_GSuiteAddOns_GetChatAppConfig_String_sync] diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/AsyncUpdateChatAppConfig.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/AsyncUpdateChatAppConfig.java new file mode 100644 index 000000000000..bf87821ffce7 --- /dev/null +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/AsyncUpdateChatAppConfig.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.gsuiteaddons.v1.samples; + +// [START gsuiteaddons_v1_generated_GSuiteAddOns_UpdateChatAppConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; +import com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateChatAppConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateChatAppConfig(); + } + + public static void asyncUpdateChatAppConfig() 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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { + UpdateChatAppConfigRequest request = + UpdateChatAppConfigRequest.newBuilder() + .setChatAppConfig(ChatAppConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + gSuiteAddOnsClient.updateChatAppConfigCallable().futureCall(request); + // Do something. + ChatAppConfig response = future.get(); + } + } +} +// [END gsuiteaddons_v1_generated_GSuiteAddOns_UpdateChatAppConfig_async] diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/SyncUpdateChatAppConfig.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/SyncUpdateChatAppConfig.java new file mode 100644 index 000000000000..9f0f66c30d49 --- /dev/null +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/SyncUpdateChatAppConfig.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.gsuiteaddons.v1.samples; + +// [START gsuiteaddons_v1_generated_GSuiteAddOns_UpdateChatAppConfig_sync] +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; +import com.google.cloud.gsuiteaddons.v1.UpdateChatAppConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateChatAppConfig { + + public static void main(String[] args) throws Exception { + syncUpdateChatAppConfig(); + } + + public static void syncUpdateChatAppConfig() 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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { + UpdateChatAppConfigRequest request = + UpdateChatAppConfigRequest.newBuilder() + .setChatAppConfig(ChatAppConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ChatAppConfig response = gSuiteAddOnsClient.updateChatAppConfig(request); + } + } +} +// [END gsuiteaddons_v1_generated_GSuiteAddOns_UpdateChatAppConfig_sync] diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/SyncUpdateChatAppConfigChatappconfigFieldmask.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/SyncUpdateChatAppConfigChatappconfigFieldmask.java new file mode 100644 index 000000000000..db6054224364 --- /dev/null +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddons/updatechatappconfig/SyncUpdateChatAppConfigChatappconfigFieldmask.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.gsuiteaddons.v1.samples; + +// [START gsuiteaddons_v1_generated_GSuiteAddOns_UpdateChatAppConfig_ChatappconfigFieldmask_sync] +import com.google.cloud.gsuiteaddons.v1.ChatAppConfig; +import com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateChatAppConfigChatappconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateChatAppConfigChatappconfigFieldmask(); + } + + public static void syncUpdateChatAppConfigChatappconfigFieldmask() 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 (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { + ChatAppConfig chatAppConfig = ChatAppConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ChatAppConfig response = gSuiteAddOnsClient.updateChatAppConfig(chatAppConfig, updateMask); + } + } +} +// [END gsuiteaddons_v1_generated_GSuiteAddOns_UpdateChatAppConfig_ChatappconfigFieldmask_sync] diff --git a/java-health/README.md b/java-health/README.md index 8db1f43be2c4..b4e2dff4a353 100644 --- a/java-health/README.md +++ b/java-health/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-health - 0.11.0 + 0.12.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-health' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-health:0.11.0' +implementation 'com.google.cloud:google-cloud-health:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-health" % "0.11.0" +libraryDependencies += "com.google.cloud" % "google-cloud-health" % "0.12.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-health/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-health.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-health/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-health/0.12.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-hypercomputecluster/README.md b/java-hypercomputecluster/README.md index cf6ab270ae27..b032167ab8a3 100644 --- a/java-hypercomputecluster/README.md +++ b/java-hypercomputecluster/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-hypercomputecluster - 0.22.0 + 0.23.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-hypercomputecluster' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.22.0' +implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.23.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/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-hypercomputecluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.23.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-iam-admin/README.md b/java-iam-admin/README.md index 6f629945fbb5..71765b145055 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.97.0 + 3.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-iam-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.97.0' +implementation 'com.google.cloud:google-iam-admin:3.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.97.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-iam-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.98.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-iam-policy/README.md b/java-iam-policy/README.md index edea210fdfbd..a21166bf0fa5 100644 --- a/java-iam-policy/README.md +++ b/java-iam-policy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-iam-policy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.99.0' +implementation 'com.google.cloud:google-iam-policy:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/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-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.100.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-iamcredentials/README.md b/java-iamcredentials/README.md index 70b0c07d81f7..c3a81e77c2d7 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iamcredentials' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.102.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iamcredentials/latest/overview [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-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.103.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-iap/README.md b/java-iap/README.md index 020bdbff6a64..30f51d151f2a 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.58.0 + 0.59.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iap' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.58.0' +implementation 'com.google.cloud:google-cloud-iap:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.59.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview [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-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.59.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-ids/README.md b/java-ids/README.md index 4854cfb1cfa7..e5311b6adb56 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-ids' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.101.0' +implementation 'com.google.cloud:google-cloud-ids:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ids/latest/overview [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-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.102.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-infra-manager/README.md b/java-infra-manager/README.md index b85ad2a7d63c..0540f9e5491c 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.79.0 + 0.80.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-infra-manager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.79.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.80.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-infra-manager/latest/overview [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-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.80.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-iot/README.md b/java-iot/README.md index 01890d616d76..0daa5f41c418 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iot' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.102.0' +implementation 'com.google.cloud:google-cloud-iot:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iot/latest/overview [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-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.103.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-kms/README.md b/java-kms/README.md index aff761df8f27..5c22a33683a4 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.105.0 + 2.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-kms' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.105.0' +implementation 'com.google.cloud:google-cloud-kms:2.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kms/latest/overview [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-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.106.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-kmsinventory/README.md b/java-kmsinventory/README.md index 50ebe0bc4b46..5635ba56c7e6 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.91.0 + 0.92.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-kmsinventory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.91.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.92.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kmsinventory/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-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.92.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-language/README.md b/java-language/README.md index 2d8c35444cbb..d792cb360af1 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-language' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.103.0' +implementation 'com.google.cloud:google-cloud-language:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.104.0" ``` ## Authentication @@ -214,7 +214,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-language/latest/overview [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-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.104.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-licensemanager/README.md b/java-licensemanager/README.md index d64de9eda643..f0597c8df6e5 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-licensemanager - 0.35.0 + 0.36.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-licensemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-licensemanager:0.35.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.36.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/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-licensemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.36.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-life-sciences/README.md b/java-life-sciences/README.md index 790eae9078de..9e5d8b97b794 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.104.0 + 0.105.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-life-sciences' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.104.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.105.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-life-sciences/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-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.105.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-locationfinder/README.md b/java-locationfinder/README.md index 33c3e5d39216..06a4e6fb033c 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-locationfinder - 0.27.0 + 0.28.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-locationfinder' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-locationfinder:0.27.0' +implementation 'com.google.cloud:google-cloud-locationfinder:0.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.27.0" +libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.28.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/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-locationfinder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.28.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-logging/README.md b/java-logging/README.md index 0b63e6560186..9b9c1059767f 100644 --- a/java-logging/README.md +++ b/java-logging/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-logging - 3.43.0 + 3.44.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-logging' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-logging:3.43.0' +implementation 'com.google.cloud:google-cloud-logging:3.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.44.0" ``` ## Authentication @@ -440,7 +440,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-logging/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-logging.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.44.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-lustre/README.md b/java-lustre/README.md index f77caac8d68a..f8e1d72cbaa4 100644 --- a/java-lustre/README.md +++ b/java-lustre/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-lustre - 0.42.0 + 0.43.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-lustre' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.42.0' +implementation 'com.google.cloud:google-cloud-lustre:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.43.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-lustre/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-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.43.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-maintenance/README.md b/java-maintenance/README.md index 1bee6c2e3226..037901a63ff9 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-maintenance - 0.36.0 + 0.37.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-maintenance' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.36.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.37.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/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-maintenance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.37.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-managed-identities/README.md b/java-managed-identities/README.md index d0c4f35ca1e4..4a488e7afd56 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-managed-identities' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.100.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managed-identities/latest/overview [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-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.101.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-managedkafka/README.md b/java-managedkafka/README.md index 66e1fa17a28e..e07293c2437b 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.58.0 + 0.59.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-managedkafka' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.58.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.59.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/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-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.59.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-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 48369f270a3d..208180d568a0 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-addressvalidation - 0.96.0 + 0.97.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.96.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.96.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.97.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-addressvalidation/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.97.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-maps-area-insights/README.md b/java-maps-area-insights/README.md index 0ecf5edb81ef..08f36a3a4819 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-area-insights - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.53.0' +implementation 'com.google.maps:google-maps-area-insights:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.53.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.54.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.54.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-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index 820ee8e3ed50..bc1db21f9b25 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine-delivery - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.49.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.49.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.50.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.50.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-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index 659b991451df..ac88019b27f0 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.49.0' +implementation 'com.google.maps:google-maps-fleetengine:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.49.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.50.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.50.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-maps-geocode/README.md b/java-maps-geocode/README.md index bc17ecdb7396..0ca4f25b15c7 100644 --- a/java-maps-geocode/README.md +++ b/java-maps-geocode/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-geocode - 0.14.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-geocode:0.14.0' +implementation 'com.google.maps:google-maps-geocode:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.14.0" +libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.15.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-geocode/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-geocode.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.15.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-maps-isochrones/README.md b/java-maps-isochrones/README.md index 21fd28c13ca5..fac83d4a70dc 100644 --- a/java-maps-isochrones/README.md +++ b/java-maps-isochrones/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-isochrones - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-isochrones:0.8.0' +implementation 'com.google.maps:google-maps-isochrones:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-isochrones" % "0.8.0" +libraryDependencies += "com.google.maps" % "google-maps-isochrones" % "0.9.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-isochrones/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-isochrones.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-isochrones/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-isochrones/0.9.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-maps-mapmanagement/README.md b/java-maps-mapmanagement/README.md index b63a1a32e453..b2ffdc4c15c5 100644 --- a/java-maps-mapmanagement/README.md +++ b/java-maps-mapmanagement/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapmanagement - 0.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapmanagement:0.11.0' +implementation 'com.google.maps:google-maps-mapmanagement:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "0.11.0" +libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "0.12.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapmanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/0.12.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-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index c9e07eb072c5..d5fa447a929c 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapsplatformdatasets - 0.91.0 + 0.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.91.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.91.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.92.0" ``` ## Authentication @@ -156,7 +156,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapsplatformdatasets/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.92.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-maps-navconnect/README.md b/java-maps-navconnect/README.md index d0dce0f450a1..d70847b094f2 100644 --- a/java-maps-navconnect/README.md +++ b/java-maps-navconnect/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-navconnect - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-navconnect:0.8.0' +implementation 'com.google.maps:google-maps-navconnect:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-navconnect" % "0.8.0" +libraryDependencies += "com.google.maps" % "google-maps-navconnect" % "0.9.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-navconnect/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-navconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-navconnect/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-navconnect/0.9.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-maps-places/README.md b/java-maps-places/README.md index 1ed05fc1e8b0..7b96a7d65dec 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-places - 0.73.0 + 0.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.73.0' +implementation 'com.google.maps:google-maps-places:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.73.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.74.0" ``` ## Authentication @@ -161,7 +161,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-places/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.74.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-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index 559fe75c514d..607ce6d5bca0 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routeoptimization - 0.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.60.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.60.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.61.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.61.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-maps-routing/README.md b/java-maps-routing/README.md index 87c104ad55cd..791d0602396c 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routing - 1.87.0 + 1.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.87.0' +implementation 'com.google.maps:google-maps-routing:1.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.87.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.88.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routing/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.88.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-maps-solar/README.md b/java-maps-solar/README.md index 547c07e90b93..a3c715ee50f1 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-solar - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.61.0' +implementation 'com.google.maps:google-maps-solar:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.61.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.62.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-solar/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.62.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-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index cf9115d30afd..60d77f45b283 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.ads-marketingplatform admin - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.51.0' +implementation 'com.google.ads-marketingplatform:admin:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.51.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.52.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.52.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-mediatranslation/README.md b/java-mediatranslation/README.md index 38a1e7d0981b..12970fab03c1 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.108.0 + 0.109.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-mediatranslation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.108.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.109.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.108.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.109.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-mediatranslation/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-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.108.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.109.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-meet/README.md b/java-meet/README.md index 199ca1375000..b5ee336dd944 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.69.0 + 0.70.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-meet' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.69.0' +implementation 'com.google.cloud:google-cloud-meet:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.70.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-meet/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-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.70.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-memcache/README.md b/java-memcache/README.md index db17ff570d20..08fd9047c459 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-memcache' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.102.0' +implementation 'com.google.cloud:google-cloud-memcache:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memcache/latest/overview [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-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.103.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-migrationcenter/README.md b/java-migrationcenter/README.md index 5e25d638cde7..4e8b832f965f 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.84.0 + 0.85.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-migrationcenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.84.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.85.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-migrationcenter/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-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.85.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-modelarmor/README.md b/java-modelarmor/README.md index eb798ed23508..25a9d34d0640 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-modelarmor - 0.43.0 + 0.44.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-modelarmor' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.43.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.44.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/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-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.44.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-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index ca28b7d0de97..eb99646a85d5 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-monitoring-dashboard' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.104.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-dashboard/latest/overview [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-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.105.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-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 7cd3d1c6979b..8bd6fc6b2d20 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.96.0 + 0.97.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-monitoring-metricsscope' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.96.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.97.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-metricsscope/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-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.97.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-monitoring/README.md b/java-monitoring/README.md index 7e5ce57b8151..390de4b52fe9 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.103.0 + 3.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-monitoring' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.103.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring/latest/overview [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-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.104.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-netapp/README.md b/java-netapp/README.md index 42aab28c641d..87c1ad1e815d 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.81.0 + 0.82.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-netapp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.81.0' +implementation 'com.google.cloud:google-cloud-netapp:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.82.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-netapp/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-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.82.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-network-management/README.md b/java-network-management/README.md index 00a0d6225acf..f87aeb8a5cc3 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.103.0 + 1.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-network-management' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.103.0' +implementation 'com.google.cloud:google-cloud-network-management:1.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-management/latest/overview [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-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.104.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-network-security/README.md b/java-network-security/README.md index 54a5b754e453..d0999a5caf6c 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.105.0 + 0.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-network-security' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.105.0' +implementation 'com.google.cloud:google-cloud-network-security:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-security/latest/overview [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-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.106.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-networkconnectivity/README.md b/java-networkconnectivity/README.md index 522110cc7284..8489debaeb00 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-networkconnectivity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.101.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/overview [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-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.102.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-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java index 9436644bba05..7853c5ff85c3 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java @@ -541,6 +541,104 @@ * * * + *

CreateGatewayAdvertisedRoute + *

Create a GatewayAdvertisedRoute + * + *

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

+ *
    + *
  • createGatewayAdvertisedRouteAsync(CreateGatewayAdvertisedRouteRequest request) + *

+ *

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

+ *
    + *
  • createGatewayAdvertisedRouteAsync(SpokeName parent, GatewayAdvertisedRoute gatewayAdvertisedRoute, String gatewayAdvertisedRouteId) + *

  • createGatewayAdvertisedRouteAsync(String parent, GatewayAdvertisedRoute gatewayAdvertisedRoute, String gatewayAdvertisedRouteId) + *

+ *

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

+ *
    + *
  • createGatewayAdvertisedRouteOperationCallable() + *

  • createGatewayAdvertisedRouteCallable() + *

+ * + * + * + *

GetGatewayAdvertisedRoute + *

Get a GatewayAdvertisedRoute + * + *

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

+ *
    + *
  • getGatewayAdvertisedRoute(GetGatewayAdvertisedRouteRequest request) + *

+ *

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

+ *
    + *
  • getGatewayAdvertisedRoute(GatewayAdvertisedRouteName name) + *

  • getGatewayAdvertisedRoute(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.

+ *
    + *
  • getGatewayAdvertisedRouteCallable() + *

+ * + * + * + *

ListGatewayAdvertisedRoutes + *

List GatewayAdvertisedRoutes + * + *

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

+ *
    + *
  • listGatewayAdvertisedRoutes(ListGatewayAdvertisedRoutesRequest request) + *

+ *

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

+ *
    + *
  • listGatewayAdvertisedRoutes(SpokeName parent) + *

  • listGatewayAdvertisedRoutes(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.

+ *
    + *
  • listGatewayAdvertisedRoutesPagedCallable() + *

  • listGatewayAdvertisedRoutesCallable() + *

+ * + * + * + *

UpdateGatewayAdvertisedRoute + *

Update a GatewayAdvertisedRoute + * + *

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

+ *
    + *
  • updateGatewayAdvertisedRouteAsync(UpdateGatewayAdvertisedRouteRequest request) + *

+ *

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

+ *
    + *
  • updateGatewayAdvertisedRouteAsync(GatewayAdvertisedRoute gatewayAdvertisedRoute, 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.

+ *
    + *
  • updateGatewayAdvertisedRouteOperationCallable() + *

  • updateGatewayAdvertisedRouteCallable() + *

+ * + * + * + *

DeleteGatewayAdvertisedRoute + *

Delete a GatewayAdvertisedRoute + * + *

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

+ *
    + *
  • deleteGatewayAdvertisedRouteAsync(DeleteGatewayAdvertisedRouteRequest request) + *

+ *

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

+ *
    + *
  • deleteGatewayAdvertisedRouteAsync(GatewayAdvertisedRouteName name) + *

  • deleteGatewayAdvertisedRouteAsync(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.

+ *
    + *
  • deleteGatewayAdvertisedRouteOperationCallable() + *

  • deleteGatewayAdvertisedRouteCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -4353,7 +4451,7 @@ public final UnaryCallable updateGroupCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Create a GatewayAdvertisedRoute * *

Sample code: * @@ -4364,29 +4462,39 @@ public final UnaryCallable updateGroupCallable() * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (Location element : hubServiceClient.listLocations(request).iterateAll()) { - * // doThingsWith(element); - * } + * SpokeName parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]"); + * GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + * String gatewayAdvertisedRouteId = "gatewayAdvertisedRouteId1531070339"; + * GatewayAdvertisedRoute response = + * hubServiceClient + * .createGatewayAdvertisedRouteAsync( + * parent, gatewayAdvertisedRoute, gatewayAdvertisedRouteId) + * .get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource. + * @param gatewayAdvertisedRoute Required. Initial values for the new gateway advertised route. + * @param gatewayAdvertisedRouteId Required. Unique id for the route to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final OperationFuture + createGatewayAdvertisedRouteAsync( + @Nullable SpokeName parent, + GatewayAdvertisedRoute gatewayAdvertisedRoute, + String gatewayAdvertisedRouteId) { + CreateGatewayAdvertisedRouteRequest request = + CreateGatewayAdvertisedRouteRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGatewayAdvertisedRoute(gatewayAdvertisedRoute) + .setGatewayAdvertisedRouteId(gatewayAdvertisedRouteId) + .build(); + return createGatewayAdvertisedRouteAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Create a GatewayAdvertisedRoute * *

Sample code: * @@ -4397,30 +4505,39 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * hubServiceClient.listLocationsPagedCallable().futureCall(request); - * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString(); + * GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + * String gatewayAdvertisedRouteId = "gatewayAdvertisedRouteId1531070339"; + * GatewayAdvertisedRoute response = + * hubServiceClient + * .createGatewayAdvertisedRouteAsync( + * parent, gatewayAdvertisedRoute, gatewayAdvertisedRouteId) + * .get(); * } * } + * + * @param parent Required. The parent resource. + * @param gatewayAdvertisedRoute Required. Initial values for the new gateway advertised route. + * @param gatewayAdvertisedRouteId Required. Unique id for the route to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final OperationFuture + createGatewayAdvertisedRouteAsync( + String parent, + GatewayAdvertisedRoute gatewayAdvertisedRoute, + String gatewayAdvertisedRouteId) { + CreateGatewayAdvertisedRouteRequest request = + CreateGatewayAdvertisedRouteRequest.newBuilder() + .setParent(parent) + .setGatewayAdvertisedRoute(gatewayAdvertisedRoute) + .setGatewayAdvertisedRouteId(gatewayAdvertisedRouteId) + .build(); + return createGatewayAdvertisedRouteAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Create a GatewayAdvertisedRoute * *

Sample code: * @@ -4431,35 +4548,29 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateGatewayAdvertisedRouteRequest request = + * CreateGatewayAdvertisedRouteRequest.newBuilder() + * .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + * .setGatewayAdvertisedRouteId("gatewayAdvertisedRouteId1531070339") + * .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListLocationsResponse response = hubServiceClient.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; - * } - * } + * GatewayAdvertisedRoute response = + * hubServiceClient.createGatewayAdvertisedRouteAsync(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 UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final OperationFuture + createGatewayAdvertisedRouteAsync(CreateGatewayAdvertisedRouteRequest request) { + return createGatewayAdvertisedRouteOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Create a GatewayAdvertisedRoute * *

Sample code: * @@ -4470,21 +4581,29 @@ public final UnaryCallable listLoca * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = hubServiceClient.getLocation(request); + * CreateGatewayAdvertisedRouteRequest request = + * CreateGatewayAdvertisedRouteRequest.newBuilder() + * .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + * .setGatewayAdvertisedRouteId("gatewayAdvertisedRouteId1531070339") + * .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * OperationFuture future = + * hubServiceClient.createGatewayAdvertisedRouteOperationCallable().futureCall(request); + * // Do something. + * GatewayAdvertisedRoute response = future.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 Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final OperationCallable< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationCallable() { + return stub.createGatewayAdvertisedRouteOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Create a GatewayAdvertisedRoute * *

Sample code: * @@ -4495,22 +4614,28 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = hubServiceClient.getLocationCallable().futureCall(request); + * CreateGatewayAdvertisedRouteRequest request = + * CreateGatewayAdvertisedRouteRequest.newBuilder() + * .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + * .setGatewayAdvertisedRouteId("gatewayAdvertisedRouteId1531070339") + * .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture future = + * hubServiceClient.createGatewayAdvertisedRouteCallable().futureCall(request); * // Do something. - * Location response = future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final UnaryCallable + createGatewayAdvertisedRouteCallable() { + return stub.createGatewayAdvertisedRouteCallable(); } // 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. + * Get a GatewayAdvertisedRoute * *

Sample code: * @@ -4521,28 +4646,28 @@ public final UnaryCallable getLocationCallable() { * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * Policy response = hubServiceClient.setIamPolicy(request); + * GatewayAdvertisedRouteName name = + * GatewayAdvertisedRouteName.of( + * "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]"); + * GatewayAdvertisedRoute response = hubServiceClient.getGatewayAdvertisedRoute(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the gateway advertised route to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final GatewayAdvertisedRoute getGatewayAdvertisedRoute( + @Nullable GatewayAdvertisedRouteName name) { + GetGatewayAdvertisedRouteRequest request = + GetGatewayAdvertisedRouteRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getGatewayAdvertisedRoute(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. + * Get a GatewayAdvertisedRoute * *

Sample code: * @@ -4553,26 +4678,26 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ApiFuture future = hubServiceClient.setIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * String name = + * GatewayAdvertisedRouteName.of( + * "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + * .toString(); + * GatewayAdvertisedRoute response = hubServiceClient.getGatewayAdvertisedRoute(name); * } * } + * + * @param name Required. The name of the gateway advertised route to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final GatewayAdvertisedRoute getGatewayAdvertisedRoute(String name) { + GetGatewayAdvertisedRouteRequest request = + GetGatewayAdvertisedRouteRequest.newBuilder().setName(name).build(); + return getGatewayAdvertisedRoute(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. + * Get a GatewayAdvertisedRoute * *

Sample code: * @@ -4583,26 +4708,28 @@ public final UnaryCallable setIamPolicyCallable() { * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * GetGatewayAdvertisedRouteRequest request = + * GetGatewayAdvertisedRouteRequest.newBuilder() + * .setName( + * GatewayAdvertisedRouteName.of( + * "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + * .toString()) * .build(); - * Policy response = hubServiceClient.getIamPolicy(request); + * GatewayAdvertisedRoute response = hubServiceClient.getGatewayAdvertisedRoute(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); + public final GatewayAdvertisedRoute getGatewayAdvertisedRoute( + GetGatewayAdvertisedRouteRequest request) { + return getGatewayAdvertisedRouteCallable().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. + * Get a GatewayAdvertisedRoute * *

Sample code: * @@ -4613,29 +4740,28 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * GetGatewayAdvertisedRouteRequest request = + * GetGatewayAdvertisedRouteRequest.newBuilder() + * .setName( + * GatewayAdvertisedRouteName.of( + * "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + * .toString()) * .build(); - * ApiFuture future = hubServiceClient.getIamPolicyCallable().futureCall(request); + * ApiFuture future = + * hubServiceClient.getGatewayAdvertisedRouteCallable().futureCall(request); * // Do something. - * Policy response = future.get(); + * GatewayAdvertisedRoute response = future.get(); * } * } */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); + public final UnaryCallable + getGatewayAdvertisedRouteCallable() { + return stub.getGatewayAdvertisedRouteCallable(); } // 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. + * List GatewayAdvertisedRoutes * *

Sample code: * @@ -4646,30 +4772,29 @@ public final UnaryCallable getIamPolicyCallable() { * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) - * .addAllPermissions(new ArrayList()) - * .build(); - * TestIamPermissionsResponse response = hubServiceClient.testIamPermissions(request); + * SpokeName parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]"); + * for (GatewayAdvertisedRoute element : + * hubServiceClient.listGatewayAdvertisedRoutes(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); + public final ListGatewayAdvertisedRoutesPagedResponse listGatewayAdvertisedRoutes( + @Nullable SpokeName parent) { + ListGatewayAdvertisedRoutesRequest request = + ListGatewayAdvertisedRoutesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGatewayAdvertisedRoutes(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. + * List GatewayAdvertisedRoutes * *

Sample code: * @@ -4680,35 +4805,796 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * // - It may require 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) - * .addAllPermissions(new ArrayList()) - * .build(); - * ApiFuture future = - * hubServiceClient.testIamPermissionsCallable().futureCall(request); - * // Do something. - * TestIamPermissionsResponse response = future.get(); + * String parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString(); + * for (GatewayAdvertisedRoute element : + * hubServiceClient.listGatewayAdvertisedRoutes(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The parent resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); + public final ListGatewayAdvertisedRoutesPagedResponse listGatewayAdvertisedRoutes(String parent) { + ListGatewayAdvertisedRoutesRequest request = + ListGatewayAdvertisedRoutesRequest.newBuilder().setParent(parent).build(); + return listGatewayAdvertisedRoutes(request); } - @Override - public boolean isShutdown() { + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List GatewayAdvertisedRoutes + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   ListGatewayAdvertisedRoutesRequest request =
+   *       ListGatewayAdvertisedRoutesRequest.newBuilder()
+   *           .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (GatewayAdvertisedRoute element :
+   *       hubServiceClient.listGatewayAdvertisedRoutes(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 ListGatewayAdvertisedRoutesPagedResponse listGatewayAdvertisedRoutes( + ListGatewayAdvertisedRoutesRequest request) { + return listGatewayAdvertisedRoutesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List GatewayAdvertisedRoutes + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   ListGatewayAdvertisedRoutesRequest request =
+   *       ListGatewayAdvertisedRoutesRequest.newBuilder()
+   *           .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       hubServiceClient.listGatewayAdvertisedRoutesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (GatewayAdvertisedRoute element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesPagedResponse> + listGatewayAdvertisedRoutesPagedCallable() { + return stub.listGatewayAdvertisedRoutesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List GatewayAdvertisedRoutes + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   ListGatewayAdvertisedRoutesRequest request =
+   *       ListGatewayAdvertisedRoutesRequest.newBuilder()
+   *           .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListGatewayAdvertisedRoutesResponse response =
+   *         hubServiceClient.listGatewayAdvertisedRoutesCallable().call(request);
+   *     for (GatewayAdvertisedRoute element : response.getGatewayAdvertisedRoutesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesResponse> + listGatewayAdvertisedRoutesCallable() { + return stub.listGatewayAdvertisedRoutesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   GatewayAdvertisedRoute response =
+   *       hubServiceClient
+   *           .updateGatewayAdvertisedRouteAsync(gatewayAdvertisedRoute, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param gatewayAdvertisedRoute Required. The gateway advertised route to update. + *

The gateway advertised route's `name` field is used to identify the gateway advertised + * route to update. Format: + * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}` + * @param updateMask Optional. In the case of an update to an existing group, field mask is used + * to specify the fields to be overwritten. The fields specified in the update_mask are + * relative to the resource, not the full request. A field is overwritten if it is in the + * mask. If the user does not provide a mask, then all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateGatewayAdvertisedRouteAsync( + GatewayAdvertisedRoute gatewayAdvertisedRoute, FieldMask updateMask) { + UpdateGatewayAdvertisedRouteRequest request = + UpdateGatewayAdvertisedRouteRequest.newBuilder() + .setGatewayAdvertisedRoute(gatewayAdvertisedRoute) + .setUpdateMask(updateMask) + .build(); + return updateGatewayAdvertisedRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   UpdateGatewayAdvertisedRouteRequest request =
+   *       UpdateGatewayAdvertisedRouteRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   GatewayAdvertisedRoute response =
+   *       hubServiceClient.updateGatewayAdvertisedRouteAsync(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 + updateGatewayAdvertisedRouteAsync(UpdateGatewayAdvertisedRouteRequest request) { + return updateGatewayAdvertisedRouteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   UpdateGatewayAdvertisedRouteRequest request =
+   *       UpdateGatewayAdvertisedRouteRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       hubServiceClient.updateGatewayAdvertisedRouteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   GatewayAdvertisedRoute response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationCallable() { + return stub.updateGatewayAdvertisedRouteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   UpdateGatewayAdvertisedRouteRequest request =
+   *       UpdateGatewayAdvertisedRouteRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       hubServiceClient.updateGatewayAdvertisedRouteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateGatewayAdvertisedRouteCallable() { + return stub.updateGatewayAdvertisedRouteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   GatewayAdvertisedRouteName name =
+   *       GatewayAdvertisedRouteName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]");
+   *   hubServiceClient.deleteGatewayAdvertisedRouteAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the gateway advertised route to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGatewayAdvertisedRouteAsync( + @Nullable GatewayAdvertisedRouteName name) { + DeleteGatewayAdvertisedRouteRequest request = + DeleteGatewayAdvertisedRouteRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteGatewayAdvertisedRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   String name =
+   *       GatewayAdvertisedRouteName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]")
+   *           .toString();
+   *   hubServiceClient.deleteGatewayAdvertisedRouteAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the gateway advertised route to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGatewayAdvertisedRouteAsync( + String name) { + DeleteGatewayAdvertisedRouteRequest request = + DeleteGatewayAdvertisedRouteRequest.newBuilder().setName(name).build(); + return deleteGatewayAdvertisedRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   DeleteGatewayAdvertisedRouteRequest request =
+   *       DeleteGatewayAdvertisedRouteRequest.newBuilder()
+   *           .setName(
+   *               GatewayAdvertisedRouteName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   hubServiceClient.deleteGatewayAdvertisedRouteAsync(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 deleteGatewayAdvertisedRouteAsync( + DeleteGatewayAdvertisedRouteRequest request) { + return deleteGatewayAdvertisedRouteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   DeleteGatewayAdvertisedRouteRequest request =
+   *       DeleteGatewayAdvertisedRouteRequest.newBuilder()
+   *           .setName(
+   *               GatewayAdvertisedRouteName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       hubServiceClient.deleteGatewayAdvertisedRouteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteGatewayAdvertisedRouteOperationCallable() { + return stub.deleteGatewayAdvertisedRouteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a GatewayAdvertisedRoute + * + *

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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   DeleteGatewayAdvertisedRouteRequest request =
+   *       DeleteGatewayAdvertisedRouteRequest.newBuilder()
+   *           .setName(
+   *               GatewayAdvertisedRouteName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       hubServiceClient.deleteGatewayAdvertisedRouteCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteGatewayAdvertisedRouteCallable() { + return stub.deleteGatewayAdvertisedRouteCallable(); + } + + // 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = hubServiceClient.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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       hubServiceClient.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(); } @@ -5247,6 +6133,106 @@ protected ListGroupsFixedSizeCollection createCollection( } } + public static class ListGatewayAdvertisedRoutesPagedResponse + extends AbstractPagedListResponse< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute, + ListGatewayAdvertisedRoutesPage, + ListGatewayAdvertisedRoutesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGatewayAdvertisedRoutesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGatewayAdvertisedRoutesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGatewayAdvertisedRoutesPagedResponse(ListGatewayAdvertisedRoutesPage page) { + super(page, ListGatewayAdvertisedRoutesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGatewayAdvertisedRoutesPage + extends AbstractPage< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute, + ListGatewayAdvertisedRoutesPage> { + + private ListGatewayAdvertisedRoutesPage( + @Nullable + PageContext< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute> + context, + @Nullable ListGatewayAdvertisedRoutesResponse response) { + super(context, response); + } + + private static ListGatewayAdvertisedRoutesPage createEmptyPage() { + return new ListGatewayAdvertisedRoutesPage(null, null); + } + + @Override + protected ListGatewayAdvertisedRoutesPage createPage( + @Nullable + PageContext< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute> + context, + @Nullable ListGatewayAdvertisedRoutesResponse response) { + return new ListGatewayAdvertisedRoutesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGatewayAdvertisedRoutesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute, + ListGatewayAdvertisedRoutesPage, + ListGatewayAdvertisedRoutesFixedSizeCollection> { + + private ListGatewayAdvertisedRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGatewayAdvertisedRoutesFixedSizeCollection createEmptyCollection() { + return new ListGatewayAdvertisedRoutesFixedSizeCollection(null, 0); + } + + @Override + protected ListGatewayAdvertisedRoutesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListGatewayAdvertisedRoutesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 889eecb6bb8b..92304e01ea04 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.networkconnectivity.v1; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGatewayAdvertisedRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGroupsPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubSpokesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubsPagedResponse; @@ -325,6 +326,62 @@ public UnaryCallSettings updateGroupSettings() { return ((HubServiceStubSettings) getStubSettings()).updateGroupOperationSettings(); } + /** Returns the object with the settings used for calls to createGatewayAdvertisedRoute. */ + public UnaryCallSettings + createGatewayAdvertisedRouteSettings() { + return ((HubServiceStubSettings) getStubSettings()).createGatewayAdvertisedRouteSettings(); + } + + /** Returns the object with the settings used for calls to createGatewayAdvertisedRoute. */ + public OperationCallSettings< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationSettings() { + return ((HubServiceStubSettings) getStubSettings()) + .createGatewayAdvertisedRouteOperationSettings(); + } + + /** Returns the object with the settings used for calls to getGatewayAdvertisedRoute. */ + public UnaryCallSettings + getGatewayAdvertisedRouteSettings() { + return ((HubServiceStubSettings) getStubSettings()).getGatewayAdvertisedRouteSettings(); + } + + /** Returns the object with the settings used for calls to listGatewayAdvertisedRoutes. */ + public PagedCallSettings< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + ListGatewayAdvertisedRoutesPagedResponse> + listGatewayAdvertisedRoutesSettings() { + return ((HubServiceStubSettings) getStubSettings()).listGatewayAdvertisedRoutesSettings(); + } + + /** Returns the object with the settings used for calls to updateGatewayAdvertisedRoute. */ + public UnaryCallSettings + updateGatewayAdvertisedRouteSettings() { + return ((HubServiceStubSettings) getStubSettings()).updateGatewayAdvertisedRouteSettings(); + } + + /** Returns the object with the settings used for calls to updateGatewayAdvertisedRoute. */ + public OperationCallSettings< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationSettings() { + return ((HubServiceStubSettings) getStubSettings()) + .updateGatewayAdvertisedRouteOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteGatewayAdvertisedRoute. */ + public UnaryCallSettings + deleteGatewayAdvertisedRouteSettings() { + return ((HubServiceStubSettings) getStubSettings()).deleteGatewayAdvertisedRouteSettings(); + } + + /** Returns the object with the settings used for calls to deleteGatewayAdvertisedRoute. */ + public OperationCallSettings + deleteGatewayAdvertisedRouteOperationSettings() { + return ((HubServiceStubSettings) getStubSettings()) + .deleteGatewayAdvertisedRouteOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -644,6 +701,60 @@ public UnaryCallSettings.Builder updateGroupSetti return getStubSettingsBuilder().updateGroupOperationSettings(); } + /** Returns the builder for the settings used for calls to createGatewayAdvertisedRoute. */ + public UnaryCallSettings.Builder + createGatewayAdvertisedRouteSettings() { + return getStubSettingsBuilder().createGatewayAdvertisedRouteSettings(); + } + + /** Returns the builder for the settings used for calls to createGatewayAdvertisedRoute. */ + public OperationCallSettings.Builder< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationSettings() { + return getStubSettingsBuilder().createGatewayAdvertisedRouteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getGatewayAdvertisedRoute. */ + public UnaryCallSettings.Builder + getGatewayAdvertisedRouteSettings() { + return getStubSettingsBuilder().getGatewayAdvertisedRouteSettings(); + } + + /** Returns the builder for the settings used for calls to listGatewayAdvertisedRoutes. */ + public PagedCallSettings.Builder< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + ListGatewayAdvertisedRoutesPagedResponse> + listGatewayAdvertisedRoutesSettings() { + return getStubSettingsBuilder().listGatewayAdvertisedRoutesSettings(); + } + + /** Returns the builder for the settings used for calls to updateGatewayAdvertisedRoute. */ + public UnaryCallSettings.Builder + updateGatewayAdvertisedRouteSettings() { + return getStubSettingsBuilder().updateGatewayAdvertisedRouteSettings(); + } + + /** Returns the builder for the settings used for calls to updateGatewayAdvertisedRoute. */ + public OperationCallSettings.Builder< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationSettings() { + return getStubSettingsBuilder().updateGatewayAdvertisedRouteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteGatewayAdvertisedRoute. */ + public UnaryCallSettings.Builder + deleteGatewayAdvertisedRouteSettings() { + return getStubSettingsBuilder().deleteGatewayAdvertisedRouteSettings(); + } + + /** Returns the builder for the settings used for calls to deleteGatewayAdvertisedRoute. */ + public OperationCallSettings.Builder< + DeleteGatewayAdvertisedRouteRequest, Empty, OperationMetadata> + deleteGatewayAdvertisedRouteOperationSettings() { + return getStubSettingsBuilder().deleteGatewayAdvertisedRouteOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json index c6ab18262922..d5207d193635 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json @@ -154,18 +154,27 @@ "AcceptSpokeUpdate": { "methods": ["acceptSpokeUpdateAsync", "acceptSpokeUpdateAsync", "acceptSpokeUpdateAsync", "acceptSpokeUpdateAsync", "acceptSpokeUpdateAsync", "acceptSpokeUpdateOperationCallable", "acceptSpokeUpdateCallable"] }, + "CreateGatewayAdvertisedRoute": { + "methods": ["createGatewayAdvertisedRouteAsync", "createGatewayAdvertisedRouteAsync", "createGatewayAdvertisedRouteAsync", "createGatewayAdvertisedRouteOperationCallable", "createGatewayAdvertisedRouteCallable"] + }, "CreateHub": { "methods": ["createHubAsync", "createHubAsync", "createHubAsync", "createHubOperationCallable", "createHubCallable"] }, "CreateSpoke": { "methods": ["createSpokeAsync", "createSpokeAsync", "createSpokeAsync", "createSpokeOperationCallable", "createSpokeCallable"] }, + "DeleteGatewayAdvertisedRoute": { + "methods": ["deleteGatewayAdvertisedRouteAsync", "deleteGatewayAdvertisedRouteAsync", "deleteGatewayAdvertisedRouteAsync", "deleteGatewayAdvertisedRouteOperationCallable", "deleteGatewayAdvertisedRouteCallable"] + }, "DeleteHub": { "methods": ["deleteHubAsync", "deleteHubAsync", "deleteHubAsync", "deleteHubOperationCallable", "deleteHubCallable"] }, "DeleteSpoke": { "methods": ["deleteSpokeAsync", "deleteSpokeAsync", "deleteSpokeAsync", "deleteSpokeOperationCallable", "deleteSpokeCallable"] }, + "GetGatewayAdvertisedRoute": { + "methods": ["getGatewayAdvertisedRoute", "getGatewayAdvertisedRoute", "getGatewayAdvertisedRoute", "getGatewayAdvertisedRouteCallable"] + }, "GetGroup": { "methods": ["getGroup", "getGroup", "getGroup", "getGroupCallable"] }, @@ -187,6 +196,9 @@ "GetSpoke": { "methods": ["getSpoke", "getSpoke", "getSpoke", "getSpokeCallable"] }, + "ListGatewayAdvertisedRoutes": { + "methods": ["listGatewayAdvertisedRoutes", "listGatewayAdvertisedRoutes", "listGatewayAdvertisedRoutes", "listGatewayAdvertisedRoutesPagedCallable", "listGatewayAdvertisedRoutesCallable"] + }, "ListGroups": { "methods": ["listGroups", "listGroups", "listGroups", "listGroupsPagedCallable", "listGroupsCallable"] }, @@ -223,6 +235,9 @@ "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, + "UpdateGatewayAdvertisedRoute": { + "methods": ["updateGatewayAdvertisedRouteAsync", "updateGatewayAdvertisedRouteAsync", "updateGatewayAdvertisedRouteOperationCallable", "updateGatewayAdvertisedRouteCallable"] + }, "UpdateGroup": { "methods": ["updateGroupAsync", "updateGroupAsync", "updateGroupOperationCallable", "updateGroupCallable"] }, diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java index 8ab116327fe7..894b930906c8 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java @@ -16,6 +16,7 @@ package com.google.cloud.networkconnectivity.v1.stub; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGatewayAdvertisedRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGroupsPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubSpokesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubsPagedResponse; @@ -41,10 +42,14 @@ import com.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; import com.google.cloud.networkconnectivity.v1.AcceptSpokeUpdateRequest; import com.google.cloud.networkconnectivity.v1.AcceptSpokeUpdateResponse; +import com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.CreateHubRequest; import com.google.cloud.networkconnectivity.v1.CreateSpokeRequest; +import com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.DeleteHubRequest; import com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.GetGroupRequest; import com.google.cloud.networkconnectivity.v1.GetHubRequest; import com.google.cloud.networkconnectivity.v1.GetRouteRequest; @@ -52,6 +57,8 @@ import com.google.cloud.networkconnectivity.v1.GetSpokeRequest; import com.google.cloud.networkconnectivity.v1.Group; import com.google.cloud.networkconnectivity.v1.Hub; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse; import com.google.cloud.networkconnectivity.v1.ListGroupsRequest; import com.google.cloud.networkconnectivity.v1.ListGroupsResponse; import com.google.cloud.networkconnectivity.v1.ListHubSpokesRequest; @@ -74,6 +81,7 @@ import com.google.cloud.networkconnectivity.v1.Route; import com.google.cloud.networkconnectivity.v1.RouteTable; import com.google.cloud.networkconnectivity.v1.Spoke; +import com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; import com.google.cloud.networkconnectivity.v1.UpdateHubRequest; import com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest; @@ -331,6 +339,70 @@ public class GrpcHubServiceStub extends HubServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createGatewayAdvertisedRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.HubService/CreateGatewayAdvertisedRoute") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGatewayAdvertisedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getGatewayAdvertisedRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.HubService/GetGatewayAdvertisedRoute") + .setRequestMarshaller( + ProtoUtils.marshaller(GetGatewayAdvertisedRouteRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GatewayAdvertisedRoute.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesResponse> + listGatewayAdvertisedRoutesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.HubService/ListGatewayAdvertisedRoutes") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGatewayAdvertisedRoutesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGatewayAdvertisedRoutesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateGatewayAdvertisedRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.HubService/UpdateGatewayAdvertisedRoute") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateGatewayAdvertisedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteGatewayAdvertisedRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.HubService/DeleteGatewayAdvertisedRoute") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGatewayAdvertisedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -440,6 +512,28 @@ public class GrpcHubServiceStub extends HubServiceStub { private final UnaryCallable updateGroupCallable; private final OperationCallable updateGroupOperationCallable; + private final UnaryCallable + createGatewayAdvertisedRouteCallable; + private final OperationCallable< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationCallable; + private final UnaryCallable + getGatewayAdvertisedRouteCallable; + private final UnaryCallable< + ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesResponse> + listGatewayAdvertisedRoutesCallable; + private final UnaryCallable< + ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesPagedResponse> + listGatewayAdvertisedRoutesPagedCallable; + private final UnaryCallable + updateGatewayAdvertisedRouteCallable; + private final OperationCallable< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationCallable; + private final UnaryCallable + deleteGatewayAdvertisedRouteCallable; + private final OperationCallable + deleteGatewayAdvertisedRouteOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -743,6 +837,69 @@ protected GrpcHubServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + createGatewayAdvertisedRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGatewayAdvertisedRouteMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getGatewayAdvertisedRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGatewayAdvertisedRouteMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listGatewayAdvertisedRoutesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listGatewayAdvertisedRoutesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateGatewayAdvertisedRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGatewayAdvertisedRouteMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "gateway_advertised_route.name", + String.valueOf(request.getGatewayAdvertisedRoute().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteGatewayAdvertisedRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGatewayAdvertisedRouteMethodDescriptor) + .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) @@ -958,6 +1115,54 @@ protected GrpcHubServiceStub( settings.updateGroupOperationSettings(), clientContext, operationsStub); + this.createGatewayAdvertisedRouteCallable = + callableFactory.createUnaryCallable( + createGatewayAdvertisedRouteTransportSettings, + settings.createGatewayAdvertisedRouteSettings(), + clientContext); + this.createGatewayAdvertisedRouteOperationCallable = + callableFactory.createOperationCallable( + createGatewayAdvertisedRouteTransportSettings, + settings.createGatewayAdvertisedRouteOperationSettings(), + clientContext, + operationsStub); + this.getGatewayAdvertisedRouteCallable = + callableFactory.createUnaryCallable( + getGatewayAdvertisedRouteTransportSettings, + settings.getGatewayAdvertisedRouteSettings(), + clientContext); + this.listGatewayAdvertisedRoutesCallable = + callableFactory.createUnaryCallable( + listGatewayAdvertisedRoutesTransportSettings, + settings.listGatewayAdvertisedRoutesSettings(), + clientContext); + this.listGatewayAdvertisedRoutesPagedCallable = + callableFactory.createPagedCallable( + listGatewayAdvertisedRoutesTransportSettings, + settings.listGatewayAdvertisedRoutesSettings(), + clientContext); + this.updateGatewayAdvertisedRouteCallable = + callableFactory.createUnaryCallable( + updateGatewayAdvertisedRouteTransportSettings, + settings.updateGatewayAdvertisedRouteSettings(), + clientContext); + this.updateGatewayAdvertisedRouteOperationCallable = + callableFactory.createOperationCallable( + updateGatewayAdvertisedRouteTransportSettings, + settings.updateGatewayAdvertisedRouteOperationSettings(), + clientContext, + operationsStub); + this.deleteGatewayAdvertisedRouteCallable = + callableFactory.createUnaryCallable( + deleteGatewayAdvertisedRouteTransportSettings, + settings.deleteGatewayAdvertisedRouteSettings(), + clientContext); + this.deleteGatewayAdvertisedRouteOperationCallable = + callableFactory.createOperationCallable( + deleteGatewayAdvertisedRouteTransportSettings, + settings.deleteGatewayAdvertisedRouteOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1204,6 +1409,62 @@ public UnaryCallable updateGroupCallable() { return updateGroupOperationCallable; } + @Override + public UnaryCallable + createGatewayAdvertisedRouteCallable() { + return createGatewayAdvertisedRouteCallable; + } + + @Override + public OperationCallable< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationCallable() { + return createGatewayAdvertisedRouteOperationCallable; + } + + @Override + public UnaryCallable + getGatewayAdvertisedRouteCallable() { + return getGatewayAdvertisedRouteCallable; + } + + @Override + public UnaryCallable + listGatewayAdvertisedRoutesCallable() { + return listGatewayAdvertisedRoutesCallable; + } + + @Override + public UnaryCallable + listGatewayAdvertisedRoutesPagedCallable() { + return listGatewayAdvertisedRoutesPagedCallable; + } + + @Override + public UnaryCallable + updateGatewayAdvertisedRouteCallable() { + return updateGatewayAdvertisedRouteCallable; + } + + @Override + public OperationCallable< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationCallable() { + return updateGatewayAdvertisedRouteOperationCallable; + } + + @Override + public UnaryCallable + deleteGatewayAdvertisedRouteCallable() { + return deleteGatewayAdvertisedRouteCallable; + } + + @Override + public OperationCallable + deleteGatewayAdvertisedRouteOperationCallable() { + return deleteGatewayAdvertisedRouteOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java index e4ea9a6cbd47..76bfdd6530b4 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java @@ -16,6 +16,7 @@ package com.google.cloud.networkconnectivity.v1.stub; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGatewayAdvertisedRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGroupsPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubSpokesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubsPagedResponse; @@ -36,10 +37,14 @@ import com.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; import com.google.cloud.networkconnectivity.v1.AcceptSpokeUpdateRequest; import com.google.cloud.networkconnectivity.v1.AcceptSpokeUpdateResponse; +import com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.CreateHubRequest; import com.google.cloud.networkconnectivity.v1.CreateSpokeRequest; +import com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.DeleteHubRequest; import com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.GetGroupRequest; import com.google.cloud.networkconnectivity.v1.GetHubRequest; import com.google.cloud.networkconnectivity.v1.GetRouteRequest; @@ -47,6 +52,8 @@ import com.google.cloud.networkconnectivity.v1.GetSpokeRequest; import com.google.cloud.networkconnectivity.v1.Group; import com.google.cloud.networkconnectivity.v1.Hub; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse; import com.google.cloud.networkconnectivity.v1.ListGroupsRequest; import com.google.cloud.networkconnectivity.v1.ListGroupsResponse; import com.google.cloud.networkconnectivity.v1.ListHubSpokesRequest; @@ -69,6 +76,7 @@ import com.google.cloud.networkconnectivity.v1.Route; import com.google.cloud.networkconnectivity.v1.RouteTable; import com.google.cloud.networkconnectivity.v1.Spoke; +import com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; import com.google.cloud.networkconnectivity.v1.UpdateHubRequest; import com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest; @@ -276,6 +284,61 @@ public UnaryCallable updateGroupCallable() { throw new UnsupportedOperationException("Not implemented: updateGroupCallable()"); } + public OperationCallable< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createGatewayAdvertisedRouteOperationCallable()"); + } + + public UnaryCallable + createGatewayAdvertisedRouteCallable() { + throw new UnsupportedOperationException( + "Not implemented: createGatewayAdvertisedRouteCallable()"); + } + + public UnaryCallable + getGatewayAdvertisedRouteCallable() { + throw new UnsupportedOperationException("Not implemented: getGatewayAdvertisedRouteCallable()"); + } + + public UnaryCallable + listGatewayAdvertisedRoutesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listGatewayAdvertisedRoutesPagedCallable()"); + } + + public UnaryCallable + listGatewayAdvertisedRoutesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listGatewayAdvertisedRoutesCallable()"); + } + + public OperationCallable< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateGatewayAdvertisedRouteOperationCallable()"); + } + + public UnaryCallable + updateGatewayAdvertisedRouteCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateGatewayAdvertisedRouteCallable()"); + } + + public OperationCallable + deleteGatewayAdvertisedRouteOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteGatewayAdvertisedRouteOperationCallable()"); + } + + public UnaryCallable + deleteGatewayAdvertisedRouteCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteGatewayAdvertisedRouteCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java index feca7e612575..c0247128d42e 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.networkconnectivity.v1.stub; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGatewayAdvertisedRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGroupsPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubSpokesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubsPagedResponse; @@ -60,10 +61,14 @@ import com.google.cloud.networkconnectivity.v1.AcceptHubSpokeResponse; import com.google.cloud.networkconnectivity.v1.AcceptSpokeUpdateRequest; import com.google.cloud.networkconnectivity.v1.AcceptSpokeUpdateResponse; +import com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.CreateHubRequest; import com.google.cloud.networkconnectivity.v1.CreateSpokeRequest; +import com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.DeleteHubRequest; import com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.GetGroupRequest; import com.google.cloud.networkconnectivity.v1.GetHubRequest; import com.google.cloud.networkconnectivity.v1.GetRouteRequest; @@ -72,6 +77,8 @@ import com.google.cloud.networkconnectivity.v1.Group; import com.google.cloud.networkconnectivity.v1.Hub; import com.google.cloud.networkconnectivity.v1.HubStatusEntry; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse; import com.google.cloud.networkconnectivity.v1.ListGroupsRequest; import com.google.cloud.networkconnectivity.v1.ListGroupsResponse; import com.google.cloud.networkconnectivity.v1.ListHubSpokesRequest; @@ -94,6 +101,7 @@ import com.google.cloud.networkconnectivity.v1.Route; import com.google.cloud.networkconnectivity.v1.RouteTable; import com.google.cloud.networkconnectivity.v1.Spoke; +import com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest; import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; import com.google.cloud.networkconnectivity.v1.UpdateHubRequest; import com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest; @@ -257,6 +265,27 @@ public class HubServiceStubSettings extends StubSettings private final UnaryCallSettings updateGroupSettings; private final OperationCallSettings updateGroupOperationSettings; + private final UnaryCallSettings + createGatewayAdvertisedRouteSettings; + private final OperationCallSettings< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationSettings; + private final UnaryCallSettings + getGatewayAdvertisedRouteSettings; + private final PagedCallSettings< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + ListGatewayAdvertisedRoutesPagedResponse> + listGatewayAdvertisedRoutesSettings; + private final UnaryCallSettings + updateGatewayAdvertisedRouteSettings; + private final OperationCallSettings< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationSettings; + private final UnaryCallSettings + deleteGatewayAdvertisedRouteSettings; + private final OperationCallSettings + deleteGatewayAdvertisedRouteOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -509,6 +538,53 @@ public Iterable extractResources(ListGroupsResponse payload) { } }; + private static final PagedListDescriptor< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute> + LIST_GATEWAY_ADVERTISED_ROUTES_PAGE_STR_DESC = + new PagedListDescriptor< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGatewayAdvertisedRoutesRequest injectToken( + ListGatewayAdvertisedRoutesRequest payload, String token) { + return ListGatewayAdvertisedRoutesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListGatewayAdvertisedRoutesRequest injectPageSize( + ListGatewayAdvertisedRoutesRequest payload, int pageSize) { + return ListGatewayAdvertisedRoutesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListGatewayAdvertisedRoutesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGatewayAdvertisedRoutesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListGatewayAdvertisedRoutesResponse payload) { + return payload.getGatewayAdvertisedRoutesList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -663,6 +739,35 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + ListGatewayAdvertisedRoutesPagedResponse> + LIST_GATEWAY_ADVERTISED_ROUTES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + ListGatewayAdvertisedRoutesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesResponse> + callable, + ListGatewayAdvertisedRoutesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + GatewayAdvertisedRoute> + pageContext = + PageContext.create( + callable, LIST_GATEWAY_ADVERTISED_ROUTES_PAGE_STR_DESC, request, context); + return ListGatewayAdvertisedRoutesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -872,6 +977,59 @@ public UnaryCallSettings updateGroupSettings() { return updateGroupOperationSettings; } + /** Returns the object with the settings used for calls to createGatewayAdvertisedRoute. */ + public UnaryCallSettings + createGatewayAdvertisedRouteSettings() { + return createGatewayAdvertisedRouteSettings; + } + + /** Returns the object with the settings used for calls to createGatewayAdvertisedRoute. */ + public OperationCallSettings< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationSettings() { + return createGatewayAdvertisedRouteOperationSettings; + } + + /** Returns the object with the settings used for calls to getGatewayAdvertisedRoute. */ + public UnaryCallSettings + getGatewayAdvertisedRouteSettings() { + return getGatewayAdvertisedRouteSettings; + } + + /** Returns the object with the settings used for calls to listGatewayAdvertisedRoutes. */ + public PagedCallSettings< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + ListGatewayAdvertisedRoutesPagedResponse> + listGatewayAdvertisedRoutesSettings() { + return listGatewayAdvertisedRoutesSettings; + } + + /** Returns the object with the settings used for calls to updateGatewayAdvertisedRoute. */ + public UnaryCallSettings + updateGatewayAdvertisedRouteSettings() { + return updateGatewayAdvertisedRouteSettings; + } + + /** Returns the object with the settings used for calls to updateGatewayAdvertisedRoute. */ + public OperationCallSettings< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationSettings() { + return updateGatewayAdvertisedRouteOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteGatewayAdvertisedRoute. */ + public UnaryCallSettings + deleteGatewayAdvertisedRouteSettings() { + return deleteGatewayAdvertisedRouteSettings; + } + + /** Returns the object with the settings used for calls to deleteGatewayAdvertisedRoute. */ + public OperationCallSettings + deleteGatewayAdvertisedRouteOperationSettings() { + return deleteGatewayAdvertisedRouteOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1016,6 +1174,21 @@ protected HubServiceStubSettings(Builder settingsBuilder) throws IOException { listGroupsSettings = settingsBuilder.listGroupsSettings().build(); updateGroupSettings = settingsBuilder.updateGroupSettings().build(); updateGroupOperationSettings = settingsBuilder.updateGroupOperationSettings().build(); + createGatewayAdvertisedRouteSettings = + settingsBuilder.createGatewayAdvertisedRouteSettings().build(); + createGatewayAdvertisedRouteOperationSettings = + settingsBuilder.createGatewayAdvertisedRouteOperationSettings().build(); + getGatewayAdvertisedRouteSettings = settingsBuilder.getGatewayAdvertisedRouteSettings().build(); + listGatewayAdvertisedRoutesSettings = + settingsBuilder.listGatewayAdvertisedRoutesSettings().build(); + updateGatewayAdvertisedRouteSettings = + settingsBuilder.updateGatewayAdvertisedRouteSettings().build(); + updateGatewayAdvertisedRouteOperationSettings = + settingsBuilder.updateGatewayAdvertisedRouteOperationSettings().build(); + deleteGatewayAdvertisedRouteSettings = + settingsBuilder.deleteGatewayAdvertisedRouteSettings().build(); + deleteGatewayAdvertisedRouteOperationSettings = + settingsBuilder.deleteGatewayAdvertisedRouteOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -1102,6 +1275,29 @@ public static class Builder extends StubSettings.Builder updateGroupSettings; private final OperationCallSettings.Builder updateGroupOperationSettings; + private final UnaryCallSettings.Builder + createGatewayAdvertisedRouteSettings; + private final OperationCallSettings.Builder< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationSettings; + private final UnaryCallSettings.Builder< + GetGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute> + getGatewayAdvertisedRouteSettings; + private final PagedCallSettings.Builder< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + ListGatewayAdvertisedRoutesPagedResponse> + listGatewayAdvertisedRoutesSettings; + private final UnaryCallSettings.Builder + updateGatewayAdvertisedRouteSettings; + private final OperationCallSettings.Builder< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationSettings; + private final UnaryCallSettings.Builder + deleteGatewayAdvertisedRouteSettings; + private final OperationCallSettings.Builder< + DeleteGatewayAdvertisedRouteRequest, Empty, OperationMetadata> + deleteGatewayAdvertisedRouteOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1192,6 +1388,15 @@ protected Builder(@Nullable ClientContext clientContext) { listGroupsSettings = PagedCallSettings.newBuilder(LIST_GROUPS_PAGE_STR_FACT); updateGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateGroupOperationSettings = OperationCallSettings.newBuilder(); + createGatewayAdvertisedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGatewayAdvertisedRouteOperationSettings = OperationCallSettings.newBuilder(); + getGatewayAdvertisedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listGatewayAdvertisedRoutesSettings = + PagedCallSettings.newBuilder(LIST_GATEWAY_ADVERTISED_ROUTES_PAGE_STR_FACT); + updateGatewayAdvertisedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateGatewayAdvertisedRouteOperationSettings = OperationCallSettings.newBuilder(); + deleteGatewayAdvertisedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGatewayAdvertisedRouteOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1223,6 +1428,11 @@ protected Builder(@Nullable ClientContext clientContext) { getGroupSettings, listGroupsSettings, updateGroupSettings, + createGatewayAdvertisedRouteSettings, + getGatewayAdvertisedRouteSettings, + listGatewayAdvertisedRoutesSettings, + updateGatewayAdvertisedRouteSettings, + deleteGatewayAdvertisedRouteSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1268,6 +1478,21 @@ protected Builder(HubServiceStubSettings settings) { listGroupsSettings = settings.listGroupsSettings.toBuilder(); updateGroupSettings = settings.updateGroupSettings.toBuilder(); updateGroupOperationSettings = settings.updateGroupOperationSettings.toBuilder(); + createGatewayAdvertisedRouteSettings = + settings.createGatewayAdvertisedRouteSettings.toBuilder(); + createGatewayAdvertisedRouteOperationSettings = + settings.createGatewayAdvertisedRouteOperationSettings.toBuilder(); + getGatewayAdvertisedRouteSettings = settings.getGatewayAdvertisedRouteSettings.toBuilder(); + listGatewayAdvertisedRoutesSettings = + settings.listGatewayAdvertisedRoutesSettings.toBuilder(); + updateGatewayAdvertisedRouteSettings = + settings.updateGatewayAdvertisedRouteSettings.toBuilder(); + updateGatewayAdvertisedRouteOperationSettings = + settings.updateGatewayAdvertisedRouteOperationSettings.toBuilder(); + deleteGatewayAdvertisedRouteSettings = + settings.deleteGatewayAdvertisedRouteSettings.toBuilder(); + deleteGatewayAdvertisedRouteOperationSettings = + settings.deleteGatewayAdvertisedRouteOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -1299,6 +1524,11 @@ protected Builder(HubServiceStubSettings settings) { getGroupSettings, listGroupsSettings, updateGroupSettings, + createGatewayAdvertisedRouteSettings, + getGatewayAdvertisedRouteSettings, + listGatewayAdvertisedRoutesSettings, + updateGatewayAdvertisedRouteSettings, + deleteGatewayAdvertisedRouteSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1434,6 +1664,31 @@ 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 + .createGatewayAdvertisedRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getGatewayAdvertisedRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listGatewayAdvertisedRoutesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateGatewayAdvertisedRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteGatewayAdvertisedRouteSettings() + .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")) @@ -1716,6 +1971,81 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createGatewayAdvertisedRouteOperationSettings() + .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(GatewayAdvertisedRoute.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 + .updateGatewayAdvertisedRouteOperationSettings() + .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(GatewayAdvertisedRoute.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 + .deleteGatewayAdvertisedRouteOperationSettings() + .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(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; } @@ -1931,6 +2261,60 @@ public UnaryCallSettings.Builder updateGroupSetti return updateGroupOperationSettings; } + /** Returns the builder for the settings used for calls to createGatewayAdvertisedRoute. */ + public UnaryCallSettings.Builder + createGatewayAdvertisedRouteSettings() { + return createGatewayAdvertisedRouteSettings; + } + + /** Returns the builder for the settings used for calls to createGatewayAdvertisedRoute. */ + public OperationCallSettings.Builder< + CreateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + createGatewayAdvertisedRouteOperationSettings() { + return createGatewayAdvertisedRouteOperationSettings; + } + + /** Returns the builder for the settings used for calls to getGatewayAdvertisedRoute. */ + public UnaryCallSettings.Builder + getGatewayAdvertisedRouteSettings() { + return getGatewayAdvertisedRouteSettings; + } + + /** Returns the builder for the settings used for calls to listGatewayAdvertisedRoutes. */ + public PagedCallSettings.Builder< + ListGatewayAdvertisedRoutesRequest, + ListGatewayAdvertisedRoutesResponse, + ListGatewayAdvertisedRoutesPagedResponse> + listGatewayAdvertisedRoutesSettings() { + return listGatewayAdvertisedRoutesSettings; + } + + /** Returns the builder for the settings used for calls to updateGatewayAdvertisedRoute. */ + public UnaryCallSettings.Builder + updateGatewayAdvertisedRouteSettings() { + return updateGatewayAdvertisedRouteSettings; + } + + /** Returns the builder for the settings used for calls to updateGatewayAdvertisedRoute. */ + public OperationCallSettings.Builder< + UpdateGatewayAdvertisedRouteRequest, GatewayAdvertisedRoute, OperationMetadata> + updateGatewayAdvertisedRouteOperationSettings() { + return updateGatewayAdvertisedRouteOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteGatewayAdvertisedRoute. */ + public UnaryCallSettings.Builder + deleteGatewayAdvertisedRouteSettings() { + return deleteGatewayAdvertisedRouteSettings; + } + + /** Returns the builder for the settings used for calls to deleteGatewayAdvertisedRoute. */ + public OperationCallSettings.Builder< + DeleteGatewayAdvertisedRouteRequest, Empty, OperationMetadata> + deleteGatewayAdvertisedRouteOperationSettings() { + return deleteGatewayAdvertisedRouteOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json index a064a7d06df0..038cc3cf8335 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json @@ -710,6 +710,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.CreateHubRequest", "queryAllDeclaredConstructors": true, @@ -872,6 +890,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.DeleteHubRequest", "queryAllDeclaredConstructors": true, @@ -1079,6 +1115,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.Gateway", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Gateway$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Gateway$GatewayCapacity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Gateway$IpRangeReservation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Gateway$IpRangeReservation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute$Recipient", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.GetDestinationRequest", "queryAllDeclaredConstructors": true, @@ -1097,6 +1205,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.GetGroupRequest", "queryAllDeclaredConstructors": true, @@ -1367,6 +1493,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.Hub$ExportPscConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Hub$ExportPscConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.HubStatusEntry", "queryAllDeclaredConstructors": true, @@ -1619,6 +1763,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.ListGroupsRequest", "queryAllDeclaredConstructors": true, @@ -2231,6 +2411,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.NextHopSpoke", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.NextHopSpoke$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel", "queryAllDeclaredConstructors": true, @@ -3059,6 +3257,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.UpdateGroupRequest", "queryAllDeclaredConstructors": true, diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java index 449fbb7349e2..6641fea360ad 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.networkconnectivity.v1; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGatewayAdvertisedRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListGroupsPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubSpokesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListHubsPagedResponse; @@ -217,6 +218,7 @@ public void getHubTest() throws Exception { .setPolicyMode(PolicyMode.forNumber(0)) .setPresetTopology(PresetTopology.forNumber(0)) .setExportPsc(true) + .setExportPscConfig(Hub.ExportPscConfig.newBuilder().build()) .build(); mockHubService.addResponse(expectedResponse); @@ -267,6 +269,7 @@ public void getHubTest2() throws Exception { .setPolicyMode(PolicyMode.forNumber(0)) .setPresetTopology(PresetTopology.forNumber(0)) .setExportPsc(true) + .setExportPscConfig(Hub.ExportPscConfig.newBuilder().build()) .build(); mockHubService.addResponse(expectedResponse); @@ -317,6 +320,7 @@ public void createHubTest() throws Exception { .setPolicyMode(PolicyMode.forNumber(0)) .setPresetTopology(PresetTopology.forNumber(0)) .setExportPsc(true) + .setExportPscConfig(Hub.ExportPscConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -381,6 +385,7 @@ public void createHubTest2() throws Exception { .setPolicyMode(PolicyMode.forNumber(0)) .setPresetTopology(PresetTopology.forNumber(0)) .setExportPsc(true) + .setExportPscConfig(Hub.ExportPscConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -445,6 +450,7 @@ public void updateHubTest() throws Exception { .setPolicyMode(PolicyMode.forNumber(0)) .setPresetTopology(PresetTopology.forNumber(0)) .setExportPsc(true) + .setExportPscConfig(Hub.ExportPscConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -852,6 +858,7 @@ public void getSpokeTest() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setGateway(Gateway.newBuilder().build()) .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) @@ -907,6 +914,7 @@ public void getSpokeTest2() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setGateway(Gateway.newBuilder().build()) .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) @@ -962,6 +970,7 @@ public void createSpokeTest() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setGateway(Gateway.newBuilder().build()) .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) @@ -1031,6 +1040,7 @@ public void createSpokeTest2() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setGateway(Gateway.newBuilder().build()) .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) @@ -1100,6 +1110,7 @@ public void updateSpokeTest() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setGateway(Gateway.newBuilder().build()) .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) @@ -2127,6 +2138,7 @@ public void getRouteTest() throws Exception { .setNextHopVpnTunnel(NextHopVPNTunnel.newBuilder().build()) .setNextHopRouterApplianceInstance(NextHopRouterApplianceInstance.newBuilder().build()) .setNextHopInterconnectAttachment(NextHopInterconnectAttachment.newBuilder().build()) + .setNextHopSpoke(NextHopSpoke.newBuilder().build()) .build(); mockHubService.addResponse(expectedResponse); @@ -2180,6 +2192,7 @@ public void getRouteTest2() throws Exception { .setNextHopVpnTunnel(NextHopVPNTunnel.newBuilder().build()) .setNextHopRouterApplianceInstance(NextHopRouterApplianceInstance.newBuilder().build()) .setNextHopInterconnectAttachment(NextHopInterconnectAttachment.newBuilder().build()) + .setNextHopSpoke(NextHopSpoke.newBuilder().build()) .build(); mockHubService.addResponse(expectedResponse); @@ -2401,7 +2414,7 @@ public void getGroupTest() throws Exception { .setUid("uid115792") .setState(State.forNumber(0)) .setAutoAccept(AutoAccept.newBuilder().build()) - .setRouteTable("routeTable902012677") + .setRouteTable(RouteTableName.of("[PROJECT]", "[HUB]", "[ROUTE_TABLE]").toString()) .build(); mockHubService.addResponse(expectedResponse); @@ -2447,7 +2460,7 @@ public void getGroupTest2() throws Exception { .setUid("uid115792") .setState(State.forNumber(0)) .setAutoAccept(AutoAccept.newBuilder().build()) - .setRouteTable("routeTable902012677") + .setRouteTable(RouteTableName.of("[PROJECT]", "[HUB]", "[ROUTE_TABLE]").toString()) .build(); mockHubService.addResponse(expectedResponse); @@ -2581,7 +2594,7 @@ public void updateGroupTest() throws Exception { .setUid("uid115792") .setState(State.forNumber(0)) .setAutoAccept(AutoAccept.newBuilder().build()) - .setRouteTable("routeTable902012677") + .setRouteTable(RouteTableName.of("[PROJECT]", "[HUB]", "[ROUTE_TABLE]").toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2626,6 +2639,496 @@ public void updateGroupExceptionTest() throws Exception { } } + @Test + public void createGatewayAdvertisedRouteTest() throws Exception { + GatewayAdvertisedRoute expectedResponse = + GatewayAdvertisedRoute.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setUniqueId("uniqueId-294460212") + .setState(State.forNumber(0)) + .setIpRange("ipRange1983798358") + .setPriority(-1165461084) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGatewayAdvertisedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockHubService.addResponse(resultOperation); + + SpokeName parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]"); + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + String gatewayAdvertisedRouteId = "gatewayAdvertisedRouteId1531070339"; + + GatewayAdvertisedRoute actualResponse = + client + .createGatewayAdvertisedRouteAsync( + parent, gatewayAdvertisedRoute, gatewayAdvertisedRouteId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGatewayAdvertisedRouteRequest actualRequest = + ((CreateGatewayAdvertisedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(gatewayAdvertisedRoute, actualRequest.getGatewayAdvertisedRoute()); + Assert.assertEquals(gatewayAdvertisedRouteId, actualRequest.getGatewayAdvertisedRouteId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGatewayAdvertisedRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + SpokeName parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]"); + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + String gatewayAdvertisedRouteId = "gatewayAdvertisedRouteId1531070339"; + client + .createGatewayAdvertisedRouteAsync( + parent, gatewayAdvertisedRoute, gatewayAdvertisedRouteId) + .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 createGatewayAdvertisedRouteTest2() throws Exception { + GatewayAdvertisedRoute expectedResponse = + GatewayAdvertisedRoute.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setUniqueId("uniqueId-294460212") + .setState(State.forNumber(0)) + .setIpRange("ipRange1983798358") + .setPriority(-1165461084) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGatewayAdvertisedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockHubService.addResponse(resultOperation); + + String parent = "parent-995424086"; + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + String gatewayAdvertisedRouteId = "gatewayAdvertisedRouteId1531070339"; + + GatewayAdvertisedRoute actualResponse = + client + .createGatewayAdvertisedRouteAsync( + parent, gatewayAdvertisedRoute, gatewayAdvertisedRouteId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGatewayAdvertisedRouteRequest actualRequest = + ((CreateGatewayAdvertisedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(gatewayAdvertisedRoute, actualRequest.getGatewayAdvertisedRoute()); + Assert.assertEquals(gatewayAdvertisedRouteId, actualRequest.getGatewayAdvertisedRouteId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGatewayAdvertisedRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + String parent = "parent-995424086"; + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + String gatewayAdvertisedRouteId = "gatewayAdvertisedRouteId1531070339"; + client + .createGatewayAdvertisedRouteAsync( + parent, gatewayAdvertisedRoute, gatewayAdvertisedRouteId) + .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 getGatewayAdvertisedRouteTest() throws Exception { + GatewayAdvertisedRoute expectedResponse = + GatewayAdvertisedRoute.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setUniqueId("uniqueId-294460212") + .setState(State.forNumber(0)) + .setIpRange("ipRange1983798358") + .setPriority(-1165461084) + .build(); + mockHubService.addResponse(expectedResponse); + + GatewayAdvertisedRouteName name = + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]"); + + GatewayAdvertisedRoute actualResponse = client.getGatewayAdvertisedRoute(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGatewayAdvertisedRouteRequest actualRequest = + ((GetGatewayAdvertisedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGatewayAdvertisedRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + GatewayAdvertisedRouteName name = + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]"); + client.getGatewayAdvertisedRoute(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGatewayAdvertisedRouteTest2() throws Exception { + GatewayAdvertisedRoute expectedResponse = + GatewayAdvertisedRoute.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setUniqueId("uniqueId-294460212") + .setState(State.forNumber(0)) + .setIpRange("ipRange1983798358") + .setPriority(-1165461084) + .build(); + mockHubService.addResponse(expectedResponse); + + String name = "name3373707"; + + GatewayAdvertisedRoute actualResponse = client.getGatewayAdvertisedRoute(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGatewayAdvertisedRouteRequest actualRequest = + ((GetGatewayAdvertisedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGatewayAdvertisedRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + String name = "name3373707"; + client.getGatewayAdvertisedRoute(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGatewayAdvertisedRoutesTest() throws Exception { + GatewayAdvertisedRoute responsesElement = GatewayAdvertisedRoute.newBuilder().build(); + ListGatewayAdvertisedRoutesResponse expectedResponse = + ListGatewayAdvertisedRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllGatewayAdvertisedRoutes(Arrays.asList(responsesElement)) + .build(); + mockHubService.addResponse(expectedResponse); + + SpokeName parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]"); + + ListGatewayAdvertisedRoutesPagedResponse pagedListResponse = + client.listGatewayAdvertisedRoutes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGatewayAdvertisedRoutesList().get(0), resources.get(0)); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGatewayAdvertisedRoutesRequest actualRequest = + ((ListGatewayAdvertisedRoutesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGatewayAdvertisedRoutesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + SpokeName parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]"); + client.listGatewayAdvertisedRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGatewayAdvertisedRoutesTest2() throws Exception { + GatewayAdvertisedRoute responsesElement = GatewayAdvertisedRoute.newBuilder().build(); + ListGatewayAdvertisedRoutesResponse expectedResponse = + ListGatewayAdvertisedRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllGatewayAdvertisedRoutes(Arrays.asList(responsesElement)) + .build(); + mockHubService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListGatewayAdvertisedRoutesPagedResponse pagedListResponse = + client.listGatewayAdvertisedRoutes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGatewayAdvertisedRoutesList().get(0), resources.get(0)); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGatewayAdvertisedRoutesRequest actualRequest = + ((ListGatewayAdvertisedRoutesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGatewayAdvertisedRoutesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listGatewayAdvertisedRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateGatewayAdvertisedRouteTest() throws Exception { + GatewayAdvertisedRoute expectedResponse = + GatewayAdvertisedRoute.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setUniqueId("uniqueId-294460212") + .setState(State.forNumber(0)) + .setIpRange("ipRange1983798358") + .setPriority(-1165461084) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateGatewayAdvertisedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockHubService.addResponse(resultOperation); + + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + GatewayAdvertisedRoute actualResponse = + client.updateGatewayAdvertisedRouteAsync(gatewayAdvertisedRoute, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateGatewayAdvertisedRouteRequest actualRequest = + ((UpdateGatewayAdvertisedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(gatewayAdvertisedRoute, actualRequest.getGatewayAdvertisedRoute()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateGatewayAdvertisedRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGatewayAdvertisedRouteAsync(gatewayAdvertisedRoute, 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 deleteGatewayAdvertisedRouteTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGatewayAdvertisedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockHubService.addResponse(resultOperation); + + GatewayAdvertisedRouteName name = + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]"); + + client.deleteGatewayAdvertisedRouteAsync(name).get(); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGatewayAdvertisedRouteRequest actualRequest = + ((DeleteGatewayAdvertisedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGatewayAdvertisedRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + GatewayAdvertisedRouteName name = + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]"); + client.deleteGatewayAdvertisedRouteAsync(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 deleteGatewayAdvertisedRouteTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGatewayAdvertisedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockHubService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteGatewayAdvertisedRouteAsync(name).get(); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGatewayAdvertisedRouteRequest actualRequest = + ((DeleteGatewayAdvertisedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGatewayAdvertisedRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + String name = "name3373707"; + client.deleteGatewayAdvertisedRouteAsync(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(); diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java index 7e4c730cdd9e..40128b06f9c8 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java @@ -529,4 +529,116 @@ public void updateGroup(UpdateGroupRequest request, StreamObserver re Exception.class.getName()))); } } + + @Override + public void createGatewayAdvertisedRoute( + CreateGatewayAdvertisedRouteRequest 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 CreateGatewayAdvertisedRoute, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGatewayAdvertisedRoute( + GetGatewayAdvertisedRouteRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GatewayAdvertisedRoute) { + requests.add(request); + responseObserver.onNext(((GatewayAdvertisedRoute) 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 GetGatewayAdvertisedRoute, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + GatewayAdvertisedRoute.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGatewayAdvertisedRoutes( + ListGatewayAdvertisedRoutesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGatewayAdvertisedRoutesResponse) { + requests.add(request); + responseObserver.onNext(((ListGatewayAdvertisedRoutesResponse) 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 ListGatewayAdvertisedRoutes, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGatewayAdvertisedRoutesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateGatewayAdvertisedRoute( + UpdateGatewayAdvertisedRouteRequest 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 UpdateGatewayAdvertisedRoute, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGatewayAdvertisedRoute( + DeleteGatewayAdvertisedRouteRequest 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 DeleteGatewayAdvertisedRoute, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java index 12be90ef71e8..132080224923 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -1081,6 +1081,266 @@ private HubServiceGrpc() {} return getUpdateGroupMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getCreateGatewayAdvertisedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGatewayAdvertisedRoute", + requestType = + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getCreateGatewayAdvertisedRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getCreateGatewayAdvertisedRouteMethod; + if ((getCreateGatewayAdvertisedRouteMethod = + HubServiceGrpc.getCreateGatewayAdvertisedRouteMethod) + == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateGatewayAdvertisedRouteMethod = + HubServiceGrpc.getCreateGatewayAdvertisedRouteMethod) + == null) { + HubServiceGrpc.getCreateGatewayAdvertisedRouteMethod = + getCreateGatewayAdvertisedRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateGatewayAdvertisedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .CreateGatewayAdvertisedRouteRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new HubServiceMethodDescriptorSupplier("CreateGatewayAdvertisedRoute")) + .build(); + } + } + } + return getCreateGatewayAdvertisedRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute> + getGetGatewayAdvertisedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGatewayAdvertisedRoute", + requestType = com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute> + getGetGatewayAdvertisedRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute> + getGetGatewayAdvertisedRouteMethod; + if ((getGetGatewayAdvertisedRouteMethod = HubServiceGrpc.getGetGatewayAdvertisedRouteMethod) + == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetGatewayAdvertisedRouteMethod = HubServiceGrpc.getGetGatewayAdvertisedRouteMethod) + == null) { + HubServiceGrpc.getGetGatewayAdvertisedRouteMethod = + getGetGatewayAdvertisedRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetGatewayAdvertisedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .GetGatewayAdvertisedRouteRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + .getDefaultInstance())) + .setSchemaDescriptor( + new HubServiceMethodDescriptorSupplier("GetGatewayAdvertisedRoute")) + .build(); + } + } + } + return getGetGatewayAdvertisedRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse> + getListGatewayAdvertisedRoutesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGatewayAdvertisedRoutes", + requestType = + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest.class, + responseType = + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse> + getListGatewayAdvertisedRoutesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse> + getListGatewayAdvertisedRoutesMethod; + if ((getListGatewayAdvertisedRoutesMethod = HubServiceGrpc.getListGatewayAdvertisedRoutesMethod) + == null) { + synchronized (HubServiceGrpc.class) { + if ((getListGatewayAdvertisedRoutesMethod = + HubServiceGrpc.getListGatewayAdvertisedRoutesMethod) + == null) { + HubServiceGrpc.getListGatewayAdvertisedRoutesMethod = + getListGatewayAdvertisedRoutesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListGatewayAdvertisedRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .ListGatewayAdvertisedRoutesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .ListGatewayAdvertisedRoutesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new HubServiceMethodDescriptorSupplier("ListGatewayAdvertisedRoutes")) + .build(); + } + } + } + return getListGatewayAdvertisedRoutesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getUpdateGatewayAdvertisedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGatewayAdvertisedRoute", + requestType = + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getUpdateGatewayAdvertisedRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getUpdateGatewayAdvertisedRouteMethod; + if ((getUpdateGatewayAdvertisedRouteMethod = + HubServiceGrpc.getUpdateGatewayAdvertisedRouteMethod) + == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateGatewayAdvertisedRouteMethod = + HubServiceGrpc.getUpdateGatewayAdvertisedRouteMethod) + == null) { + HubServiceGrpc.getUpdateGatewayAdvertisedRouteMethod = + getUpdateGatewayAdvertisedRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateGatewayAdvertisedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .UpdateGatewayAdvertisedRouteRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new HubServiceMethodDescriptorSupplier("UpdateGatewayAdvertisedRoute")) + .build(); + } + } + } + return getUpdateGatewayAdvertisedRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getDeleteGatewayAdvertisedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGatewayAdvertisedRoute", + requestType = + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getDeleteGatewayAdvertisedRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation> + getDeleteGatewayAdvertisedRouteMethod; + if ((getDeleteGatewayAdvertisedRouteMethod = + HubServiceGrpc.getDeleteGatewayAdvertisedRouteMethod) + == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteGatewayAdvertisedRouteMethod = + HubServiceGrpc.getDeleteGatewayAdvertisedRouteMethod) + == null) { + HubServiceGrpc.getDeleteGatewayAdvertisedRouteMethod = + getDeleteGatewayAdvertisedRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteGatewayAdvertisedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .DeleteGatewayAdvertisedRouteRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new HubServiceMethodDescriptorSupplier("DeleteGatewayAdvertisedRoute")) + .build(); + } + } + } + return getDeleteGatewayAdvertisedRouteMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static HubServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1475,6 +1735,79 @@ default void updateGroup( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateGroupMethod(), responseObserver); } + + /** + * + * + *
+     * Create a GatewayAdvertisedRoute
+     * 
+ */ + default void createGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGatewayAdvertisedRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a GatewayAdvertisedRoute
+     * 
+ */ + default void getGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGatewayAdvertisedRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * List GatewayAdvertisedRoutes
+     * 
+ */ + default void listGatewayAdvertisedRoutes( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGatewayAdvertisedRoutesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a GatewayAdvertisedRoute
+     * 
+ */ + default void updateGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGatewayAdvertisedRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a GatewayAdvertisedRoute
+     * 
+ */ + default void deleteGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGatewayAdvertisedRouteMethod(), responseObserver); + } } /** @@ -1878,6 +2211,89 @@ public void updateGroup( request, responseObserver); } + + /** + * + * + *
+     * Create a GatewayAdvertisedRoute
+     * 
+ */ + public void createGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGatewayAdvertisedRouteMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a GatewayAdvertisedRoute
+     * 
+ */ + public void getGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGatewayAdvertisedRouteMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List GatewayAdvertisedRoutes
+     * 
+ */ + public void listGatewayAdvertisedRoutes( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGatewayAdvertisedRoutesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a GatewayAdvertisedRoute
+     * 
+ */ + public void updateGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGatewayAdvertisedRouteMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a GatewayAdvertisedRoute
+     * 
+ */ + public void deleteGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGatewayAdvertisedRouteMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2231,6 +2647,77 @@ public com.google.longrunning.Operation updateGroup( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Create a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.longrunning.Operation createGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateGatewayAdvertisedRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute getGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetGatewayAdvertisedRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List GatewayAdvertisedRoutes
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + listGatewayAdvertisedRoutes( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListGatewayAdvertisedRoutesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.longrunning.Operation updateGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateGatewayAdvertisedRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.longrunning.Operation deleteGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteGatewayAdvertisedRouteMethod(), getCallOptions(), request); + } } /** @@ -2561,6 +3048,72 @@ public com.google.longrunning.Operation updateGroup( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateGroupMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Create a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.longrunning.Operation createGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGatewayAdvertisedRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute getGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGatewayAdvertisedRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List GatewayAdvertisedRoutes
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + listGatewayAdvertisedRoutes( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGatewayAdvertisedRoutesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.longrunning.Operation updateGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGatewayAdvertisedRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.longrunning.Operation deleteGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGatewayAdvertisedRouteMethod(), getCallOptions(), request); + } } /** @@ -2904,6 +3457,78 @@ protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Create a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGatewayAdvertisedRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute> + getGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGatewayAdvertisedRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List GatewayAdvertisedRoutes
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse> + listGatewayAdvertisedRoutes( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGatewayAdvertisedRoutesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGatewayAdvertisedRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a GatewayAdvertisedRoute
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGatewayAdvertisedRouteMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_HUBS = 0; @@ -2929,6 +3554,11 @@ protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_GET_GROUP = 20; private static final int METHODID_LIST_GROUPS = 21; private static final int METHODID_UPDATE_GROUP = 22; + private static final int METHODID_CREATE_GATEWAY_ADVERTISED_ROUTE = 23; + private static final int METHODID_GET_GATEWAY_ADVERTISED_ROUTE = 24; + private static final int METHODID_LIST_GATEWAY_ADVERTISED_ROUTES = 25; + private static final int METHODID_UPDATE_GATEWAY_ADVERTISED_ROUTE = 26; + private static final int METHODID_DELETE_GATEWAY_ADVERTISED_ROUTE = 27; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3081,6 +3711,35 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.networkconnectivity.v1.UpdateGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_GATEWAY_ADVERTISED_ROUTE: + serviceImpl.createGatewayAdvertisedRoute( + (com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GATEWAY_ADVERTISED_ROUTE: + serviceImpl.getGatewayAdvertisedRoute( + (com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute>) + responseObserver); + break; + case METHODID_LIST_GATEWAY_ADVERTISED_ROUTES: + serviceImpl.listGatewayAdvertisedRoutes( + (com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse>) + responseObserver); + break; + case METHODID_UPDATE_GATEWAY_ADVERTISED_ROUTE: + serviceImpl.updateGatewayAdvertisedRoute( + (com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GATEWAY_ADVERTISED_ROUTE: + serviceImpl.deleteGatewayAdvertisedRoute( + (com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -3245,6 +3904,41 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.networkconnectivity.v1.UpdateGroupRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_GROUP))) + .addMethod( + getCreateGatewayAdvertisedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_GATEWAY_ADVERTISED_ROUTE))) + .addMethod( + getGetGatewayAdvertisedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute>( + service, METHODID_GET_GATEWAY_ADVERTISED_ROUTE))) + .addMethod( + getListGatewayAdvertisedRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse>( + service, METHODID_LIST_GATEWAY_ADVERTISED_ROUTES))) + .addMethod( + getUpdateGatewayAdvertisedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_GATEWAY_ADVERTISED_ROUTE))) + .addMethod( + getDeleteGatewayAdvertisedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_GATEWAY_ADVERTISED_ROUTE))) .build(); } @@ -3319,6 +4013,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetGroupMethod()) .addMethod(getListGroupsMethod()) .addMethod(getUpdateGroupMethod()) + .addMethod(getCreateGatewayAdvertisedRouteMethod()) + .addMethod(getGetGatewayAdvertisedRouteMethod()) + .addMethod(getListGatewayAdvertisedRoutesMethod()) + .addMethod(getUpdateGatewayAdvertisedRouteMethod()) + .addMethod(getDeleteGatewayAdvertisedRouteMethod()) .build(); } } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateGatewayAdvertisedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateGatewayAdvertisedRouteRequest.java new file mode 100644 index 000000000000..2bf1a2c8cfce --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateGatewayAdvertisedRouteRequest.java @@ -0,0 +1,1456 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * The request for
+ * [HubService.CreateGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.CreateGatewayAdvertisedRoute].
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest} + */ +@com.google.protobuf.Generated +public final class CreateGatewayAdvertisedRouteRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) + CreateGatewayAdvertisedRouteRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateGatewayAdvertisedRouteRequest"); + } + + // Use CreateGatewayAdvertisedRouteRequest.newBuilder() to construct. + private CreateGatewayAdvertisedRouteRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateGatewayAdvertisedRouteRequest() { + parent_ = ""; + gatewayAdvertisedRouteId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateGatewayAdvertisedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest.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.
+   * 
+ * + * + * 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.
+   * 
+ * + * + * 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 GATEWAY_ADVERTISED_ROUTE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gatewayAdvertisedRouteId_ = ""; + + /** + * + * + *
+   * Required. Unique id for the route to create.
+   * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gatewayAdvertisedRouteId. + */ + @java.lang.Override + public java.lang.String getGatewayAdvertisedRouteId() { + java.lang.Object ref = gatewayAdvertisedRouteId_; + 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(); + gatewayAdvertisedRouteId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Unique id for the route to create.
+   * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gatewayAdvertisedRouteId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGatewayAdvertisedRouteIdBytes() { + java.lang.Object ref = gatewayAdvertisedRouteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gatewayAdvertisedRouteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GATEWAY_ADVERTISED_ROUTE_FIELD_NUMBER = 3; + private com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gatewayAdvertisedRoute_; + + /** + * + * + *
+   * Required. Initial values for the new gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewayAdvertisedRoute field is set. + */ + @java.lang.Override + public boolean hasGatewayAdvertisedRoute() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Initial values for the new gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewayAdvertisedRoute. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + getGatewayAdvertisedRoute() { + return gatewayAdvertisedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance() + : gatewayAdvertisedRoute_; + } + + /** + * + * + *
+   * Required. Initial values for the new gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRouteOrBuilder() { + return gatewayAdvertisedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance() + : gatewayAdvertisedRoute_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gatewayAdvertisedRouteId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, gatewayAdvertisedRouteId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getGatewayAdvertisedRoute()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gatewayAdvertisedRouteId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, gatewayAdvertisedRouteId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGatewayAdvertisedRoute()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest other = + (com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getGatewayAdvertisedRouteId().equals(other.getGatewayAdvertisedRouteId())) return false; + if (hasGatewayAdvertisedRoute() != other.hasGatewayAdvertisedRoute()) return false; + if (hasGatewayAdvertisedRoute()) { + if (!getGatewayAdvertisedRoute().equals(other.getGatewayAdvertisedRoute())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + GATEWAY_ADVERTISED_ROUTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getGatewayAdvertisedRouteId().hashCode(); + if (hasGatewayAdvertisedRoute()) { + hash = (37 * hash) + GATEWAY_ADVERTISED_ROUTE_FIELD_NUMBER; + hash = (53 * hash) + getGatewayAdvertisedRoute().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request for
+   * [HubService.CreateGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.CreateGatewayAdvertisedRoute].
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateGatewayAdvertisedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGatewayAdvertisedRouteFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + gatewayAdvertisedRouteId_ = ""; + gatewayAdvertisedRoute_ = null; + if (gatewayAdvertisedRouteBuilder_ != null) { + gatewayAdvertisedRouteBuilder_.dispose(); + gatewayAdvertisedRouteBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest build() { + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest result = + new com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gatewayAdvertisedRouteId_ = gatewayAdvertisedRouteId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gatewayAdvertisedRoute_ = + gatewayAdvertisedRouteBuilder_ == null + ? gatewayAdvertisedRoute_ + : gatewayAdvertisedRouteBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGatewayAdvertisedRouteId().isEmpty()) { + gatewayAdvertisedRouteId_ = other.gatewayAdvertisedRouteId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasGatewayAdvertisedRoute()) { + mergeGatewayAdvertisedRoute(other.getGatewayAdvertisedRoute()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gatewayAdvertisedRouteId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetGatewayAdvertisedRouteFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = 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 java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource.
+     * 
+ * + * + * 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.
+     * 
+ * + * + * 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.
+     * 
+ * + * + * 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.
+     * 
+ * + * + * 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.
+     * 
+ * + * + * 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 gatewayAdvertisedRouteId_ = ""; + + /** + * + * + *
+     * Required. Unique id for the route to create.
+     * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewayAdvertisedRouteId. + */ + public java.lang.String getGatewayAdvertisedRouteId() { + java.lang.Object ref = gatewayAdvertisedRouteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gatewayAdvertisedRouteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Unique id for the route to create.
+     * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for gatewayAdvertisedRouteId. + */ + public com.google.protobuf.ByteString getGatewayAdvertisedRouteIdBytes() { + java.lang.Object ref = gatewayAdvertisedRouteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gatewayAdvertisedRouteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Unique id for the route to create.
+     * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The gatewayAdvertisedRouteId to set. + * @return This builder for chaining. + */ + public Builder setGatewayAdvertisedRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gatewayAdvertisedRouteId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Unique id for the route to create.
+     * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearGatewayAdvertisedRouteId() { + gatewayAdvertisedRouteId_ = getDefaultInstance().getGatewayAdvertisedRouteId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Unique id for the route to create.
+     * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for gatewayAdvertisedRouteId to set. + * @return This builder for chaining. + */ + public Builder setGatewayAdvertisedRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayAdvertisedRouteId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gatewayAdvertisedRoute_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder> + gatewayAdvertisedRouteBuilder_; + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewayAdvertisedRoute field is set. + */ + public boolean hasGatewayAdvertisedRoute() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewayAdvertisedRoute. + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + getGatewayAdvertisedRoute() { + if (gatewayAdvertisedRouteBuilder_ == null) { + return gatewayAdvertisedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance() + : gatewayAdvertisedRoute_; + } else { + return gatewayAdvertisedRouteBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute value) { + if (gatewayAdvertisedRouteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gatewayAdvertisedRoute_ = value; + } else { + gatewayAdvertisedRouteBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder builderForValue) { + if (gatewayAdvertisedRouteBuilder_ == null) { + gatewayAdvertisedRoute_ = builderForValue.build(); + } else { + gatewayAdvertisedRouteBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute value) { + if (gatewayAdvertisedRouteBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && gatewayAdvertisedRoute_ != null + && gatewayAdvertisedRoute_ + != com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + .getDefaultInstance()) { + getGatewayAdvertisedRouteBuilder().mergeFrom(value); + } else { + gatewayAdvertisedRoute_ = value; + } + } else { + gatewayAdvertisedRouteBuilder_.mergeFrom(value); + } + if (gatewayAdvertisedRoute_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGatewayAdvertisedRoute() { + bitField0_ = (bitField0_ & ~0x00000004); + gatewayAdvertisedRoute_ = null; + if (gatewayAdvertisedRouteBuilder_ != null) { + gatewayAdvertisedRouteBuilder_.dispose(); + gatewayAdvertisedRouteBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder + getGatewayAdvertisedRouteBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetGatewayAdvertisedRouteFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRouteOrBuilder() { + if (gatewayAdvertisedRouteBuilder_ != null) { + return gatewayAdvertisedRouteBuilder_.getMessageOrBuilder(); + } else { + return gatewayAdvertisedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance() + : gatewayAdvertisedRoute_; + } + } + + /** + * + * + *
+     * Required. Initial values for the new gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder> + internalGetGatewayAdvertisedRouteFieldBuilder() { + if (gatewayAdvertisedRouteBuilder_ == null) { + gatewayAdvertisedRouteBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder>( + getGatewayAdvertisedRoute(), getParentForChildren(), isClean()); + gatewayAdvertisedRoute_ = null; + } + return gatewayAdvertisedRouteBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) + private static final com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateGatewayAdvertisedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateGatewayAdvertisedRouteRequestOrBuilder.java new file mode 100644 index 000000000000..142cfd1709d1 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateGatewayAdvertisedRouteRequestOrBuilder.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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface CreateGatewayAdvertisedRouteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Unique id for the route to create.
+   * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gatewayAdvertisedRouteId. + */ + java.lang.String getGatewayAdvertisedRouteId(); + + /** + * + * + *
+   * Required. Unique id for the route to create.
+   * 
+ * + * string gateway_advertised_route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gatewayAdvertisedRouteId. + */ + com.google.protobuf.ByteString getGatewayAdvertisedRouteIdBytes(); + + /** + * + * + *
+   * Required. Initial values for the new gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewayAdvertisedRoute field is set. + */ + boolean hasGatewayAdvertisedRoute(); + + /** + * + * + *
+   * Required. Initial values for the new gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewayAdvertisedRoute. + */ + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute getGatewayAdvertisedRoute(); + + /** + * + * + *
+   * Required. Initial values for the new gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRouteOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteGatewayAdvertisedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteGatewayAdvertisedRouteRequest.java new file mode 100644 index 000000000000..73e2f1709fd9 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteGatewayAdvertisedRouteRequest.java @@ -0,0 +1,933 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * Request for
+ * [HubService.DeleteGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.DeleteGatewayAdvertisedRoute]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest} + */ +@com.google.protobuf.Generated +public final class DeleteGatewayAdvertisedRouteRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) + DeleteGatewayAdvertisedRouteRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteGatewayAdvertisedRouteRequest"); + } + + // Use DeleteGatewayAdvertisedRouteRequest.newBuilder() to construct. + private DeleteGatewayAdvertisedRouteRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteGatewayAdvertisedRouteRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteGatewayAdvertisedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the gateway advertised route to delete.
+   * 
+ * + * + * 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 gateway advertised route to delete.
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest 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 for
+   * [HubService.DeleteGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.DeleteGatewayAdvertisedRoute]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteGatewayAdvertisedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest build() { + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest result = + new com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the gateway advertised route to delete.
+     * 
+ * + * + * 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 gateway advertised route to delete.
+     * 
+ * + * + * 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 gateway advertised route to delete.
+     * 
+ * + * + * 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 gateway advertised route to delete.
+     * 
+ * + * + * 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 gateway advertised route to delete.
+     * 
+ * + * + * 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 requestId_ = ""; + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) + private static final com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteGatewayAdvertisedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteGatewayAdvertisedRouteRequestOrBuilder.java new file mode 100644 index 000000000000..6c6465582339 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteGatewayAdvertisedRouteRequestOrBuilder.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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface DeleteGatewayAdvertisedRouteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the gateway advertised route to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the gateway advertised route to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Gateway.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Gateway.java new file mode 100644 index 000000000000..6420052f65e6 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Gateway.java @@ -0,0 +1,2560 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * A gateway that can apply specialized traffic processing.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Gateway} + */ +@com.google.protobuf.Generated +public final class Gateway extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Gateway) + GatewayOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Gateway"); + } + + // Use Gateway.newBuilder() to construct. + private Gateway(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Gateway() { + ipRangeReservations_ = java.util.Collections.emptyList(); + capacity_ = 0; + cloudRouters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sacAttachment_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Gateway.class, + com.google.cloud.networkconnectivity.v1.Gateway.Builder.class); + } + + /** + * + * + *
+   * The aggregate processing capacity of this gateway.
+   * 
+ * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity} + */ + public enum GatewayCapacity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The gateway capacity is unspecified.
+     * 
+ * + * GATEWAY_CAPACITY_UNSPECIFIED = 0; + */ + GATEWAY_CAPACITY_UNSPECIFIED(0), + /** + * + * + *
+     * The gateway has 1 Gbps of aggregate processing capacity
+     * 
+ * + * CAPACITY_1_GBPS = 5; + */ + CAPACITY_1_GBPS(5), + /** + * + * + *
+     * The gateway has 10 Gbps of aggregate processing capacity
+     * 
+ * + * CAPACITY_10_GBPS = 1; + */ + CAPACITY_10_GBPS(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GatewayCapacity"); + } + + /** + * + * + *
+     * The gateway capacity is unspecified.
+     * 
+ * + * GATEWAY_CAPACITY_UNSPECIFIED = 0; + */ + public static final int GATEWAY_CAPACITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The gateway has 1 Gbps of aggregate processing capacity
+     * 
+ * + * CAPACITY_1_GBPS = 5; + */ + public static final int CAPACITY_1_GBPS_VALUE = 5; + + /** + * + * + *
+     * The gateway has 10 Gbps of aggregate processing capacity
+     * 
+ * + * CAPACITY_10_GBPS = 1; + */ + public static final int CAPACITY_10_GBPS_VALUE = 1; + + 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 GatewayCapacity 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 GatewayCapacity forNumber(int value) { + switch (value) { + case 0: + return GATEWAY_CAPACITY_UNSPECIFIED; + case 5: + return CAPACITY_1_GBPS; + case 1: + return CAPACITY_10_GBPS; + 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 GatewayCapacity findValueByNumber(int number) { + return GatewayCapacity.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.networkconnectivity.v1.Gateway.getDescriptor().getEnumTypes().get(0); + } + + private static final GatewayCapacity[] VALUES = values(); + + public static GatewayCapacity 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 GatewayCapacity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity) + } + + public interface IpRangeReservationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. A block of IP addresses used to allocate supporting
+     * infrastructure for this gateway. This block must not overlap with subnets
+     * in any spokes or peer VPC networks that the gateway can communicate with.
+     * Example: "10.1.2.0/24"
+     * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ipRange. + */ + java.lang.String getIpRange(); + + /** + * + * + *
+     * Required. A block of IP addresses used to allocate supporting
+     * infrastructure for this gateway. This block must not overlap with subnets
+     * in any spokes or peer VPC networks that the gateway can communicate with.
+     * Example: "10.1.2.0/24"
+     * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ipRange. + */ + com.google.protobuf.ByteString getIpRangeBytes(); + } + + /** + * + * + *
+   * A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation} + */ + public static final class IpRangeReservation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation) + IpRangeReservationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IpRangeReservation"); + } + + // Use IpRangeReservation.newBuilder() to construct. + private IpRangeReservation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IpRangeReservation() { + ipRange_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_IpRangeReservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_IpRangeReservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.class, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder.class); + } + + public static final int IP_RANGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipRange_ = ""; + + /** + * + * + *
+     * Required. A block of IP addresses used to allocate supporting
+     * infrastructure for this gateway. This block must not overlap with subnets
+     * in any spokes or peer VPC networks that the gateway can communicate with.
+     * Example: "10.1.2.0/24"
+     * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ipRange. + */ + @java.lang.Override + public java.lang.String getIpRange() { + java.lang.Object ref = ipRange_; + 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(); + ipRange_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. A block of IP addresses used to allocate supporting
+     * infrastructure for this gateway. This block must not overlap with subnets
+     * in any spokes or peer VPC networks that the gateway can communicate with.
+     * Example: "10.1.2.0/24"
+     * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ipRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpRangeBytes() { + java.lang.Object ref = ipRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipRange_ = 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(ipRange_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, ipRange_); + } + 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(ipRange_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ipRange_); + } + 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.networkconnectivity.v1.Gateway.IpRangeReservation)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation other = + (com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation) obj; + + if (!getIpRange().equals(other.getIpRange())) 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) + IP_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpRange().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation 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.networkconnectivity.v1.Gateway.IpRangeReservation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation 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.networkconnectivity.v1.Gateway.IpRangeReservation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation 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.networkconnectivity.v1.Gateway.IpRangeReservation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + 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.networkconnectivity.v1.Gateway.IpRangeReservation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation 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.networkconnectivity.v1.Gateway.IpRangeReservation 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 list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation) + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_IpRangeReservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_IpRangeReservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.class, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ipRange_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_IpRangeReservation_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation build() { + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation buildPartial() { + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation result = + new com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ipRange_ = ipRange_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation other) { + if (other + == com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + .getDefaultInstance()) return this; + if (!other.getIpRange().isEmpty()) { + ipRange_ = other.ipRange_; + 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: + { + ipRange_ = 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 ipRange_ = ""; + + /** + * + * + *
+       * Required. A block of IP addresses used to allocate supporting
+       * infrastructure for this gateway. This block must not overlap with subnets
+       * in any spokes or peer VPC networks that the gateway can communicate with.
+       * Example: "10.1.2.0/24"
+       * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ipRange. + */ + public java.lang.String getIpRange() { + java.lang.Object ref = ipRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. A block of IP addresses used to allocate supporting
+       * infrastructure for this gateway. This block must not overlap with subnets
+       * in any spokes or peer VPC networks that the gateway can communicate with.
+       * Example: "10.1.2.0/24"
+       * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ipRange. + */ + public com.google.protobuf.ByteString getIpRangeBytes() { + java.lang.Object ref = ipRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. A block of IP addresses used to allocate supporting
+       * infrastructure for this gateway. This block must not overlap with subnets
+       * in any spokes or peer VPC networks that the gateway can communicate with.
+       * Example: "10.1.2.0/24"
+       * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ipRange to set. + * @return This builder for chaining. + */ + public Builder setIpRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. A block of IP addresses used to allocate supporting
+       * infrastructure for this gateway. This block must not overlap with subnets
+       * in any spokes or peer VPC networks that the gateway can communicate with.
+       * Example: "10.1.2.0/24"
+       * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearIpRange() { + ipRange_ = getDefaultInstance().getIpRange(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. A block of IP addresses used to allocate supporting
+       * infrastructure for this gateway. This block must not overlap with subnets
+       * in any spokes or peer VPC networks that the gateway can communicate with.
+       * Example: "10.1.2.0/24"
+       * 
+ * + * string ip_range = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for ipRange to set. + * @return This builder for chaining. + */ + public Builder setIpRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation) + private static final com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation(); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IpRangeReservation 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.networkconnectivity.v1.Gateway.IpRangeReservation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int IP_RANGE_RESERVATIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List + ipRangeReservations_; + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIpRangeReservationsList() { + return ipRangeReservations_; + } + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder> + getIpRangeReservationsOrBuilderList() { + return ipRangeReservations_; + } + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIpRangeReservationsCount() { + return ipRangeReservations_.size(); + } + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation getIpRangeReservations( + int index) { + return ipRangeReservations_.get(index); + } + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder + getIpRangeReservationsOrBuilder(int index) { + return ipRangeReservations_.get(index); + } + + public static final int CAPACITY_FIELD_NUMBER = 10; + private int capacity_ = 0; + + /** + * + * + *
+   * Optional. The aggregate processing capacity of this gateway.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for capacity. + */ + @java.lang.Override + public int getCapacityValue() { + return capacity_; + } + + /** + * + * + *
+   * Optional. The aggregate processing capacity of this gateway.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The capacity. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity getCapacity() { + com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity result = + com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity.forNumber(capacity_); + return result == null + ? com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity.UNRECOGNIZED + : result; + } + + public static final int CLOUD_ROUTERS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList cloudRouters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The list of Cloud Routers that are connected to this gateway.
+   * Should be in the form:
+   * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+   * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the cloudRouters. + */ + public com.google.protobuf.ProtocolStringList getCloudRoutersList() { + return cloudRouters_; + } + + /** + * + * + *
+   * Output only. The list of Cloud Routers that are connected to this gateway.
+   * Should be in the form:
+   * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+   * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of cloudRouters. + */ + public int getCloudRoutersCount() { + return cloudRouters_.size(); + } + + /** + * + * + *
+   * Output only. The list of Cloud Routers that are connected to this gateway.
+   * Should be in the form:
+   * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+   * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The cloudRouters at the given index. + */ + public java.lang.String getCloudRouters(int index) { + return cloudRouters_.get(index); + } + + /** + * + * + *
+   * Output only. The list of Cloud Routers that are connected to this gateway.
+   * Should be in the form:
+   * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+   * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the cloudRouters at the given index. + */ + public com.google.protobuf.ByteString getCloudRoutersBytes(int index) { + return cloudRouters_.getByteString(index); + } + + public static final int SAC_ATTACHMENT_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object sacAttachment_ = ""; + + /** + * + * + *
+   * Output only. The URI of the connected SACAttachment.
+   * Should be in the form:
+   * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+   * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sacAttachment. + */ + @java.lang.Override + public java.lang.String getSacAttachment() { + java.lang.Object ref = sacAttachment_; + 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(); + sacAttachment_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The URI of the connected SACAttachment.
+   * Should be in the form:
+   * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+   * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sacAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSacAttachmentBytes() { + java.lang.Object ref = sacAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sacAttachment_ = 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 < ipRangeReservations_.size(); i++) { + output.writeMessage(7, ipRangeReservations_.get(i)); + } + if (capacity_ + != com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity + .GATEWAY_CAPACITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, capacity_); + } + for (int i = 0; i < cloudRouters_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, cloudRouters_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sacAttachment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, sacAttachment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < ipRangeReservations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, ipRangeReservations_.get(i)); + } + if (capacity_ + != com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity + .GATEWAY_CAPACITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, capacity_); + } + { + int dataSize = 0; + for (int i = 0; i < cloudRouters_.size(); i++) { + dataSize += computeStringSizeNoTag(cloudRouters_.getRaw(i)); + } + size += dataSize; + size += 1 * getCloudRoutersList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sacAttachment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, sacAttachment_); + } + 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.networkconnectivity.v1.Gateway)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.Gateway other = + (com.google.cloud.networkconnectivity.v1.Gateway) obj; + + if (!getIpRangeReservationsList().equals(other.getIpRangeReservationsList())) return false; + if (capacity_ != other.capacity_) return false; + if (!getCloudRoutersList().equals(other.getCloudRoutersList())) return false; + if (!getSacAttachment().equals(other.getSacAttachment())) 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 (getIpRangeReservationsCount() > 0) { + hash = (37 * hash) + IP_RANGE_RESERVATIONS_FIELD_NUMBER; + hash = (53 * hash) + getIpRangeReservationsList().hashCode(); + } + hash = (37 * hash) + CAPACITY_FIELD_NUMBER; + hash = (53 * hash) + capacity_; + if (getCloudRoutersCount() > 0) { + hash = (37 * hash) + CLOUD_ROUTERS_FIELD_NUMBER; + hash = (53 * hash) + getCloudRoutersList().hashCode(); + } + hash = (37 * hash) + SAC_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getSacAttachment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.Gateway parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway 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.networkconnectivity.v1.Gateway parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway 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.networkconnectivity.v1.Gateway parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway 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.networkconnectivity.v1.Gateway parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway 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.networkconnectivity.v1.Gateway parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway 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.networkconnectivity.v1.Gateway 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 gateway that can apply specialized traffic processing.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Gateway} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Gateway) + com.google.cloud.networkconnectivity.v1.GatewayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Gateway.class, + com.google.cloud.networkconnectivity.v1.Gateway.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.Gateway.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ipRangeReservationsBuilder_ == null) { + ipRangeReservations_ = java.util.Collections.emptyList(); + } else { + ipRangeReservations_ = null; + ipRangeReservationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + capacity_ = 0; + cloudRouters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sacAttachment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Gateway_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.Gateway.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway build() { + com.google.cloud.networkconnectivity.v1.Gateway result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway buildPartial() { + com.google.cloud.networkconnectivity.v1.Gateway result = + new com.google.cloud.networkconnectivity.v1.Gateway(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.Gateway result) { + if (ipRangeReservationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ipRangeReservations_ = java.util.Collections.unmodifiableList(ipRangeReservations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ipRangeReservations_ = ipRangeReservations_; + } else { + result.ipRangeReservations_ = ipRangeReservationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.Gateway result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.capacity_ = capacity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + cloudRouters_.makeImmutable(); + result.cloudRouters_ = cloudRouters_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sacAttachment_ = sacAttachment_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.Gateway) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.Gateway) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Gateway other) { + if (other == com.google.cloud.networkconnectivity.v1.Gateway.getDefaultInstance()) + return this; + if (ipRangeReservationsBuilder_ == null) { + if (!other.ipRangeReservations_.isEmpty()) { + if (ipRangeReservations_.isEmpty()) { + ipRangeReservations_ = other.ipRangeReservations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.addAll(other.ipRangeReservations_); + } + onChanged(); + } + } else { + if (!other.ipRangeReservations_.isEmpty()) { + if (ipRangeReservationsBuilder_.isEmpty()) { + ipRangeReservationsBuilder_.dispose(); + ipRangeReservationsBuilder_ = null; + ipRangeReservations_ = other.ipRangeReservations_; + bitField0_ = (bitField0_ & ~0x00000001); + ipRangeReservationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIpRangeReservationsFieldBuilder() + : null; + } else { + ipRangeReservationsBuilder_.addAllMessages(other.ipRangeReservations_); + } + } + } + if (other.capacity_ != 0) { + setCapacityValue(other.getCapacityValue()); + } + if (!other.cloudRouters_.isEmpty()) { + if (cloudRouters_.isEmpty()) { + cloudRouters_ = other.cloudRouters_; + bitField0_ |= 0x00000004; + } else { + ensureCloudRoutersIsMutable(); + cloudRouters_.addAll(other.cloudRouters_); + } + onChanged(); + } + if (!other.getSacAttachment().isEmpty()) { + sacAttachment_ = other.sacAttachment_; + 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 58: + { + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.parser(), + extensionRegistry); + if (ipRangeReservationsBuilder_ == null) { + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.add(m); + } else { + ipRangeReservationsBuilder_.addMessage(m); + } + break; + } // case 58 + case 80: + { + capacity_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 80 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCloudRoutersIsMutable(); + cloudRouters_.add(s); + break; + } // case 106 + case 114: + { + sacAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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.util.List + ipRangeReservations_ = java.util.Collections.emptyList(); + + private void ensureIpRangeReservationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ipRangeReservations_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation>( + ipRangeReservations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder> + ipRangeReservationsBuilder_; + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIpRangeReservationsList() { + if (ipRangeReservationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ipRangeReservations_); + } else { + return ipRangeReservationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIpRangeReservationsCount() { + if (ipRangeReservationsBuilder_ == null) { + return ipRangeReservations_.size(); + } else { + return ipRangeReservationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + getIpRangeReservations(int index) { + if (ipRangeReservationsBuilder_ == null) { + return ipRangeReservations_.get(index); + } else { + return ipRangeReservationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIpRangeReservations( + int index, com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation value) { + if (ipRangeReservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.set(index, value); + onChanged(); + } else { + ipRangeReservationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIpRangeReservations( + int index, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder + builderForValue) { + if (ipRangeReservationsBuilder_ == null) { + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.set(index, builderForValue.build()); + onChanged(); + } else { + ipRangeReservationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRangeReservations( + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation value) { + if (ipRangeReservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.add(value); + onChanged(); + } else { + ipRangeReservationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRangeReservations( + int index, com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation value) { + if (ipRangeReservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.add(index, value); + onChanged(); + } else { + ipRangeReservationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRangeReservations( + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder + builderForValue) { + if (ipRangeReservationsBuilder_ == null) { + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.add(builderForValue.build()); + onChanged(); + } else { + ipRangeReservationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRangeReservations( + int index, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder + builderForValue) { + if (ipRangeReservationsBuilder_ == null) { + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.add(index, builderForValue.build()); + onChanged(); + } else { + ipRangeReservationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIpRangeReservations( + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation> + values) { + if (ipRangeReservationsBuilder_ == null) { + ensureIpRangeReservationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRangeReservations_); + onChanged(); + } else { + ipRangeReservationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIpRangeReservations() { + if (ipRangeReservationsBuilder_ == null) { + ipRangeReservations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ipRangeReservationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIpRangeReservations(int index) { + if (ipRangeReservationsBuilder_ == null) { + ensureIpRangeReservationsIsMutable(); + ipRangeReservations_.remove(index); + onChanged(); + } else { + ipRangeReservationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder + getIpRangeReservationsBuilder(int index) { + return internalGetIpRangeReservationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder + getIpRangeReservationsOrBuilder(int index) { + if (ipRangeReservationsBuilder_ == null) { + return ipRangeReservations_.get(index); + } else { + return ipRangeReservationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder> + getIpRangeReservationsOrBuilderList() { + if (ipRangeReservationsBuilder_ != null) { + return ipRangeReservationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ipRangeReservations_); + } + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder + addIpRangeReservationsBuilder() { + return internalGetIpRangeReservationsFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder + addIpRangeReservationsBuilder(int index) { + return internalGetIpRangeReservationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of IP ranges that are reserved for this gateway's internal
+     * intfrastructure.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder> + getIpRangeReservationsBuilderList() { + return internalGetIpRangeReservationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder> + internalGetIpRangeReservationsFieldBuilder() { + if (ipRangeReservationsBuilder_ == null) { + ipRangeReservationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation.Builder, + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder>( + ipRangeReservations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + ipRangeReservations_ = null; + } + return ipRangeReservationsBuilder_; + } + + private int capacity_ = 0; + + /** + * + * + *
+     * Optional. The aggregate processing capacity of this gateway.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for capacity. + */ + @java.lang.Override + public int getCapacityValue() { + return capacity_; + } + + /** + * + * + *
+     * Optional. The aggregate processing capacity of this gateway.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for capacity to set. + * @return This builder for chaining. + */ + public Builder setCapacityValue(int value) { + capacity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The aggregate processing capacity of this gateway.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The capacity. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity getCapacity() { + com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity result = + com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity.forNumber(capacity_); + return result == null + ? com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The aggregate processing capacity of this gateway.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The capacity to set. + * @return This builder for chaining. + */ + public Builder setCapacity( + com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + capacity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The aggregate processing capacity of this gateway.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCapacity() { + bitField0_ = (bitField0_ & ~0x00000002); + capacity_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList cloudRouters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCloudRoutersIsMutable() { + if (!cloudRouters_.isModifiable()) { + cloudRouters_ = new com.google.protobuf.LazyStringArrayList(cloudRouters_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the cloudRouters. + */ + public com.google.protobuf.ProtocolStringList getCloudRoutersList() { + cloudRouters_.makeImmutable(); + return cloudRouters_; + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of cloudRouters. + */ + public int getCloudRoutersCount() { + return cloudRouters_.size(); + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The cloudRouters at the given index. + */ + public java.lang.String getCloudRouters(int index) { + return cloudRouters_.get(index); + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the cloudRouters at the given index. + */ + public com.google.protobuf.ByteString getCloudRoutersBytes(int index) { + return cloudRouters_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The cloudRouters to set. + * @return This builder for chaining. + */ + public Builder setCloudRouters(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudRoutersIsMutable(); + cloudRouters_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The cloudRouters to add. + * @return This builder for chaining. + */ + public Builder addCloudRouters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudRoutersIsMutable(); + cloudRouters_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The cloudRouters to add. + * @return This builder for chaining. + */ + public Builder addAllCloudRouters(java.lang.Iterable values) { + ensureCloudRoutersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudRouters_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCloudRouters() { + cloudRouters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of Cloud Routers that are connected to this gateway.
+     * Should be in the form:
+     * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+     * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the cloudRouters to add. + * @return This builder for chaining. + */ + public Builder addCloudRoutersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCloudRoutersIsMutable(); + cloudRouters_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object sacAttachment_ = ""; + + /** + * + * + *
+     * Output only. The URI of the connected SACAttachment.
+     * Should be in the form:
+     * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+     * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sacAttachment. + */ + public java.lang.String getSacAttachment() { + java.lang.Object ref = sacAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sacAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The URI of the connected SACAttachment.
+     * Should be in the form:
+     * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+     * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sacAttachment. + */ + public com.google.protobuf.ByteString getSacAttachmentBytes() { + java.lang.Object ref = sacAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sacAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The URI of the connected SACAttachment.
+     * Should be in the form:
+     * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+     * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The sacAttachment to set. + * @return This builder for chaining. + */ + public Builder setSacAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sacAttachment_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The URI of the connected SACAttachment.
+     * Should be in the form:
+     * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+     * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSacAttachment() { + sacAttachment_ = getDefaultInstance().getSacAttachment(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The URI of the connected SACAttachment.
+     * Should be in the form:
+     * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+     * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sacAttachment to set. + * @return This builder for chaining. + */ + public Builder setSacAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sacAttachment_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Gateway) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Gateway) + private static final com.google.cloud.networkconnectivity.v1.Gateway DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Gateway(); + } + + public static com.google.cloud.networkconnectivity.v1.Gateway getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Gateway 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.networkconnectivity.v1.Gateway getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRoute.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRoute.java new file mode 100644 index 000000000000..560e45e7fcf8 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRoute.java @@ -0,0 +1,2861 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * A gateway advertised route is a route that a gateway spoke advertises
+ * somewhere.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute} + */ +@com.google.protobuf.Generated +public final class GatewayAdvertisedRoute extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute) + GatewayAdvertisedRouteOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GatewayAdvertisedRoute"); + } + + // Use GatewayAdvertisedRoute.newBuilder() to construct. + private GatewayAdvertisedRoute(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GatewayAdvertisedRoute() { + name_ = ""; + description_ = ""; + uniqueId_ = ""; + state_ = 0; + ipRange_ = ""; + recipient_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.class, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder.class); + } + + /** + * + * + *
+   * The recipient of an advertised route.
+   * 
+ * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient} + */ + public enum Recipient implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No recipient specified. By default routes are advertised to the hub.
+     * 
+ * + * RECIPIENT_UNSPECIFIED = 0; + */ + RECIPIENT_UNSPECIFIED(0), + /** + * + * + *
+     * Advertises a route toward the hub. Other spokes reachable from this spoke
+     * will receive the route.
+     * 
+ * + * ADVERTISE_TO_HUB = 1; + */ + ADVERTISE_TO_HUB(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Recipient"); + } + + /** + * + * + *
+     * No recipient specified. By default routes are advertised to the hub.
+     * 
+ * + * RECIPIENT_UNSPECIFIED = 0; + */ + public static final int RECIPIENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Advertises a route toward the hub. Other spokes reachable from this spoke
+     * will receive the route.
+     * 
+ * + * ADVERTISE_TO_HUB = 1; + */ + public static final int ADVERTISE_TO_HUB_VALUE = 1; + + 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 Recipient 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 Recipient forNumber(int value) { + switch (value) { + case 0: + return RECIPIENT_UNSPECIFIED; + case 1: + return ADVERTISE_TO_HUB; + 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 Recipient findValueByNumber(int number) { + return Recipient.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.networkconnectivity.v1.GatewayAdvertisedRoute.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Recipient[] VALUES = values(); + + public static Recipient 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 Recipient(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The name of the gateway advertised route. Route names must be
+   * unique and use the following form:
+   * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_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 name of the gateway advertised route. Route names must be
+   * unique and use the following form:
+   * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The time the gateway advertised route was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.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 the gateway advertised route was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.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 the gateway advertised route was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.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 = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The time the gateway advertised route was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.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 the gateway advertised route was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.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 the gateway advertised route was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.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 LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * An optional description of the gateway advertised route.
+   * 
+ * + * string description = 5; + * + * @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; + } + } + + /** + * + * + *
+   * An optional description of the gateway advertised route.
+   * 
+ * + * string description = 5; + * + * @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 UNIQUE_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object uniqueId_ = ""; + + /** + * + * + *
+   * Output only. The Google-generated UUID for the gateway advertised route.
+   * This value is unique across all gateway advertised route resources. If a
+   * gateway advertised route is deleted and another with the same name is
+   * created, the new route is assigned a different `unique_id`.
+   * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uniqueId. + */ + @java.lang.Override + public java.lang.String getUniqueId() { + java.lang.Object ref = uniqueId_; + 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(); + uniqueId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The Google-generated UUID for the gateway advertised route.
+   * This value is unique across all gateway advertised route resources. If a
+   * gateway advertised route is deleted and another with the same name is
+   * created, the new route is assigned a different `unique_id`.
+   * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uniqueId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUniqueIdBytes() { + java.lang.Object ref = uniqueId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uniqueId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The current lifecycle state of this gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.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 current lifecycle state of this gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; + } + + public static final int IP_RANGE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipRange_ = ""; + + /** + * + * + *
+   * Immutable. This route's advertised IP address range. Must be a valid
+   * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+   * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+   * IPv6,
+   * `/128`.
+   * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The ipRange. + */ + @java.lang.Override + public java.lang.String getIpRange() { + java.lang.Object ref = ipRange_; + 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(); + ipRange_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. This route's advertised IP address range. Must be a valid
+   * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+   * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+   * IPv6,
+   * `/128`.
+   * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for ipRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpRangeBytes() { + java.lang.Object ref = ipRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIORITY_FIELD_NUMBER = 9; + private int priority_ = 0; + + /** + * + * + *
+   * Optional. The priority of this advertised route. You can choose a value
+   * from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
+   * priority of `100` to the ranges.
+   * 
+ * + * optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the priority field is set. + */ + @java.lang.Override + public boolean hasPriority() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The priority of this advertised route. You can choose a value
+   * from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
+   * priority of `100` to the ranges.
+   * 
+ * + * optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + public static final int RECIPIENT_FIELD_NUMBER = 10; + private int recipient_ = 0; + + /** + * + * + *
+   * Optional. The recipient of this advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for recipient. + */ + @java.lang.Override + public int getRecipientValue() { + return recipient_; + } + + /** + * + * + *
+   * Optional. The recipient of this advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The recipient. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient getRecipient() { + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient result = + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient.forNumber( + recipient_); + return result == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient.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(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uniqueId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, uniqueId_); + } + if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipRange_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, ipRange_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(9, priority_); + } + if (recipient_ + != com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient + .RECIPIENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, recipient_); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uniqueId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, uniqueId_); + } + if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ipRange_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, ipRange_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, priority_); + } + if (recipient_ + != com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient + .RECIPIENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, recipient_); + } + 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.networkconnectivity.v1.GatewayAdvertisedRoute)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute other = + (com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute) obj; + + if (!getName().equals(other.getName())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; + if (state_ != other.state_) return false; + if (!getIpRange().equals(other.getIpRange())) return false; + if (hasPriority() != other.hasPriority()) return false; + if (hasPriority()) { + if (getPriority() != other.getPriority()) return false; + } + if (recipient_ != other.recipient_) 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(); + 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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + UNIQUE_ID_FIELD_NUMBER; + hash = (53 * hash) + getUniqueId().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + IP_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpRange().hashCode(); + if (hasPriority()) { + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPriority(); + } + hash = (37 * hash) + RECIPIENT_FIELD_NUMBER; + hash = (53 * hash) + recipient_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute 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.networkconnectivity.v1.GatewayAdvertisedRoute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute 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.networkconnectivity.v1.GatewayAdvertisedRoute parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute 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.networkconnectivity.v1.GatewayAdvertisedRoute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute 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.networkconnectivity.v1.GatewayAdvertisedRoute parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute 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.networkconnectivity.v1.GatewayAdvertisedRoute 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 gateway advertised route is a route that a gateway spoke advertises
+   * somewhere.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute) + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.class, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + description_ = ""; + uniqueId_ = ""; + state_ = 0; + ipRange_ = ""; + priority_ = 0; + recipient_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute build() { + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute buildPartial() { + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute result = + new com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.uniqueId_ = uniqueId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ipRange_ = ipRange_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.priority_ = priority_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.recipient_ = recipient_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute other) { + if (other + == com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getUniqueId().isEmpty()) { + uniqueId_ = other.uniqueId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getIpRange().isEmpty()) { + ipRange_ = other.ipRange_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasPriority()) { + setPriority(other.getPriority()); + } + if (other.recipient_ != 0) { + setRecipientValue(other.getRecipientValue()); + } + 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: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + uniqueId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + ipRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + priority_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + recipient_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + 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 name of the gateway advertised route. Route names must be
+     * unique and use the following form:
+     * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_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 name of the gateway advertised route. Route names must be
+     * unique and use the following form:
+     * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_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 name of the gateway advertised route. Route names must be
+     * unique and use the following form:
+     * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_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 name of the gateway advertised route. Route names must be
+     * unique and use the following form:
+     * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_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 name of the gateway advertised route. Route names must be
+     * unique and use the following form:
+     * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_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 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 the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.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 the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.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 the gateway advertised route was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.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 the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.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 the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.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 the gateway advertised route was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.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.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional labels in key-value pair format. For more information about
+     * labels, see [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional labels in key-value pair format. For more information about
+     * labels, see [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional labels in key-value pair format. For more information about
+     * labels, see [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional labels in key-value pair format. For more information about
+     * labels, see [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional labels in key-value pair format. For more information about
+     * labels, see [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional labels in key-value pair format. For more information about
+     * labels, see [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+     * Optional labels in key-value pair format. For more information about
+     * labels, see [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * An optional description of the gateway advertised route.
+     * 
+ * + * string description = 5; + * + * @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; + } + } + + /** + * + * + *
+     * An optional description of the gateway advertised route.
+     * 
+ * + * string description = 5; + * + * @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; + } + } + + /** + * + * + *
+     * An optional description of the gateway advertised route.
+     * 
+ * + * string description = 5; + * + * @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; + } + + /** + * + * + *
+     * An optional description of the gateway advertised route.
+     * 
+ * + * string description = 5; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional description of the gateway advertised route.
+     * 
+ * + * string description = 5; + * + * @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 java.lang.Object uniqueId_ = ""; + + /** + * + * + *
+     * Output only. The Google-generated UUID for the gateway advertised route.
+     * This value is unique across all gateway advertised route resources. If a
+     * gateway advertised route is deleted and another with the same name is
+     * created, the new route is assigned a different `unique_id`.
+     * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uniqueId. + */ + public java.lang.String getUniqueId() { + java.lang.Object ref = uniqueId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uniqueId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The Google-generated UUID for the gateway advertised route.
+     * This value is unique across all gateway advertised route resources. If a
+     * gateway advertised route is deleted and another with the same name is
+     * created, the new route is assigned a different `unique_id`.
+     * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uniqueId. + */ + public com.google.protobuf.ByteString getUniqueIdBytes() { + java.lang.Object ref = uniqueId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uniqueId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The Google-generated UUID for the gateway advertised route.
+     * This value is unique across all gateway advertised route resources. If a
+     * gateway advertised route is deleted and another with the same name is
+     * created, the new route is assigned a different `unique_id`.
+     * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uniqueId to set. + * @return This builder for chaining. + */ + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uniqueId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Google-generated UUID for the gateway advertised route.
+     * This value is unique across all gateway advertised route resources. If a
+     * gateway advertised route is deleted and another with the same name is
+     * created, the new route is assigned a different `unique_id`.
+     * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUniqueId() { + uniqueId_ = getDefaultInstance().getUniqueId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Google-generated UUID for the gateway advertised route.
+     * This value is unique across all gateway advertised route resources. If a
+     * gateway advertised route is deleted and another with the same name is
+     * created, the new route is assigned a different `unique_id`.
+     * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uniqueId to set. + * @return This builder for chaining. + */ + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniqueId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The current lifecycle state of this gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.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 current lifecycle state of this gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current lifecycle state of this gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. The current lifecycle state of this gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current lifecycle state of this gateway advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ipRange_ = ""; + + /** + * + * + *
+     * Immutable. This route's advertised IP address range. Must be a valid
+     * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+     * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+     * IPv6,
+     * `/128`.
+     * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The ipRange. + */ + public java.lang.String getIpRange() { + java.lang.Object ref = ipRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. This route's advertised IP address range. Must be a valid
+     * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+     * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+     * IPv6,
+     * `/128`.
+     * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for ipRange. + */ + public com.google.protobuf.ByteString getIpRangeBytes() { + java.lang.Object ref = ipRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. This route's advertised IP address range. Must be a valid
+     * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+     * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+     * IPv6,
+     * `/128`.
+     * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The ipRange to set. + * @return This builder for chaining. + */ + public Builder setIpRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipRange_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. This route's advertised IP address range. Must be a valid
+     * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+     * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+     * IPv6,
+     * `/128`.
+     * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearIpRange() { + ipRange_ = getDefaultInstance().getIpRange(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. This route's advertised IP address range. Must be a valid
+     * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+     * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+     * IPv6,
+     * `/128`.
+     * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for ipRange to set. + * @return This builder for chaining. + */ + public Builder setIpRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipRange_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int priority_; + + /** + * + * + *
+     * Optional. The priority of this advertised route. You can choose a value
+     * from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
+     * priority of `100` to the ranges.
+     * 
+ * + * optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the priority field is set. + */ + @java.lang.Override + public boolean hasPriority() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Optional. The priority of this advertised route. You can choose a value
+     * from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
+     * priority of `100` to the ranges.
+     * 
+ * + * optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + /** + * + * + *
+     * Optional. The priority of this advertised route. You can choose a value
+     * from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
+     * priority of `100` to the ranges.
+     * 
+ * + * optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(int value) { + + priority_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The priority of this advertised route. You can choose a value
+     * from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
+     * priority of `100` to the ranges.
+     * 
+ * + * optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00000100); + priority_ = 0; + onChanged(); + return this; + } + + private int recipient_ = 0; + + /** + * + * + *
+     * Optional. The recipient of this advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for recipient. + */ + @java.lang.Override + public int getRecipientValue() { + return recipient_; + } + + /** + * + * + *
+     * Optional. The recipient of this advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for recipient to set. + * @return This builder for chaining. + */ + public Builder setRecipientValue(int value) { + recipient_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The recipient of this advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The recipient. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient getRecipient() { + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient result = + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient.forNumber( + recipient_); + return result == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The recipient of this advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The recipient to set. + * @return This builder for chaining. + */ + public Builder setRecipient( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + recipient_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The recipient of this advertised route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRecipient() { + bitField0_ = (bitField0_ & ~0x00000200); + recipient_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute) + private static final com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute(); + } + + public static com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayAdvertisedRoute 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.networkconnectivity.v1.GatewayAdvertisedRoute + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRouteName.java new file mode 100644 index 000000000000..f73f6c6a38d1 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRouteName.java @@ -0,0 +1,273 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class GatewayAdvertisedRouteName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPOKE_GATEWAY_ADVERTISED_ROUTE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String spoke; + private final String gatewayAdvertisedRoute; + + @Deprecated + protected GatewayAdvertisedRouteName() { + project = null; + location = null; + spoke = null; + gatewayAdvertisedRoute = null; + } + + private GatewayAdvertisedRouteName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + spoke = Preconditions.checkNotNull(builder.getSpoke()); + gatewayAdvertisedRoute = Preconditions.checkNotNull(builder.getGatewayAdvertisedRoute()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpoke() { + return spoke; + } + + public String getGatewayAdvertisedRoute() { + return gatewayAdvertisedRoute; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static GatewayAdvertisedRouteName of( + String project, String location, String spoke, String gatewayAdvertisedRoute) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpoke(spoke) + .setGatewayAdvertisedRoute(gatewayAdvertisedRoute) + .build(); + } + + public static String format( + String project, String location, String spoke, String gatewayAdvertisedRoute) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpoke(spoke) + .setGatewayAdvertisedRoute(gatewayAdvertisedRoute) + .build() + .toString(); + } + + public static @Nullable GatewayAdvertisedRouteName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPOKE_GATEWAY_ADVERTISED_ROUTE.validatedMatch( + formattedString, + "GatewayAdvertisedRouteName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("spoke"), + matchMap.get("gateway_advertised_route")); + } + + 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<@Nullable GatewayAdvertisedRouteName> values) { + List list = new ArrayList<>(values.size()); + for (GatewayAdvertisedRouteName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPOKE_GATEWAY_ADVERTISED_ROUTE.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 (spoke != null) { + fieldMapBuilder.put("spoke", spoke); + } + if (gatewayAdvertisedRoute != null) { + fieldMapBuilder.put("gateway_advertised_route", gatewayAdvertisedRoute); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPOKE_GATEWAY_ADVERTISED_ROUTE.instantiate( + "project", + project, + "location", + location, + "spoke", + spoke, + "gateway_advertised_route", + gatewayAdvertisedRoute); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + GatewayAdvertisedRouteName that = ((GatewayAdvertisedRouteName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.spoke, that.spoke) + && Objects.equals(this.gatewayAdvertisedRoute, that.gatewayAdvertisedRoute); + } + 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(spoke); + h *= 1000003; + h ^= Objects.hashCode(gatewayAdvertisedRoute); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route}. + */ + public static class Builder { + private String project; + private String location; + private String spoke; + private String gatewayAdvertisedRoute; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpoke() { + return spoke; + } + + public String getGatewayAdvertisedRoute() { + return gatewayAdvertisedRoute; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpoke(String spoke) { + this.spoke = spoke; + return this; + } + + public Builder setGatewayAdvertisedRoute(String gatewayAdvertisedRoute) { + this.gatewayAdvertisedRoute = gatewayAdvertisedRoute; + return this; + } + + private Builder(GatewayAdvertisedRouteName gatewayAdvertisedRouteName) { + this.project = gatewayAdvertisedRouteName.project; + this.location = gatewayAdvertisedRouteName.location; + this.spoke = gatewayAdvertisedRouteName.spoke; + this.gatewayAdvertisedRoute = gatewayAdvertisedRouteName.gatewayAdvertisedRoute; + } + + public GatewayAdvertisedRouteName build() { + return new GatewayAdvertisedRouteName(this); + } + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRouteOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRouteOrBuilder.java new file mode 100644 index 000000000000..db3d9cbb8cab --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayAdvertisedRouteOrBuilder.java @@ -0,0 +1,393 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface GatewayAdvertisedRouteOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the gateway advertised route. Route names must be
+   * unique and use the following form:
+   * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The name of the gateway advertised route. Route names must be
+   * unique and use the following form:
+   * `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The time the gateway advertised route was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The time the gateway advertised route was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The time the gateway advertised route was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the gateway advertised route was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The time the gateway advertised route was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The time the gateway advertised route was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional labels in key-value pair format. For more information about
+   * labels, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
+   * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * An optional description of the gateway advertised route.
+   * 
+ * + * string description = 5; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * An optional description of the gateway advertised route.
+   * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The Google-generated UUID for the gateway advertised route.
+   * This value is unique across all gateway advertised route resources. If a
+   * gateway advertised route is deleted and another with the same name is
+   * created, the new route is assigned a different `unique_id`.
+   * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uniqueId. + */ + java.lang.String getUniqueId(); + + /** + * + * + *
+   * Output only. The Google-generated UUID for the gateway advertised route.
+   * This value is unique across all gateway advertised route resources. If a
+   * gateway advertised route is deleted and another with the same name is
+   * created, the new route is assigned a different `unique_id`.
+   * 
+ * + * string unique_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uniqueId. + */ + com.google.protobuf.ByteString getUniqueIdBytes(); + + /** + * + * + *
+   * Output only. The current lifecycle state of this gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The current lifecycle state of this gateway advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networkconnectivity.v1.State getState(); + + /** + * + * + *
+   * Immutable. This route's advertised IP address range. Must be a valid
+   * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+   * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+   * IPv6,
+   * `/128`.
+   * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The ipRange. + */ + java.lang.String getIpRange(); + + /** + * + * + *
+   * Immutable. This route's advertised IP address range. Must be a valid
+   * CIDR-formatted prefix. If an IP address is provided without a subnet mask,
+   * it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
+   * IPv6,
+   * `/128`.
+   * 
+ * + * string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for ipRange. + */ + com.google.protobuf.ByteString getIpRangeBytes(); + + /** + * + * + *
+   * Optional. The priority of this advertised route. You can choose a value
+   * from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
+   * priority of `100` to the ranges.
+   * 
+ * + * optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the priority field is set. + */ + boolean hasPriority(); + + /** + * + * + *
+   * Optional. The priority of this advertised route. You can choose a value
+   * from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
+   * priority of `100` to the ranges.
+   * 
+ * + * optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priority. + */ + int getPriority(); + + /** + * + * + *
+   * Optional. The recipient of this advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for recipient. + */ + int getRecipientValue(); + + /** + * + * + *
+   * Optional. The recipient of this advertised route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The recipient. + */ + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Recipient getRecipient(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayOrBuilder.java new file mode 100644 index 000000000000..4ac1cd781e15 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GatewayOrBuilder.java @@ -0,0 +1,229 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface GatewayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Gateway) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIpRangeReservationsList(); + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation getIpRangeReservations( + int index); + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIpRangeReservationsCount(); + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder> + getIpRangeReservationsOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of IP ranges that are reserved for this gateway's internal
+   * intfrastructure.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationOrBuilder + getIpRangeReservationsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The aggregate processing capacity of this gateway.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for capacity. + */ + int getCapacityValue(); + + /** + * + * + *
+   * Optional. The aggregate processing capacity of this gateway.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The capacity. + */ + com.google.cloud.networkconnectivity.v1.Gateway.GatewayCapacity getCapacity(); + + /** + * + * + *
+   * Output only. The list of Cloud Routers that are connected to this gateway.
+   * Should be in the form:
+   * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+   * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the cloudRouters. + */ + java.util.List getCloudRoutersList(); + + /** + * + * + *
+   * Output only. The list of Cloud Routers that are connected to this gateway.
+   * Should be in the form:
+   * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+   * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of cloudRouters. + */ + int getCloudRoutersCount(); + + /** + * + * + *
+   * Output only. The list of Cloud Routers that are connected to this gateway.
+   * Should be in the form:
+   * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+   * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The cloudRouters at the given index. + */ + java.lang.String getCloudRouters(int index); + + /** + * + * + *
+   * Output only. The list of Cloud Routers that are connected to this gateway.
+   * Should be in the form:
+   * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
+   * 
+ * + * repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the cloudRouters at the given index. + */ + com.google.protobuf.ByteString getCloudRoutersBytes(int index); + + /** + * + * + *
+   * Output only. The URI of the connected SACAttachment.
+   * Should be in the form:
+   * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+   * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sacAttachment. + */ + java.lang.String getSacAttachment(); + + /** + * + * + *
+   * Output only. The URI of the connected SACAttachment.
+   * Should be in the form:
+   * projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
+   * 
+ * + * + * string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sacAttachment. + */ + com.google.protobuf.ByteString getSacAttachmentBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetGatewayAdvertisedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetGatewayAdvertisedRouteRequest.java new file mode 100644 index 000000000000..2c5ed3d27b47 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetGatewayAdvertisedRouteRequest.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/cloud/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * The request for
+ * [HubService.GetGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.GetGatewayAdvertisedRoute].
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest} + */ +@com.google.protobuf.Generated +public final class GetGatewayAdvertisedRouteRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) + GetGatewayAdvertisedRouteRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetGatewayAdvertisedRouteRequest"); + } + + // Use GetGatewayAdvertisedRouteRequest.newBuilder() to construct. + private GetGatewayAdvertisedRouteRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetGatewayAdvertisedRouteRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetGatewayAdvertisedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the gateway advertised route to get.
+   * 
+ * + * + * 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 gateway advertised route to get.
+   * 
+ * + * + * 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest other = + (com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request for
+   * [HubService.GetGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.GetGatewayAdvertisedRoute].
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetGatewayAdvertisedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest.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.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest build() { + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest result = + new com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest + .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 gateway advertised route to get.
+     * 
+ * + * + * 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 gateway advertised route to get.
+     * 
+ * + * + * 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 gateway advertised route to get.
+     * 
+ * + * + * 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 gateway advertised route to get.
+     * 
+ * + * + * 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 gateway advertised route to get.
+     * 
+ * + * + * 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) + private static final com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetGatewayAdvertisedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetGatewayAdvertisedRouteRequestOrBuilder.java new file mode 100644 index 000000000000..2f310f0c0729 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetGatewayAdvertisedRouteRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface GetGatewayAdvertisedRouteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the gateway advertised route to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the gateway advertised route to get.
+   * 
+ * + * + * 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-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Group.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Group.java index dcd1efa1add4..f76e972e335f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Group.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Group.java @@ -589,7 +589,9 @@ public com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder getAutoAccept * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The routeTable. */ @@ -615,7 +617,9 @@ public java.lang.String getRouteTable() { * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for routeTable. */ @@ -2503,7 +2507,9 @@ public com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder getAutoAccept * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The routeTable. */ @@ -2528,7 +2534,9 @@ public java.lang.String getRouteTable() { * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for routeTable. */ @@ -2553,7 +2561,9 @@ public com.google.protobuf.ByteString getRouteTableBytes() { * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @param value The routeTable to set. * @return This builder for chaining. @@ -2577,7 +2587,9 @@ public Builder setRouteTable(java.lang.String value) { * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -2597,7 +2609,9 @@ public Builder clearRouteTable() { * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for routeTable to set. * @return This builder for chaining. diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupOrBuilder.java index 0f84af37ad4f..2ff69e248bec 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupOrBuilder.java @@ -349,7 +349,9 @@ java.lang.String getLabelsOrDefault( * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The routeTable. */ @@ -364,7 +366,9 @@ java.lang.String getLabelsOrDefault( * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` * * - * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for routeTable. */ diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index a31f0693d707..c560b6d3b698 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java @@ -94,6 +94,785 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.networkconnectivity.v1.Hub.Builder.class); } + public interface ExportPscConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Hub.ExportPscConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Controls whether Private Service Connect endpoints for regional
+     * ILBs and regional Google APIs should be propagated. Default value is true
+     * if export_psc is true. Otherwise, the default value is false.
+     * 
+ * + * + * optional bool published_services_and_regional_google_apis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the publishedServicesAndRegionalGoogleApis field is set. + */ + boolean hasPublishedServicesAndRegionalGoogleApis(); + + /** + * + * + *
+     * Optional. Controls whether Private Service Connect endpoints for regional
+     * ILBs and regional Google APIs should be propagated. Default value is true
+     * if export_psc is true. Otherwise, the default value is false.
+     * 
+ * + * + * optional bool published_services_and_regional_google_apis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The publishedServicesAndRegionalGoogleApis. + */ + boolean getPublishedServicesAndRegionalGoogleApis(); + + /** + * + * + *
+     * Optional. Controls whether Private Service Connect endpoints for global
+     * Google APIs should be propagated. The default value is false.
+     * 
+ * + * optional bool global_google_apis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the globalGoogleApis field is set. + */ + boolean hasGlobalGoogleApis(); + + /** + * + * + *
+     * Optional. Controls whether Private Service Connect endpoints for global
+     * Google APIs should be propagated. The default value is false.
+     * 
+ * + * optional bool global_google_apis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The globalGoogleApis. + */ + boolean getGlobalGoogleApis(); + } + + /** + * + * + *
+   * Configuration for more granular control of Private Service Connect
+   * connection propagation.
+   * This allows enabling or disabling connection propagation for specific types
+   * of Private Service Connect endpoints.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub.ExportPscConfig} + */ + public static final class ExportPscConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Hub.ExportPscConfig) + ExportPscConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportPscConfig"); + } + + // Use ExportPscConfig.newBuilder() to construct. + private ExportPscConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportPscConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Hub_ExportPscConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Hub_ExportPscConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.class, + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.Builder.class); + } + + private int bitField0_; + public static final int PUBLISHED_SERVICES_AND_REGIONAL_GOOGLE_APIS_FIELD_NUMBER = 1; + private boolean publishedServicesAndRegionalGoogleApis_ = false; + + /** + * + * + *
+     * Optional. Controls whether Private Service Connect endpoints for regional
+     * ILBs and regional Google APIs should be propagated. Default value is true
+     * if export_psc is true. Otherwise, the default value is false.
+     * 
+ * + * + * optional bool published_services_and_regional_google_apis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the publishedServicesAndRegionalGoogleApis field is set. + */ + @java.lang.Override + public boolean hasPublishedServicesAndRegionalGoogleApis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Controls whether Private Service Connect endpoints for regional
+     * ILBs and regional Google APIs should be propagated. Default value is true
+     * if export_psc is true. Otherwise, the default value is false.
+     * 
+ * + * + * optional bool published_services_and_regional_google_apis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The publishedServicesAndRegionalGoogleApis. + */ + @java.lang.Override + public boolean getPublishedServicesAndRegionalGoogleApis() { + return publishedServicesAndRegionalGoogleApis_; + } + + public static final int GLOBAL_GOOGLE_APIS_FIELD_NUMBER = 2; + private boolean globalGoogleApis_ = false; + + /** + * + * + *
+     * Optional. Controls whether Private Service Connect endpoints for global
+     * Google APIs should be propagated. The default value is false.
+     * 
+ * + * optional bool global_google_apis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the globalGoogleApis field is set. + */ + @java.lang.Override + public boolean hasGlobalGoogleApis() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Controls whether Private Service Connect endpoints for global
+     * Google APIs should be propagated. The default value is false.
+     * 
+ * + * optional bool global_google_apis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The globalGoogleApis. + */ + @java.lang.Override + public boolean getGlobalGoogleApis() { + return globalGoogleApis_; + } + + 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, publishedServicesAndRegionalGoogleApis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, globalGoogleApis_); + } + 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, publishedServicesAndRegionalGoogleApis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, globalGoogleApis_); + } + 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.networkconnectivity.v1.Hub.ExportPscConfig)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig other = + (com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig) obj; + + if (hasPublishedServicesAndRegionalGoogleApis() + != other.hasPublishedServicesAndRegionalGoogleApis()) return false; + if (hasPublishedServicesAndRegionalGoogleApis()) { + if (getPublishedServicesAndRegionalGoogleApis() + != other.getPublishedServicesAndRegionalGoogleApis()) return false; + } + if (hasGlobalGoogleApis() != other.hasGlobalGoogleApis()) return false; + if (hasGlobalGoogleApis()) { + if (getGlobalGoogleApis() != other.getGlobalGoogleApis()) 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 (hasPublishedServicesAndRegionalGoogleApis()) { + hash = (37 * hash) + PUBLISHED_SERVICES_AND_REGIONAL_GOOGLE_APIS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getPublishedServicesAndRegionalGoogleApis()); + } + if (hasGlobalGoogleApis()) { + hash = (37 * hash) + GLOBAL_GOOGLE_APIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGlobalGoogleApis()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig 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.networkconnectivity.v1.Hub.ExportPscConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig 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.networkconnectivity.v1.Hub.ExportPscConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig 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.networkconnectivity.v1.Hub.ExportPscConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig 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.networkconnectivity.v1.Hub.ExportPscConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig 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.networkconnectivity.v1.Hub.ExportPscConfig 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 more granular control of Private Service Connect
+     * connection propagation.
+     * This allows enabling or disabling connection propagation for specific types
+     * of Private Service Connect endpoints.
+     * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub.ExportPscConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Hub.ExportPscConfig) + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Hub_ExportPscConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Hub_ExportPscConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.class, + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + publishedServicesAndRegionalGoogleApis_ = false; + globalGoogleApis_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Hub_ExportPscConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig build() { + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig buildPartial() { + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig result = + new com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.publishedServicesAndRegionalGoogleApis_ = publishedServicesAndRegionalGoogleApis_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.globalGoogleApis_ = globalGoogleApis_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig other) { + if (other + == com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.getDefaultInstance()) + return this; + if (other.hasPublishedServicesAndRegionalGoogleApis()) { + setPublishedServicesAndRegionalGoogleApis( + other.getPublishedServicesAndRegionalGoogleApis()); + } + if (other.hasGlobalGoogleApis()) { + setGlobalGoogleApis(other.getGlobalGoogleApis()); + } + 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: + { + publishedServicesAndRegionalGoogleApis_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + globalGoogleApis_ = 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 boolean publishedServicesAndRegionalGoogleApis_; + + /** + * + * + *
+       * Optional. Controls whether Private Service Connect endpoints for regional
+       * ILBs and regional Google APIs should be propagated. Default value is true
+       * if export_psc is true. Otherwise, the default value is false.
+       * 
+ * + * + * optional bool published_services_and_regional_google_apis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the publishedServicesAndRegionalGoogleApis field is set. + */ + @java.lang.Override + public boolean hasPublishedServicesAndRegionalGoogleApis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Controls whether Private Service Connect endpoints for regional
+       * ILBs and regional Google APIs should be propagated. Default value is true
+       * if export_psc is true. Otherwise, the default value is false.
+       * 
+ * + * + * optional bool published_services_and_regional_google_apis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The publishedServicesAndRegionalGoogleApis. + */ + @java.lang.Override + public boolean getPublishedServicesAndRegionalGoogleApis() { + return publishedServicesAndRegionalGoogleApis_; + } + + /** + * + * + *
+       * Optional. Controls whether Private Service Connect endpoints for regional
+       * ILBs and regional Google APIs should be propagated. Default value is true
+       * if export_psc is true. Otherwise, the default value is false.
+       * 
+ * + * + * optional bool published_services_and_regional_google_apis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The publishedServicesAndRegionalGoogleApis to set. + * @return This builder for chaining. + */ + public Builder setPublishedServicesAndRegionalGoogleApis(boolean value) { + + publishedServicesAndRegionalGoogleApis_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Controls whether Private Service Connect endpoints for regional
+       * ILBs and regional Google APIs should be propagated. Default value is true
+       * if export_psc is true. Otherwise, the default value is false.
+       * 
+ * + * + * optional bool published_services_and_regional_google_apis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPublishedServicesAndRegionalGoogleApis() { + bitField0_ = (bitField0_ & ~0x00000001); + publishedServicesAndRegionalGoogleApis_ = false; + onChanged(); + return this; + } + + private boolean globalGoogleApis_; + + /** + * + * + *
+       * Optional. Controls whether Private Service Connect endpoints for global
+       * Google APIs should be propagated. The default value is false.
+       * 
+ * + * optional bool global_google_apis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the globalGoogleApis field is set. + */ + @java.lang.Override + public boolean hasGlobalGoogleApis() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Controls whether Private Service Connect endpoints for global
+       * Google APIs should be propagated. The default value is false.
+       * 
+ * + * optional bool global_google_apis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The globalGoogleApis. + */ + @java.lang.Override + public boolean getGlobalGoogleApis() { + return globalGoogleApis_; + } + + /** + * + * + *
+       * Optional. Controls whether Private Service Connect endpoints for global
+       * Google APIs should be propagated. The default value is false.
+       * 
+ * + * optional bool global_google_apis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The globalGoogleApis to set. + * @return This builder for chaining. + */ + public Builder setGlobalGoogleApis(boolean value) { + + globalGoogleApis_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Controls whether Private Service Connect endpoints for global
+       * Google APIs should be propagated. The default value is false.
+       * 
+ * + * optional bool global_google_apis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGlobalGoogleApis() { + bitField0_ = (bitField0_ & ~0x00000002); + globalGoogleApis_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Hub.ExportPscConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Hub.ExportPscConfig) + private static final com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig(); + } + + public static com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportPscConfig 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.networkconnectivity.v1.Hub.ExportPscConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -531,13 +1310,15 @@ public com.google.cloud.networkconnectivity.v1.State getState() { * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getRoutingVpcsList() { @@ -548,13 +1329,15 @@ public java.util.List getRou * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List @@ -566,13 +1349,15 @@ public java.util.List getRou * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getRoutingVpcsCount() { @@ -583,13 +1368,15 @@ public int getRoutingVpcsCount() { * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index) { @@ -600,13 +1387,15 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder( @@ -912,6 +1701,69 @@ public boolean getExportPsc() { return exportPsc_; } + public static final int EXPORT_PSC_CONFIG_FIELD_NUMBER = 17; + private com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig exportPscConfig_; + + /** + * + * + *
+   * Optional. Config for more granular control of Private Service Connect
+   * transitivity.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportPscConfig field is set. + */ + @java.lang.Override + public boolean hasExportPscConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. Config for more granular control of Private Service Connect
+   * transitivity.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportPscConfig. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig getExportPscConfig() { + return exportPscConfig_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.getDefaultInstance() + : exportPscConfig_; + } + + /** + * + * + *
+   * Optional. Config for more granular control of Private Service Connect
+   * transitivity.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfigOrBuilder + getExportPscConfigOrBuilder() { + return exportPscConfig_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.getDefaultInstance() + : exportPscConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -967,6 +1819,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(15, exportPsc_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(17, getExportPscConfig()); + } getUnknownFields().writeTo(output); } @@ -1030,6 +1885,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, exportPsc_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getExportPscConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1071,6 +1929,10 @@ public boolean equals(final java.lang.Object obj) { if (hasExportPsc()) { if (getExportPsc() != other.getExportPsc()) return false; } + if (hasExportPscConfig() != other.hasExportPscConfig()) return false; + if (hasExportPscConfig()) { + if (!getExportPscConfig().equals(other.getExportPscConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1122,6 +1984,10 @@ public int hashCode() { hash = (37 * hash) + EXPORT_PSC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExportPsc()); } + if (hasExportPscConfig()) { + hash = (37 * hash) + EXPORT_PSC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExportPscConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1294,6 +2160,7 @@ private void maybeForceBuilderInitialization() { internalGetUpdateTimeFieldBuilder(); internalGetRoutingVpcsFieldBuilder(); internalGetSpokeSummaryFieldBuilder(); + internalGetExportPscConfigFieldBuilder(); } } @@ -1332,6 +2199,11 @@ public Builder clear() { policyMode_ = 0; presetTopology_ = 0; exportPsc_ = false; + exportPscConfig_ = null; + if (exportPscConfigBuilder_ != null) { + exportPscConfigBuilder_.dispose(); + exportPscConfigBuilder_ = null; + } return this; } @@ -1425,6 +2297,11 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) { result.exportPsc_ = exportPsc_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.exportPscConfig_ = + exportPscConfigBuilder_ == null ? exportPscConfig_ : exportPscConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -1515,6 +2392,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) { if (other.hasExportPsc()) { setExportPsc(other.getExportPsc()); } + if (other.hasExportPscConfig()) { + mergeExportPscConfig(other.getExportPscConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1637,6 +2517,13 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 120 + case 138: + { + input.readMessage( + internalGetExportPscConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2746,13 +3633,15 @@ private void ensureRoutingVpcsIsMutable() { * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getRoutingVpcsList() { if (routingVpcsBuilder_ == null) { @@ -2766,13 +3655,15 @@ public java.util.List getRou * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getRoutingVpcsCount() { if (routingVpcsBuilder_ == null) { @@ -2786,13 +3677,15 @@ public int getRoutingVpcsCount() { * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index) { if (routingVpcsBuilder_ == null) { @@ -2806,13 +3699,15 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRoutingVpcs( int index, com.google.cloud.networkconnectivity.v1.RoutingVPC value) { @@ -2833,13 +3728,15 @@ public Builder setRoutingVpcs( * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRoutingVpcs( int index, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder builderForValue) { @@ -2857,13 +3754,15 @@ public Builder setRoutingVpcs( * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRoutingVpcs(com.google.cloud.networkconnectivity.v1.RoutingVPC value) { if (routingVpcsBuilder_ == null) { @@ -2883,13 +3782,15 @@ public Builder addRoutingVpcs(com.google.cloud.networkconnectivity.v1.RoutingVPC * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRoutingVpcs( int index, com.google.cloud.networkconnectivity.v1.RoutingVPC value) { @@ -2910,13 +3811,15 @@ public Builder addRoutingVpcs( * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRoutingVpcs( com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder builderForValue) { @@ -2934,13 +3837,15 @@ public Builder addRoutingVpcs( * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRoutingVpcs( int index, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder builderForValue) { @@ -2958,13 +3863,15 @@ public Builder addRoutingVpcs( * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllRoutingVpcs( java.lang.Iterable values) { @@ -2982,13 +3889,15 @@ public Builder addAllRoutingVpcs( * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRoutingVpcs() { if (routingVpcsBuilder_ == null) { @@ -3005,13 +3914,15 @@ public Builder clearRoutingVpcs() { * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeRoutingVpcs(int index) { if (routingVpcsBuilder_ == null) { @@ -3028,13 +3939,15 @@ public Builder removeRoutingVpcs(int index) { * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcsBuilder( int index) { @@ -3045,13 +3958,15 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder( int index) { @@ -3066,13 +3981,15 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getRoutingVpcsOrBuilderList() { @@ -3087,13 +4004,15 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder() { return internalGetRoutingVpcsFieldBuilder() @@ -3104,13 +4023,15 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder( int index) { @@ -3123,13 +4044,15 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs * * *
-     * The VPC networks associated with this hub's spokes.
+     * Output only. The VPC networks associated with this hub's spokes.
      *
      * This field is read-only. Network Connectivity Center automatically
      * populates it based on the set of spokes attached to the hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getRoutingVpcsBuilderList() { @@ -3960,6 +4883,234 @@ public Builder clearExportPsc() { return this; } + private com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig exportPscConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig, + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.Builder, + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfigOrBuilder> + exportPscConfigBuilder_; + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportPscConfig field is set. + */ + public boolean hasExportPscConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportPscConfig. + */ + public com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig getExportPscConfig() { + if (exportPscConfigBuilder_ == null) { + return exportPscConfig_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.getDefaultInstance() + : exportPscConfig_; + } else { + return exportPscConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportPscConfig( + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig value) { + if (exportPscConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportPscConfig_ = value; + } else { + exportPscConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportPscConfig( + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.Builder builderForValue) { + if (exportPscConfigBuilder_ == null) { + exportPscConfig_ = builderForValue.build(); + } else { + exportPscConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExportPscConfig( + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig value) { + if (exportPscConfigBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && exportPscConfig_ != null + && exportPscConfig_ + != com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig + .getDefaultInstance()) { + getExportPscConfigBuilder().mergeFrom(value); + } else { + exportPscConfig_ = value; + } + } else { + exportPscConfigBuilder_.mergeFrom(value); + } + if (exportPscConfig_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExportPscConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + exportPscConfig_ = null; + if (exportPscConfigBuilder_ != null) { + exportPscConfigBuilder_.dispose(); + exportPscConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.Builder + getExportPscConfigBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetExportPscConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfigOrBuilder + getExportPscConfigOrBuilder() { + if (exportPscConfigBuilder_ != null) { + return exportPscConfigBuilder_.getMessageOrBuilder(); + } else { + return exportPscConfig_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.getDefaultInstance() + : exportPscConfig_; + } + } + + /** + * + * + *
+     * Optional. Config for more granular control of Private Service Connect
+     * transitivity.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig, + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.Builder, + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfigOrBuilder> + internalGetExportPscConfigFieldBuilder() { + if (exportPscConfigBuilder_ == null) { + exportPscConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig, + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig.Builder, + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfigOrBuilder>( + getExportPscConfig(), getParentForChildren(), isClean()); + exportPscConfig_ = null; + } + return exportPscConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Hub) } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java index 4309f44f94d7..2e5d7c619452 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java @@ -299,13 +299,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.List getRoutingVpcsList(); @@ -313,13 +315,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index); @@ -327,13 +331,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getRoutingVpcsCount(); @@ -341,13 +347,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.List getRoutingVpcsOrBuilderList(); @@ -356,13 +364,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * The VPC networks associated with this hub's spokes.
+   * Output only. The VPC networks associated with this hub's spokes.
    *
    * This field is read-only. Network Connectivity Center automatically
    * populates it based on the set of spokes attached to the hub.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10; + * + * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index); @@ -598,4 +608,51 @@ java.lang.String getLabelsOrDefault( * @return The exportPsc. */ boolean getExportPsc(); + + /** + * + * + *
+   * Optional. Config for more granular control of Private Service Connect
+   * transitivity.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportPscConfig field is set. + */ + boolean hasExportPscConfig(); + + /** + * + * + *
+   * Optional. Config for more granular control of Private Service Connect
+   * transitivity.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportPscConfig. + */ + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfig getExportPscConfig(); + + /** + * + * + *
+   * Optional. Config for more granular control of Private Service Connect
+   * transitivity.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Hub.ExportPscConfig export_psc_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkconnectivity.v1.Hub.ExportPscConfigOrBuilder + getExportPscConfigOrBuilder(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java index 74fb7d11b482..74a308be3448 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_Hub_ExportPscConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_Hub_ExportPscConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -244,6 +248,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkconnectivity_v1_LinkedVpcNetwork_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_networkconnectivity_v1_LinkedVpcNetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_Gateway_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_Gateway_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_Gateway_IpRangeReservation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_Gateway_IpRangeReservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_GatewayAdvertisedRoute_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_CreateGatewayAdvertisedRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_CreateGatewayAdvertisedRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_GetGatewayAdvertisedRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_GetGatewayAdvertisedRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_UpdateGatewayAdvertisedRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_UpdateGatewayAdvertisedRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_DeleteGatewayAdvertisedRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_DeleteGatewayAdvertisedRouteRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkconnectivity_v1_LinkedProducerVpcNetwork_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -272,6 +316,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_NextHopSpoke_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_NextHopSpoke_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkconnectivity_v1_SpokeSummary_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -313,7 +361,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032\031google/api/resource.proto\0320google/clo" + "ud/networkconnectivity/v1/common.proto\032#" + "google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\317\006\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\362\010\n" + "\003Hub\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\005\0225\n" + "\013create_time\030\002" @@ -325,49 +373,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\005 \001(\tB\004\342A\001\001\022\027\n" + "\tunique_id\030\010 \001(\tB\004\342A\001\003\022?\n" + "\005state\030\t" - + " \001(\0162*.google.cloud.networkconnectivity.v1.StateB\004\342A\001\003\022E\n" + + " \001(\0162*.google.cloud.networkconnectivity.v1.StateB\004\342A\001\003\022K\n" + "\014routing_vpcs\030\n" - + " \003(\0132/.google.cloud.networkconnectivity.v1.RoutingVPC\022\032\n" + + " \003(\0132/" + + ".google.cloud.networkconnectivity.v1.RoutingVPCB\004\342A\001\003\022\032\n" + "\014route_tables\030\013 \003(\tB\004\342A\001\003\022N\n\r" - + "spoke_summary\030\014" - + " \001(\01321.google.cloud.networkconnectivity.v1.SpokeSummaryB\004\342A\001\003\022J\n" + + "spoke_summary\030\014 \001(\01321.google.cloud." + + "networkconnectivity.v1.SpokeSummaryB\004\342A\001\003\022J\n" + "\013policy_mode\030\r" + " \001(\0162/.google.cloud.networkconnectivity.v1.PolicyModeB\004\342A\001\001\022R\n" - + "\017preset_topology\030\016" - + " \001(\01623.google.cloud.networkconnectivity.v1.PresetTopologyB\004\342A\001\001\022\035\n\n" - + "export_psc\030\017 \001(\010B\004\342A\001\001H\000\210\001\001\032-\n" + + "\017preset_topology\030\016 \001(\01623.google.cloud.ne" + + "tworkconnectivity.v1.PresetTopologyB\004\342A\001\001\022\035\n\n" + + "export_psc\030\017 \001(\010B\004\342A\001\001H\000\210\001\001\022Y\n" + + "\021export_psc_config\030\021 \001(\01328.google.cloud.netwo" + + "rkconnectivity.v1.Hub.ExportPscConfigB\004\342A\001\001\032\277\001\n" + + "\017ExportPscConfig\022>\n" + + "+published_services_and_regional_google_apis\030\001" + + " \001(\010B\004\342A\001\001H\000\210\001\001\022%\n" + + "\022global_google_apis\030\002 \001(\010B\004\342A\001\001H\001\210\001\001B.\n" + + ",_published_services_and_regional_google_apisB\025\n" + + "\023_global_google_apis\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:[\352AX\n" - + "&networkconnectivity.googleapis.com/Hub\022." - + "projects/{project}/locations/global/hubs/{hub}B\r\n" + + "&networkconnectivity.googleapi" + + "s.com/Hub\022.projects/{project}/locations/global/hubs/{hub}B\r\n" + "\013_export_psc\"\200\001\n\n" + "RoutingVPC\0220\n" + "\003uri\030\001 \001(\tB#\372A \n" + "\036compute.googleapis.com/Network\022@\n" + "2required_for_new_site_to_site_data_transfer_spokes\030\002" - + " \001(\010B\004\342A\001\003\"\326\014\n" + + " \001(\010B\004\342A\001\003\"\233\r\n" + "\005Spoke\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\005\0225\n" + "\013create_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022F\n" - + "\006labels\030\004 \003(\01326.google.cl" - + "oud.networkconnectivity.v1.Spoke.LabelsEntry\022\031\n" + + "\006labels\030\004 \003(\0132" + + "6.google.cloud.networkconnectivity.v1.Spoke.LabelsEntry\022\031\n" + "\013description\030\005 \001(\tB\004\342A\001\001\022<\n" + "\003hub\030\006 \001(\tB/\342A\001\005\372A(\n" + "&networkconnectivity.googleapis.com/Hub\022@\n" + "\005group\030\027 \001(\tB1\342A\001\001\372A*\n" + "(networkconnectivity.googleapis.com/Group\022W\n" - + "\022linked_vpn_tunnels\030\021 \001(\01325.google.clo" - + "ud.networkconnectivity.v1.LinkedVpnTunnelsB\004\342A\001\001\022q\n" - + "\037linked_interconnect_attachments\030\022 \001(\0132B.google.cloud.networkconnecti" - + "vity.v1.LinkedInterconnectAttachmentsB\004\342A\001\001\022t\n" - + "!linked_router_appliance_instances\030\023 \001(\0132C.google.cloud.networkconnectivit" - + "y.v1.LinkedRouterApplianceInstancesB\004\342A\001\001\022W\n" - + "\022linked_vpc_network\030\024 \001(\01325.google.c" - + "loud.networkconnectivity.v1.LinkedVpcNetworkB\004\342A\001\001\022h\n" + + "\022linked_vpn_tunnels\030\021 \001(\01325" + + ".google.cloud.networkconnectivity.v1.LinkedVpnTunnelsB\004\342A\001\001\022q\n" + + "\037linked_interconnect_attachments\030\022 \001(\0132B.google.cloud.netw" + + "orkconnectivity.v1.LinkedInterconnectAttachmentsB\004\342A\001\001\022t\n" + + "!linked_router_appliance_instances\030\023 \001(\0132C.google.cloud.network" + + "connectivity.v1.LinkedRouterApplianceInstancesB\004\342A\001\001\022W\n" + + "\022linked_vpc_network\030\024 \001(\013" + + "25.google.cloud.networkconnectivity.v1.LinkedVpcNetworkB\004\342A\001\001\022C\n" + + "\007gateway\030\030 \001(\0132," + + ".google.cloud.networkconnectivity.v1.GatewayB\004\342A\001\001\022h\n" + "\033linked_producer_vpc_network\030\032" + " \001(\0132=.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetworkB\004\342A\001\001\022\027\n" + "\tunique_id\030\013 \001(\tB\004\342A\001\003\022?\n" @@ -378,7 +437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "spoke_type\030\026 \001(\0162..google.cloud" + ".networkconnectivity.v1.SpokeTypeB\004\342A\001\003\022\022\n" + "\004etag\030\033 \001(\tB\004\342A\001\001\022(\n" - + "\032field_paths_pending_update\030\034 \003(\tB\004\342A\001\001\032\233\002\n" + + "\032field_paths_pending_update\030\034 \003(\tB\004\342A\001\003\032\233\002\n" + "\013StateReason\022I\n" + "\004code\030\001" + " \001(\0162;.google.cloud.networkconnectivity.v1.Spoke.StateReason.Code\022\017\n" @@ -413,8 +472,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:|\352Ay\n" - + "-networkconnectivity.googleapis.com/RouteTable\022Hprojects/{project}/locations/global" - + "/hubs/{hub}/routeTables/{route_table}\"\344\010\n" + + "-networkconnectivity.googleapis.com/RouteTa" + + "ble\022Hprojects/{project}/locations/global/hubs/{hub}/routeTables/{route_table}\"\265" + + "\t\n" + "\005Route\022\022\n" + "\004name\030\003 \001(\tB\004\342A\001\005\0225\n" + "\013create_time\030\004" @@ -442,33 +502,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"next_hop_router_appliance_instance\030\017 \001(\0132C.google.cloud" + ".networkconnectivity.v1.NextHopRouterApplianceInstanceB\004\342A\001\005\022r\n" + " next_hop_interconnect_attachment\030\020 \001(\0132B.google.cloud.ne" - + "tworkconnectivity.v1.NextHopInterconnectAttachmentB\004\342A\001\005\032-\n" + + "tworkconnectivity.v1.NextHopInterconnectAttachmentB\004\342A\001\005\022O\n" + + "\016next_hop_spoke\030\022 \001(\013" + + "21.google.cloud.networkconnectivity.v1.NextHopSpokeB\004\342A\001\005\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\212\001\352A\206\001\n" - + "+networkconnectivity.googleapis.com/HubRoute\022Wpro" - + "jects/{project}/locations/global/hubs/{h" - + "ub}/routeTables/{route_table}/routes/{route}\"\312\004\n" + + "+networkconnectivity.googleapis.com/HubRoute\022Wpr" + + "ojects/{project}/locations/global/hubs/{" + + "hub}/routeTables/{route_table}/routes/{route}\"\374\004\n" + "\005Group\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\005\0225\n" + "\013create_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022L\n" - + "\006labels\030\004 \003(\013" - + "26.google.cloud.networkconnectivity.v1.Group.LabelsEntryB\004\342A\001\001\022\031\n" + + "\006labels\030\004 \003(" + + "\01326.google.cloud.networkconnectivity.v1.Group.LabelsEntryB\004\342A\001\001\022\031\n" + "\013description\030\005 \001(\tB\004\342A\001\001\022\021\n" + "\003uid\030\006 \001(\tB\004\342A\001\003\022?\n" - + "\005state\030\007 " - + "\001(\0162*.google.cloud.networkconnectivity.v1.StateB\004\342A\001\003\022J\n" - + "\013auto_accept\030\010 \001(\0132/.goo" - + "gle.cloud.networkconnectivity.v1.AutoAcceptB\004\342A\001\001\022\031\n" - + "\013route_table\030\t \001(\tB\004\342A\001\003\032-\n" + + "\005state\030\007" + + " \001(\0162*.google.cloud.networkconnectivity.v1.StateB\004\342A\001\003\022J\n" + + "\013auto_accept\030\010 \001(\0132/.go" + + "ogle.cloud.networkconnectivity.v1.AutoAcceptB\004\342A\001\001\022K\n" + + "\013route_table\030\t \001(\tB6\342A\001\003\372A/\n" + + "-networkconnectivity.googleapis.com/RouteTable\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:l\352Ai\n" - + "(networkconnectivity.googleapis" - + ".com/Group\022=projects/{project}/locations/global/hubs/{hub}/groups/{group}\"0\n\n" + + "(networkconnectivity.googleapis.com/Group\022=projects/{project" + + "}/locations/global/hubs/{hub}/groups/{group}\"0\n\n" + "AutoAccept\022\"\n" + "\024auto_accept_projects\030\001 \003(\tB\004\342A\001\001\"\226\001\n" + "\017ListHubsRequest\022:\n" @@ -489,14 +552,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + "!locations.googleapis.com/Location\022\024\n" + "\006hub_id\030\002 \001(\tB\004\342A\001\002\022;\n" - + "\003hub\030\003 \001(\0132(.goo" - + "gle.cloud.networkconnectivity.v1.HubB\004\342A\001\002\022\030\n\n" + + "\003hub\030\003" + + " \001(\0132(.google.cloud.networkconnectivity.v1.HubB\004\342A\001\002\022\030\n\n" + "request_id\030\004 \001(\tB\004\342A\001\001\"\240\001\n" + "\020UpdateHubRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022;\n" - + "\003hub\030\002 \001(\0132(." - + "google.cloud.networkconnectivity.v1.HubB\004\342A\001\002\022\030\n\n" + + "\003hub\030\002" + + " \001(\0132(.google.cloud.networkconnectivity.v1.HubB\004\342A\001\002\022\030\n\n" + "request_id\030\003 \001(\tB\004\342A\001\001\"k\n" + "\020DeleteHubRequest\022=\n" + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" @@ -510,8 +573,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\004 \001(\t\022\016\n" + "\006filter\030\005 \001(\t\022\020\n" + "\010order_by\030\006 \001(\t\022Q\n" - + "\004view\030\007 \001(\0162C.google.cloud.netw" - + "orkconnectivity.v1.ListHubSpokesRequest.SpokeView\"@\n" + + "\004view\030\007 \001(\0162C.google" + + ".cloud.networkconnectivity.v1.ListHubSpokesRequest.SpokeView\"@\n" + "\tSpokeView\022\032\n" + "\026SPOKE_VIEW_UNSPECIFIED\020\000\022\t\n" + "\005BASIC\020\001\022\014\n" @@ -529,22 +592,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\005 \001(\tB\004\342A\001\001\022\026\n" + "\010group_by\030\006 \001(\tB\004\342A\001\001\"\202\001\n" + "\026QueryHubStatusResponse\022O\n" - + "\022hub_status_entries\030\001 \003(\01323.googl" - + "e.cloud.networkconnectivity.v1.HubStatusEntry\022\027\n" + + "\022hub_status_entries\030\001 " + + "\003(\01323.google.cloud.networkconnectivity.v1.HubStatusEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\"\214\001\n" + "\016HubStatusEntry\022\r\n" + "\005count\030\001 \001(\005\022\020\n" + "\010group_by\030\002 \001(\t\022Y\n" - + "\026psc_propagation_status\030\003 \001(\01329.goo" - + "gle.cloud.networkconnectivity.v1.PscPropagationStatus\"\322\003\n" + + "\026psc_propagation_status\030\003" + + " \001(\01329.google.cloud.networkconnectivity.v1.PscPropagationStatus\"\322\003\n" + "\024PscPropagationStatus\022\024\n" + "\014source_spoke\030\001 \001(\t\022\024\n" + "\014source_group\030\002 \001(\t\022\036\n" + "\026source_forwarding_rule\030\003 \001(\t\022\024\n" + "\014target_spoke\030\004 \001(\t\022\024\n" + "\014target_group\030\005 \001(\t\022L\n" - + "\004code\030\006" - + " \001(\0162>.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code\022\017\n" + + "\004code\030\006 \001(\0162>.google.cloud.n" + + "etworkconnectivity.v1.PscPropagationStatus.Code\022\017\n" + "\007message\030\007 \001(\t\"\342\001\n" + "\004Code\022\024\n" + "\020CODE_UNSPECIFIED\020\000\022\t\n" @@ -578,8 +641,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022UpdateSpokeRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022?\n" - + "\005spoke\030\002" - + " \001(\0132*.google.cloud.networkconnectivity.v1.SpokeB\004\342A\001\002\022\030\n\n" + + "\005spoke\030\002 \001(\0132*.google" + + ".cloud.networkconnectivity.v1.SpokeB\004\342A\001\002\022\030\n\n" + "request_id\030\003 \001(\tB\004\342A\001\001\"o\n" + "\022DeleteSpokeRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" @@ -646,8 +709,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\t\022\020\n" + "\010order_by\030\005 \001(\t\"\216\001\n" + "\027ListRouteTablesResponse\022E\n" - + "\014route_tables\030\001" - + " \003(\0132/.google.cloud.networkconnectivity.v1.RouteTable\022\027\n" + + "\014route_tables\030\001 \003(\0132/." + + "google.cloud.networkconnectivity.v1.RouteTable\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\235\001\n" + "\021ListGroupsRequest\022?\n" @@ -660,37 +723,141 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ListGroupsResponse\022:\n" + "\006groups\030\001 \003(\0132*.google.cloud.networkconnectivity.v1.Group\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\316\001\n" + + "\013unreachable\030\003 \003(\t\"\365\003\n" + "\020LinkedVpnTunnels\0223\n" + "\004uris\030\001 \003(\tB%\372A\"\n" + " compute.googleapis.com/VpnTunnel\022\"\n" + "\032site_to_site_data_transfer\030\002 \001(\010\022<\n" + "\013vpc_network\030\003 \001(\tB\'\342A\001\003\372A \n" + "\036compute.googleapis.com/Network\022#\n" - + "\025include_import_ranges\030\005 \003(\tB\004\342A\001\001\"\350\001\n" + + "\025include_import_ranges\030\005 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_include_import_ranges\030\013 \003(\tB\004\342A\001\003\022#\n" + + "\025exclude_import_ranges\030\006 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_exclude_import_ranges\030\014 \003(\tB\004\342A\001\003\022#\n" + + "\025include_export_ranges\030\007 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_include_export_ranges\030\t \003(\tB\004\342A\001\003\022#\n" + + "\025exclude_export_ranges\030\010 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_exclude_export_ranges\030\n" + + " \003(\tB\004\342A\001\003\"\217\004\n" + "\035LinkedInterconnectAttachments\022@\n" + "\004uris\030\001 \003(\tB2\372A/\n" + "-compute.googleapis.com/InterconnectAttachment\022\"\n" + "\032site_to_site_data_transfer\030\002 \001(\010\022<\n" + "\013vpc_network\030\003 \001(\tB\'\342A\001\003\372A \n" + "\036compute.googleapis.com/Network\022#\n" - + "\025include_import_ranges\030\005 \003(\tB\004\342A\001\001\"\370\001\n" + + "\025include_import_ranges\030\005 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_include_import_ranges\030\013 \003(\tB\004\342A\001\003\022#\n" + + "\025exclude_import_ranges\030\006 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_exclude_import_ranges\030\014 \003(\tB\004\342A\001\003\022#\n" + + "\025include_export_ranges\030\007 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_include_export_ranges\030\t \003(\tB\004\342A\001\003\022#\n" + + "\025exclude_export_ranges\030\010 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_exclude_export_ranges\030\n" + + " \003(\tB\004\342A\001\003\"\237\004\n" + "\036LinkedRouterApplianceInstances\022O\n" - + "\tinstances\030\001 \003(\0132<.google.clo" - + "ud.networkconnectivity.v1.RouterApplianceInstance\022\"\n" + + "\tinstances\030\001 \003(\0132<.google.cl" + + "oud.networkconnectivity.v1.RouterApplianceInstance\022\"\n" + "\032site_to_site_data_transfer\030\002 \001(\010\022<\n" + "\013vpc_network\030\003 \001(\tB\'\342A\001\003\372A \n" + "\036compute.googleapis.com/Network\022#\n" - + "\025include_import_ranges\030\005 \003(\tB\004\342A\001\001\"\276\002\n" + + "\025include_import_ranges\030\005 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_include_import_ranges\030\013 \003(\tB\004\342A\001\003\022#\n" + + "\025exclude_import_ranges\030\006 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_exclude_import_ranges\030\014 \003(\tB\004\342A\001\003\022#\n" + + "\025include_export_ranges\030\007 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_include_export_ranges\030\t \003(\tB\004\342A\001\003\022#\n" + + "\025exclude_export_ranges\030\010 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_exclude_export_ranges\030\n" + + " \003(\tB\004\342A\001\003\"\276\002\n" + "\020LinkedVpcNetwork\0224\n" + "\003uri\030\001 \001(\tB\'\342A\001\002\372A \n" + "\036compute.googleapis.com/Network\022#\n" + "\025exclude_export_ranges\030\002 \003(\tB\004\342A\001\001\022#\n" + "\025include_export_ranges\030\003 \003(\tB\004\342A\001\001\022,\n" - + "\036proposed_include_export_ranges\030\005 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_include_export_ranges\030\005 \003(\tB\004\342A\001\003\022,\n" + "\036proposed_exclude_export_ranges\030\006 \003(\tB\004\342A\001\003\022N\n" + "\023producer_vpc_spokes\030\004 \003(\tB1\342A\001\003\372A*\n" - + "(networkconnectivity.googleapis.com/Spoke\"\253\003\n" + + "(networkconnectivity.googleapis.com/Spoke\"\277\003\n" + + "\007Gateway\022d\n" + + "\025ip_range_reservations\030\007" + + " \003(\0132?.google.cloud.networkconnectivity.v1.Gateway.IpRangeReservationB\004\342A\001\001\022T\n" + + "\010capacity\030\n" + + " \001(\0162<.google.cloud.networkconn" + + "ectivity.v1.Gateway.GatewayCapacityB\004\342A\001\001\022\033\n\r" + + "cloud_routers\030\r" + + " \003(\tB\004\342A\001\003\022M\n" + + "\016sac_attachment\030\016 \001(\tB5\342A\001\003\372A.\n" + + ",networksecurity.googleapis.com/SACAttachment\032,\n" + + "\022IpRangeReservation\022\026\n" + + "\010ip_range\030\001 \001(\tB\004\342A\001\002\"^\n" + + "\017GatewayCapacity\022 \n" + + "\034GATEWAY_CAPACITY_UNSPECIFIED\020\000\022\023\n" + + "\017CAPACITY_1_GBPS\020\005\022\024\n" + + "\020CAPACITY_10_GBPS\020\001\"\317\006\n" + + "\026GatewayAdvertisedRoute\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\0225\n" + + "\013create_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022W\n" + + "\006labels\030\004 \003(\0132G.google.cloud." + + "networkconnectivity.v1.GatewayAdvertisedRoute.LabelsEntry\022\023\n" + + "\013description\030\005 \001(\t\022\027\n" + + "\tunique_id\030\006 \001(\tB\004\342A\001\003\022?\n" + + "\005state\030\007 \001(\0162*" + + ".google.cloud.networkconnectivity.v1.StateB\004\342A\001\003\022\026\n" + + "\010ip_range\030\010 \001(\tB\004\342A\001\005\022\033\n" + + "\010priority\030\t \001(\005B\004\342A\001\001H\000\210\001\001\022^\n" + + "\trecipient\030\n" + + " \001(\016" + + "2E.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.RecipientB\004\342A\001\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"<\n" + + "\tRecipient\022\031\n" + + "\025RECIPIENT_UNSPECIFIED\020\000\022\024\n" + + "\020ADVERTISE_TO_HUB\020\001:\333\001\352A\327\001\n" + + "9networkconnectivity.googleapis.com/GatewayAdv" + + "ertisedRoute\022iprojects/{project}/locations/{location}/spokes/{spoke}/gatewayAdve" + + "rtisedRoutes/{gateway_advertised_route}*" + + "\027gatewayAdvertisedRoutes2\026gatewayAdvertisedRouteB\013\n" + + "\t_priority\"\232\002\n" + + "#CreateGatewayAdvertisedRouteRequest\022A\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" + + "(networkconnectivity.googleapis.com/Spoke\022)\n" + + "\033gateway_advertised_route_id\030\002 \001(\tB\004\342A\001\002\022c\n" + + "\030gateway_advertised_route\030\003" + + " \001(\0132;.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteB\004\342A\001\002\022" + + " \n\n" + + "request_id\030\004 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"t\n" + + " GetGatewayAdvertisedRouteRequest\022P\n" + + "\004name\030\001 \001(\tBB\342A\001\002\372A;\n" + + "9networkconnectivity.googleapis.com/GatewayAdvertisedRoute\"\274\001\n" + + "\"ListGatewayAdvertisedRoutesRequest\022A\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" + + "(networkconnectivity.googleapis.com/Spoke\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\016\n" + + "\006filter\030\004 \001(\t\022\020\n" + + "\010order_by\030\005 \001(\t\"\263\001\n" + + "#ListGatewayAdvertisedRoutesResponse\022^\n" + + "\031gateway_advertised_routes\030\001" + + " \003(\0132;.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\343\001\n" + + "#UpdateGatewayAdvertisedRouteRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022c\n" + + "\030gateway_advertised_route\030\002" + + " \001(\0132;.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteB\004\342A\001\002\022" + + " \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\231\001\n" + + "#DeleteGatewayAdvertisedRouteRequest\022P\n" + + "\004name\030\001 \001(\tBB\342A\001\002\372A;\n" + + "9networkconnectivity.googleapis.com/GatewayAdvertisedRoute\022 \n\n" + + "request_id\030\002 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\253\003\n" + "\030LinkedProducerVpcNetwork\0228\n" + "\007network\030\001 \001(\tB\'\342A\001\005\372A \n" + "\036compute.googleapis.com/Network\022U\n" @@ -701,11 +868,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022#\n" + "\025exclude_export_ranges\030\003 \003(\tB\004\342A\001\001\022#\n" + "\025include_export_ranges\030\004 \003(\tB\004\342A\001\001\022,\n" - + "\036proposed_include_export_ranges\030\007 \003(\tB\004\342A\001\001\022,\n" + + "\036proposed_include_export_ranges\030\007 \003(\tB\004\342A\001\003\022,\n" + "\036proposed_exclude_export_ranges\030\010 \003(\tB\004\342A\001\003\"l\n" + "\027RouterApplianceInstance\022=\n" + "\017virtual_machine\030\001 \001(\tB$\372A!\n" - + "\037compute.googleapis.com/Instance\022\022\n\n" + + "\037compute.", + "googleapis.com/Instance\022\022\n\n" + "ip_address\030\003 \001(\t\"c\n" + "\020LocationMetadata\022O\n" + "\021location_features\030\001" @@ -730,25 +898,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-compute.googleapis.com/InterconnectAttachment\0228\n" + "\013vpc_network\030\002 \001(\tB#\372A \n" + "\036compute.googleapis.com/Network\022\"\n" - + "\032site_to_site_data_transfer\030\003 \001(\010\"\257\005\n" + + "\032site_to_site_data_transfer\030\003 \001(\010\"n\n" + + "\014NextHopSpoke\022:\n" + + "\003uri\030\001 \001(\tB-\372A*\n" + + "(networkconnectivity.googleapis.com/Spoke\022\"\n" + + "\032site_to_site_data_transfer\030\002 \001(\010\"\257\005\n" + "\014SpokeSummary\022a\n" - + "\021spoke_type_counts\030\001 \003(" - + "\0132@.google.cloud.networkconnectivity.v1.SpokeSummary.SpokeTypeCountB\004\342A\001\003\022c\n" - + "\022spoke_state_counts\030\002 \003(\0132A.google.cloud.net" - + "workconnectivity.v1.SpokeSummary.SpokeStateCountB\004\342A\001\003\022p\n" - + "\031spoke_state_reason_counts\030\003 \003(\0132G.google.cloud.networkconnecti" - + "vity.v1.SpokeSummary.SpokeStateReasonCountB\004\342A\001\003\032o\n" + + "\021spoke_type_counts\030\001 \003(\0132@.google" + + ".cloud.networkconnectivity.v1.SpokeSummary.SpokeTypeCountB\004\342A\001\003\022c\n" + + "\022spoke_state_counts\030\002 \003(\0132A.google.cloud.networkconnec" + + "tivity.v1.SpokeSummary.SpokeStateCountB\004\342A\001\003\022p\n" + + "\031spoke_state_reason_counts\030\003 \003(\0132" + + "G.google.cloud.networkconnectivity.v1.Sp" + + "okeSummary.SpokeStateReasonCountB\004\342A\001\003\032o\n" + "\016SpokeTypeCount\022H\n\n" - + "spoke_type\030\001" - + " \001(\0162..google.cloud.networkconnectivity.v1.SpokeTypeB\004\342A\001\003\022\023\n" + + "spoke_type\030\001 \001(\0162..g" + + "oogle.cloud.networkconnectivity.v1.SpokeTypeB\004\342A\001\003\022\023\n" + "\005count\030\002 \001(\003B\004\342A\001\003\032g\n" + "\017SpokeStateCount\022?\n" - + "\005state\030\001 \001(\0162*.go" - + "ogle.cloud.networkconnectivity.v1.StateB\004\342A\001\003\022\023\n" + + "\005state\030\001" + + " \001(\0162*.google.cloud.networkconnectivity.v1.StateB\004\342A\001\003\022\023\n" + "\005count\030\002 \001(\003B\004\342A\001\003\032\212\001\n" + "\025SpokeStateReasonCount\022\\\n" - + "\021state_reason_code\030\001 \001(\0162" - + ";.google.cloud.networkconnectivity.v1.Spoke.StateReason.CodeB\004\342A\001\003\022\023\n" + + "\021state_reason_code\030\001 \001(\0162;.google.c" + + "loud.networkconnectivity.v1.Spoke.StateReason.CodeB\004\342A\001\003\022\023\n" + "\005count\030\002 \001(\003B\004\342A\001\003\"R\n" + "\017GetGroupRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" @@ -758,16 +931,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022?\n" + "\005group\030\002" + " \001(\0132*.google.cloud.networkconnectivity.v1.GroupB\004\342A\001\002\022\030\n\n" - + "request_id\030\003 \001(\tB\004\342A\001\001*f\n" - + "\017LocationFeature\022 \n" - + "\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n" - + "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n" - + "\023SITE_TO_SITE_SPOKES\020\002*l\n" + + "request_id\030\003 \001(\tB\004\342A\001\001*\201\001\n" + "\tRouteType\022\032\n" + "\026ROUTE_TYPE_UNSPECIFIED\020\000\022\026\n" + "\022VPC_PRIMARY_SUBNET\020\001\022\030\n" + "\024VPC_SECONDARY_SUBNET\020\002\022\021\n\r" - + "DYNAMIC_ROUTE\020\003*\232\001\n" + + "DYNAMIC_ROUTE\020\003\022\023\n" + + "\017PSC_GLOBAL_GAPI\020\004*\232\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" + "\010CREATING\020\001\022\n\n" @@ -779,150 +949,168 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010INACTIVE\020\007\022\014\n" + "\010OBSOLETE\020\n" + "\022\n\n" - + "\006FAILED\020\013*\225\001\n" + + "\006FAILED\020\013*\242\001\n" + "\tSpokeType\022\032\n" + "\026SPOKE_TYPE_UNSPECIFIED\020\000\022\016\n\n" + "VPN_TUNNEL\020\001\022\033\n" + "\027INTERCONNECT_ATTACHMENT\020\002\022\024\n" + "\020ROUTER_APPLIANCE\020\003\022\017\n" - + "\013VPC_NETWORK\020\004\022\030\n" + + "\013VPC_NETWORK\020\004\022\013\n" + + "\007GATEWAY\020\005\022\030\n" + "\024PRODUCER_VPC_NETWORK\020\007*5\n\n" + "PolicyMode\022\033\n" + "\027POLICY_MODE_UNSPECIFIED\020\000\022\n\n" - + "\006PRESET\020\001*E\n" + + "\006PRESET\020\001*\\\n" + "\016PresetTopology\022\037\n" + "\033PRESET_TOPOLOGY_UNSPECIFIED\020\000\022\010\n" + "\004MESH\020\002\022\010\n" - + "\004STAR\020\0032\360&\n\n" + + "\004STAR\020\003\022\025\n" + + "\021HYBRID_INSPECTION\020\004*\212\001\n" + + "\017LocationFeature\022 \n" + + "\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n" + + "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n" + + "\023SITE_TO_SITE_SPOKES\020\002\022\022\n" + + "\016GATEWAY_SPOKES\020\003\022\016\n\n" + + "TRANSPORTS\020\0042\2762\n\n" + "HubService\022\267\001\n" - + "\010ListHubs\0224.google.cloud.networkconnectivity.v1.ListHubsRequest\0325.google" - + ".cloud.networkconnectivity.v1.ListHubsRe" - + "sponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/global}/hubs\022\244\001\n" - + "\006GetHub\0222.google.cloud.networkconnectivity.v1." - + "GetHubRequest\032(.google.cloud.networkconn" - + "ectivity.v1.Hub\"<\332A\004name\202\323\344\223\002/\022-/v1/{nam" - + "e=projects/*/locations/global/hubs/*}\022\314\001\n" - + "\tCreateHub\0225.google.cloud.networkconnec" - + "tivity.v1.CreateHubRequest\032\035.google.longrunning.Operation\"i\312A\030\n" - + "\003Hub\022\021OperationMe" - + "tadata\332A\021parent,hub,hub_id\202\323\344\223\0024\"-/v1/{p" - + "arent=projects/*/locations/global}/hubs:\003hub\022\316\001\n" - + "\tUpdateHub\0225.google.cloud.networ" - + "kconnectivity.v1.UpdateHubRequest\032\035.google.longrunning.Operation\"k\312A\030\n" - + "\003Hub\022\021OperationMetadata\332A\017hub,update_mask\202\323\344\223\002821/" - + "v1/{hub.name=projects/*/locations/global/hubs/*}:\003hub\022\314\001\n" - + "\tDeleteHub\0225.google.clo" - + "ud.networkconnectivity.v1.DeleteHubRequest\032\035.google.longrunning.Operation\"i\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata" - + "\332A\004name\202\323\344\223\002/*-/v1/{name=projects/*/locations/global/hubs/*}\022\317\001\n\r" - + "ListHubSpokes\0229.google.cloud.networkconnectivity.v1.Lis" - + "tHubSpokesRequest\032:.google.cloud.network" - + "connectivity.v1.ListHubSpokesResponse\"G\332" - + "A\004name\202\323\344\223\002:\0228/v1/{name=projects/*/locations/global/hubs/*}:listSpokes\022\323\001\n" - + "\016QueryHubStatus\022:.google.cloud.networkconnecti" - + "vity.v1.QueryHubStatusRequest\032;.google.cloud.networkconnectivity.v1.QueryHubStat" - + "usResponse\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=pro" - + "jects/*/locations/global/hubs/*}:queryStatus\022\272\001\n\n" - + "ListSpokes\0226.google.cloud.networkconnectivity.v1.ListSpokesRequest\0327.go", - "ogle.cloud.networkconnectivity.v1.ListSp" - + "okesResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{pare" - + "nt=projects/*/locations/*}/spokes\022\247\001\n\010Ge" - + "tSpoke\0224.google.cloud.networkconnectivit" - + "y.v1.GetSpokeRequest\032*.google.cloud.netw" - + "orkconnectivity.v1.Spoke\"9\332A\004name\202\323\344\223\002,\022" - + "*/v1/{name=projects/*/locations/*/spokes" - + "/*}\022\325\001\n\013CreateSpoke\0227.google.cloud.netwo" - + "rkconnectivity.v1.CreateSpokeRequest\032\035.g" - + "oogle.longrunning.Operation\"n\312A\032\n\005Spoke\022" - + "\021OperationMetadata\332A\025parent,spoke,spoke_" - + "id\202\323\344\223\0023\"*/v1/{parent=projects/*/locatio" - + "ns/*}/spokes:\005spoke\022\327\001\n\013UpdateSpoke\0227.go" - + "ogle.cloud.networkconnectivity.v1.Update" - + "SpokeRequest\032\035.google.longrunning.Operat" - + "ion\"p\312A\032\n\005Spoke\022\021OperationMetadata\332A\021spo" - + "ke,update_mask\202\323\344\223\002920/v1/{spoke.name=pr" - + "ojects/*/locations/*/spokes/*}:\005spoke\022\361\001" - + "\n\016RejectHubSpoke\022:.google.cloud.networkc" - + "onnectivity.v1.RejectHubSpokeRequest\032\035.g" - + "oogle.longrunning.Operation\"\203\001\312A+\n\026Rejec" - + "tHubSpokeResponse\022\021OperationMetadata\332A\016n" - + "ame,spoke_uri\202\323\344\223\002>\"9/v1/{name=projects/" - + "*/locations/global/hubs/*}:rejectSpoke:\001" - + "*\022\361\001\n\016AcceptHubSpoke\022:.google.cloud.netw" - + "orkconnectivity.v1.AcceptHubSpokeRequest" - + "\032\035.google.longrunning.Operation\"\203\001\312A+\n\026A" - + "cceptHubSpokeResponse\022\021OperationMetadata" - + "\332A\016name,spoke_uri\202\323\344\223\002>\"9/v1/{name=proje" - + "cts/*/locations/global/hubs/*}:acceptSpo" - + "ke:\001*\022\213\002\n\021AcceptSpokeUpdate\022=.google.clo" - + "ud.networkconnectivity.v1.AcceptSpokeUpd" - + "ateRequest\032\035.google.longrunning.Operatio" - + "n\"\227\001\312A.\n\031AcceptSpokeUpdateResponse\022\021Oper" - + "ationMetadata\332A\031name,spoke_uri,spoke_eta" - + "g\202\323\344\223\002D\"?/v1/{name=projects/*/locations/" - + "global/hubs/*}:acceptSpokeUpdate:\001*\022\213\002\n\021" - + "RejectSpokeUpdate\022=.google.cloud.network" - + "connectivity.v1.RejectSpokeUpdateRequest" - + "\032\035.google.longrunning.Operation\"\227\001\312A.\n\031R" - + "ejectSpokeUpdateResponse\022\021OperationMetad" - + "ata\332A\031name,spoke_uri,spoke_etag\202\323\344\223\002D\"?/" - + "v1/{name=projects/*/locations/global/hub" - + "s/*}:rejectSpokeUpdate:\001*\022\315\001\n\013DeleteSpok" - + "e\0227.google.cloud.networkconnectivity.v1." - + "DeleteSpokeRequest\032\035.google.longrunning." - + "Operation\"f\312A*\n\025google.protobuf.Empty\022\021O" - + "perationMetadata\332A\004name\202\323\344\223\002,**/v1/{name" - + "=projects/*/locations/*/spokes/*}\022\307\001\n\rGe" - + "tRouteTable\0229.google.cloud.networkconnec" - + "tivity.v1.GetRouteTableRequest\032/.google." - + "cloud.networkconnectivity.v1.RouteTable\"" - + "J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/*/loc" - + "ations/global/hubs/*/routeTables/*}\022\301\001\n\010" - + "GetRoute\0224.google.cloud.networkconnectiv" - + "ity.v1.GetRouteRequest\032*.google.cloud.ne" - + "tworkconnectivity.v1.Route\"S\332A\004name\202\323\344\223\002" - + "F\022D/v1/{name=projects/*/locations/global" - + "/hubs/*/routeTables/*/routes/*}\022\324\001\n\nList" - + "Routes\0226.google.cloud.networkconnectivit" - + "y.v1.ListRoutesRequest\0327.google.cloud.ne" - + "tworkconnectivity.v1.ListRoutesResponse\"" - + "U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=projects/*" - + "/locations/global/hubs/*/routeTables/*}/" - + "routes\022\332\001\n\017ListRouteTables\022;.google.clou" - + "d.networkconnectivity.v1.ListRouteTables" - + "Request\032<.google.cloud.networkconnectivi" - + "ty.v1.ListRouteTablesResponse\"L\332A\006parent" - + "\202\323\344\223\002=\022;/v1/{parent=projects/*/locations" - + "/global/hubs/*}/routeTables\022\263\001\n\010GetGroup" - + "\0224.google.cloud.networkconnectivity.v1.G" - + "etGroupRequest\032*.google.cloud.networkcon" - + "nectivity.v1.Group\"E\332A\004name\202\323\344\223\0028\0226/v1/{" - + "name=projects/*/locations/global/hubs/*/" - + "groups/*}\022\306\001\n\nListGroups\0226.google.cloud." - + "networkconnectivity.v1.ListGroupsRequest" + + "\010ListHubs\0224.google.cloud.networkconnectivity.v1.ListHubsRequest\0325.g" + + "oogle.cloud.networkconnectivity.v1.ListH" + + "ubsResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/global}/hubs\022\244\001\n" + + "\006GetHub\0222.google.cloud.networkconnectivit" + + "y.v1.GetHubRequest\032(.google.cloud.networ" + + "kconnectivity.v1.Hub\"<\332A\004name\202\323\344\223\002/\022-/v1" + + "/{name=projects/*/locations/global/hubs/*}\022\314\001\n" + + "\tCreateHub\0225.google.cloud.networkc" + + "onnectivity.v1.CreateHubRequest\032\035.google.longrunning.Operation\"i\312A\030\n" + + "\003Hub\022\021OperationMetadata\332A\021parent,hub,hub_id\202\323\344\223\0024\"-/" + + "v1/{parent=projects/*/locations/global}/hubs:\003hub\022\316\001\n" + + "\tUpdateHub\0225.google.cloud.n" + + "etworkconnectivity.v1.UpdateHubRequest\032\035.google.longrunning.Operation\"k\312A\030\n" + + "\003Hub\022\021OperationMetadata\332A\017hub,update_mask\202\323\344\223" + + "\002821/v1/{hub.name=projects/*/locations/global/hubs/*}:\003hub\022\314\001\n" + + "\tDeleteHub\0225.google.cloud.networkconnectivity.v1.DeleteHub" + + "Request\032\035.google.longrunning.Operation\"i\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\002/*-/v1/{name=projects/*/locations/global/hubs/*}\022\317\001\n\r" + + "ListHubSpokes\0229.google.cloud.networkconnectivity.v" + + "1.ListHubSpokesRequest\032:.google.cloud.networkconnectivity.v1.ListHubSpokesRespon" + + "se\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=projects/*/locations/global/hubs/*}:listSpokes\022\323\001\n" + + "\016QueryHubStatus\022:.google.cloud.networkcon" + + "nectivity.v1.QueryHubStatusRequest\032;.google.cloud.networkconnectivity.v1.QueryHu" + + "bStatusResponse\"H\332A\004name\202\323\344\223\002;\0229/v1/{nam" + + "e=projects/*/locations/global/hubs/*}:queryStatus\022\272\001\n\n" + + "ListSpokes\0226.google.cloud.networkconnectivity.v1.ListSpokesRequest" + "\0327.google.cloud.networkconnectivity.v1.L" - + "istGroupsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/" - + "{parent=projects/*/locations/global/hubs" - + "/*}/groups\022\343\001\n\013UpdateGroup\0227.google.clou" - + "d.networkconnectivity.v1.UpdateGroupRequ" - + "est\032\035.google.longrunning.Operation\"|\312A\032\n" - + "\005Group\022\021OperationMetadata\332A\021group,update" - + "_mask\202\323\344\223\002E2\"9/v1/{name=proj" + + "ects/*/locations/global/hubs/*}:rejectSpoke:\001*\022\361\001\n" + + "\016AcceptHubSpoke\022:.google.cloud.networkconnectivity.v1.AcceptHubSpokeRe" + + "quest\032\035.google.longrunning.Operation\"\203\001\312A+\n" + + "\026AcceptHubSpokeResponse\022\021OperationMet" + + "adata\332A\016name,spoke_uri\202\323\344\223\002>\"9/v1/{name=" + + "projects/*/locations/global/hubs/*}:acceptSpoke:\001*\022\213\002\n" + + "\021AcceptSpokeUpdate\022=.google.cloud.networkconnectivity.v1.AcceptSpo" + + "keUpdateRequest\032\035.google.longrunning.Operation\"\227\001\312A.\n" + + "\031AcceptSpokeUpdateResponse\022\021OperationMetadata\332A\031name,spoke_uri,spok" + + "e_etag\202\323\344\223\002D\"?/v1/{name=projects/*/locat" + + "ions/global/hubs/*}:acceptSpokeUpdate:\001*\022\213\002\n" + + "\021RejectSpokeUpdate\022=.google.cloud.networkconnectivity.v1.RejectSpokeUpdateRe" + + "quest\032\035.google.longrunning.Operation\"\227\001\312A.\n" + + "\031RejectSpokeUpdateResponse\022\021Operation" + + "Metadata\332A\031name,spoke_uri,spoke_etag\202\323\344\223" + + "\002D\"?/v1/{name=projects/*/locations/global/hubs/*}:rejectSpokeUpdate:\001*\022\315\001\n" + + "\013DeleteSpoke\0227.google.cloud.networkconnectivit" + + "y.v1.DeleteSpokeRequest\032\035.google.longrunning.Operation\"f\312A*\n" + + "\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002,**/v1/" + + "{name=projects/*/locations/*/spokes/*}\022\307\001\n\r" + + "GetRouteTable\0229.google.cloud.networkconnectivity.v1.GetRouteTableRequest\032/.go" + + "ogle.cloud.networkconnectivity.v1.RouteT" + + "able\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/" + + "*/locations/global/hubs/*/routeTables/*}\022\301\001\n" + + "\010GetRoute\0224.google.cloud.networkconnectivity.v1.GetRouteRequest\032*.google.clo" + + "ud.networkconnectivity.v1.Route\"S\332A\004name" + + "\202\323\344\223\002F\022D/v1/{name=projects/*/locations/global/hubs/*/routeTables/*/routes/*}\022\324\001\n" + + "\n" + + "ListRoutes\0226.google.cloud.networkconnectivity.v1.ListRoutesRequest\0327.google.clo" + + "ud.networkconnectivity.v1.ListRoutesResp" + + "onse\"U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=proje" + + "cts/*/locations/global/hubs/*/routeTables/*}/routes\022\332\001\n" + + "\017ListRouteTables\022;.google.cloud.networkconnectivity.v1.ListRouteT" + + "ablesRequest\032<.google.cloud.networkconne" + + "ctivity.v1.ListRouteTablesResponse\"L\332A\006p" + + "arent\202\323\344\223\002=\022;/v1/{parent=projects/*/locations/global/hubs/*}/routeTables\022\263\001\n" + + "\010GetGroup\0224.google.cloud.networkconnectivity" + + ".v1.GetGroupRequest\032*.google.cloud.netwo" + + "rkconnectivity.v1.Group\"E\332A\004name\202\323\344\223\0028\0226" + + "/v1/{name=projects/*/locations/global/hubs/*/groups/*}\022\306\001\n\n" + + "ListGroups\0226.google.cloud.networkconnectivity.v1.ListGroupsRe" + + "quest\0327.google.cloud.networkconnectivity" + + ".v1.ListGroupsResponse\"G\332A\006parent\202\323\344\223\0028\022" + + "6/v1/{parent=projects/*/locations/global/hubs/*}/groups\022\343\001\n" + + "\013UpdateGroup\0227.google.cloud.networkconnectivity.v1.UpdateGrou" + + "pRequest\032\035.google.longrunning.Operation\"|\312A\032\n" + + "\005Group\022\021OperationMetadata\332A\021group,u" + + "pdate_mask\202\323\344\223\002E2 - * Optional. IP ranges allowed to be included during import from hub (does not - * control transit connectivity). The only allowed value for now is - * "ALL_IPV4_RANGES". + * Optional. Hub routes fully encompassed by include import ranges are + * included during import from hub. * * * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -249,9 +255,8 @@ public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -267,9 +272,8 @@ public int getIncludeImportRangesCount() { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -286,9 +290,8 @@ public java.lang.String getIncludeImportRanges(int index) { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -301,519 +304,2748 @@ public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { return includeImportRanges_.getByteString(index); } - private byte memoizedIsInitialized = -1; + public static final int PROPOSED_INCLUDE_IMPORT_RANGES_FIELD_NUMBER = 11; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedIncludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - memoizedIsInitialized = 1; - return true; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeImportRangesList() { + return proposedIncludeImportRanges_; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < uris_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, uris_.getRaw(i)); - } - if (siteToSiteDataTransfer_ != false) { - output.writeBool(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, vpcNetwork_); - } - for (int i = 0; i < includeImportRanges_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, includeImportRanges_.getRaw(i)); - } - getUnknownFields().writeTo(output); + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + public int getProposedIncludeImportRangesCount() { + return proposedIncludeImportRanges_.size(); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < uris_.size(); i++) { - dataSize += computeStringSizeNoTag(uris_.getRaw(i)); - } - size += dataSize; - size += 1 * getUrisList().size(); - } - if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vpcNetwork_); - } - { - int dataSize = 0; - for (int i = 0; i < includeImportRanges_.size(); i++) { - dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludeImportRangesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + public java.lang.String getProposedIncludeImportRanges(int index) { + return proposedIncludeImportRanges_.get(index); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = - (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; - - if (!getUrisList().equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; - if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index) { + return proposedIncludeImportRanges_.getByteString(index); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUrisCount() > 0) { - hash = (37 * hash) + URIS_FIELD_NUMBER; - hash = (53 * hash) + getUrisList().hashCode(); - } - hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); - hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getVpcNetwork().hashCode(); - if (getIncludeImportRangesCount() > 0) { - hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getIncludeImportRangesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int EXCLUDE_IMPORT_RANGES_FIELD_NUMBER = 6; - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeImportRangesList() { + return excludeImportRanges_; } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + public int getExcludeImportRangesCount() { + return excludeImportRanges_.size(); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + public java.lang.String getExcludeImportRanges(int index) { + return excludeImportRanges_.get(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeImportRangesBytes(int index) { + return excludeImportRanges_.getByteString(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int PROPOSED_EXCLUDE_IMPORT_RANGES_FIELD_NUMBER = 12; - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedExcludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeImportRangesList() { + return proposedExcludeImportRanges_; } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + public int getProposedExcludeImportRangesCount() { + return proposedExcludeImportRanges_.size(); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + public java.lang.String getProposedExcludeImportRanges(int index) { + return proposedExcludeImportRanges_.get(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index) { + return proposedExcludeImportRanges_.getByteString(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public static final int INCLUDE_EXPORT_RANGES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + return includeExportRanges_; } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); } - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public static final int PROPOSED_INCLUDE_EXPORT_RANGES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedIncludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList() { + return proposedIncludeExportRanges_; } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeExportRanges. + */ + public int getProposedIncludeExportRangesCount() { + return proposedIncludeExportRanges_.size(); } /** * * *
-   * A collection of VLAN attachment resources. These resources should
-   * be redundant attachments that all advertise the same prefixes to Google
-   * Cloud. Alternatively, in active/passive configurations, all attachments
-   * should be capable of advertising the same prefixes.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* - * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeExportRanges at the given index. */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; - } + public java.lang.String getProposedIncludeExportRanges(int index) { + return proposedIncludeExportRanges_.get(index); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class); - } + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index) { + return proposedIncludeExportRanges_.getByteString(index); + } - // Construct using - // com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder() - private Builder() {} + public static final int EXCLUDE_EXPORT_RANGES_FIELD_NUMBER = 8; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - siteToSiteDataTransfer_ = false; - vpcNetwork_ = ""; - includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeExportRangesList() { + return excludeExportRanges_; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + public int getExcludeExportRangesCount() { + return excludeExportRanges_.size(); + } - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance(); - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + public java.lang.String getExcludeExportRanges(int index) { + return excludeExportRanges_.get(index); + } - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments build() { - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { + return excludeExportRanges_.getByteString(index); + } - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments buildPartial() { - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = - new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static final int PROPOSED_EXCLUDE_EXPORT_RANGES_FIELD_NUMBER = 10; - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - uris_.makeImmutable(); - result.uris_ = uris_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.vpcNetwork_ = vpcNetwork_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - includeImportRanges_.makeImmutable(); - result.includeImportRanges_ = includeImportRanges_; - } - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedExcludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) other); - } else { - super.mergeFrom(other); - return this; - } + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList() { + return proposedExcludeExportRanges_; + } + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeExportRanges. + */ + public int getProposedExcludeExportRangesCount() { + return proposedExcludeExportRanges_.size(); + } + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeExportRanges at the given index. + */ + public java.lang.String getProposedExcludeExportRanges(int index) { + return proposedExcludeExportRanges_.get(index); + } + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index) { + return proposedExcludeExportRanges_.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 < uris_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uris_.getRaw(i)); + } + if (siteToSiteDataTransfer_ != false) { + output.writeBool(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vpcNetwork_); + } + for (int i = 0; i < includeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, includeImportRanges_.getRaw(i)); + } + for (int i = 0; i < excludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, excludeImportRanges_.getRaw(i)); + } + for (int i = 0; i < includeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, includeExportRanges_.getRaw(i)); + } + for (int i = 0; i < excludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, excludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedIncludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 9, proposedIncludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedExcludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 10, proposedExcludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedIncludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 11, proposedIncludeImportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedExcludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 12, proposedExcludeImportRanges_.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 < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + if (siteToSiteDataTransfer_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vpcNetwork_); + } + { + int dataSize = 0; + for (int i = 0; i < includeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < includeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedIncludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedIncludeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getProposedIncludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedExcludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedExcludeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getProposedExcludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedIncludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedIncludeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getProposedIncludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedExcludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedExcludeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getProposedExcludeImportRangesList().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.networkconnectivity.v1.LinkedInterconnectAttachments)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = + (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; + + if (!getUrisList().equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; + if (!getProposedIncludeImportRangesList().equals(other.getProposedIncludeImportRangesList())) + return false; + if (!getExcludeImportRangesList().equals(other.getExcludeImportRangesList())) return false; + if (!getProposedExcludeImportRangesList().equals(other.getProposedExcludeImportRangesList())) + return false; + if (!getIncludeExportRangesList().equals(other.getIncludeExportRangesList())) return false; + if (!getProposedIncludeExportRangesList().equals(other.getProposedIncludeExportRangesList())) + return false; + if (!getExcludeExportRangesList().equals(other.getExcludeExportRangesList())) return false; + if (!getProposedExcludeExportRangesList().equals(other.getProposedExcludeExportRangesList())) + 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 (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); + if (getIncludeImportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeImportRangesList().hashCode(); + } + if (getProposedIncludeImportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedIncludeImportRangesList().hashCode(); + } + if (getExcludeImportRangesCount() > 0) { + hash = (37 * hash) + EXCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeImportRangesList().hashCode(); + } + if (getProposedExcludeImportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_EXCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedExcludeImportRangesList().hashCode(); + } + if (getIncludeExportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeExportRangesList().hashCode(); + } + if (getProposedIncludeExportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_INCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedIncludeExportRangesList().hashCode(); + } + if (getExcludeExportRangesCount() > 0) { + hash = (37 * hash) + EXCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeExportRangesList().hashCode(); + } + if (getProposedExcludeExportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_EXCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedExcludeExportRangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments 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 collection of VLAN attachment resources. These resources should
+   * be redundant attachments that all advertise the same prefixes to Google
+   * Cloud. Alternatively, in active/passive configurations, all attachments
+   * should be capable of advertising the same prefixes.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + siteToSiteDataTransfer_ = false; + vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments build() { + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments buildPartial() { + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = + new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + uris_.makeImmutable(); + result.uris_ = uris_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vpcNetwork_ = vpcNetwork_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + includeImportRanges_.makeImmutable(); + result.includeImportRanges_ = includeImportRanges_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + proposedIncludeImportRanges_.makeImmutable(); + result.proposedIncludeImportRanges_ = proposedIncludeImportRanges_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + excludeImportRanges_.makeImmutable(); + result.excludeImportRanges_ = excludeImportRanges_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + proposedExcludeImportRanges_.makeImmutable(); + result.proposedExcludeImportRanges_ = proposedExcludeImportRanges_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + includeExportRanges_.makeImmutable(); + result.includeExportRanges_ = includeExportRanges_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + proposedIncludeExportRanges_.makeImmutable(); + result.proposedIncludeExportRanges_ = proposedIncludeExportRanges_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + excludeExportRanges_.makeImmutable(); + result.excludeExportRanges_ = excludeExportRanges_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + proposedExcludeExportRanges_.makeImmutable(); + result.proposedExcludeExportRanges_ = proposedExcludeExportRanges_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) { + if (other + == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance()) return this; + if (!other.uris_.isEmpty()) { + if (uris_.isEmpty()) { + uris_ = other.uris_; + bitField0_ |= 0x00000001; + } else { + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + onChanged(); + } + if (other.getSiteToSiteDataTransfer() != false) { + setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + } + if (!other.getVpcNetwork().isEmpty()) { + vpcNetwork_ = other.vpcNetwork_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.includeImportRanges_.isEmpty()) { + if (includeImportRanges_.isEmpty()) { + includeImportRanges_ = other.includeImportRanges_; + bitField0_ |= 0x00000008; + } else { + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.addAll(other.includeImportRanges_); + } + onChanged(); + } + if (!other.proposedIncludeImportRanges_.isEmpty()) { + if (proposedIncludeImportRanges_.isEmpty()) { + proposedIncludeImportRanges_ = other.proposedIncludeImportRanges_; + bitField0_ |= 0x00000010; + } else { + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.addAll(other.proposedIncludeImportRanges_); + } + onChanged(); + } + if (!other.excludeImportRanges_.isEmpty()) { + if (excludeImportRanges_.isEmpty()) { + excludeImportRanges_ = other.excludeImportRanges_; + bitField0_ |= 0x00000020; + } else { + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.addAll(other.excludeImportRanges_); + } + onChanged(); + } + if (!other.proposedExcludeImportRanges_.isEmpty()) { + if (proposedExcludeImportRanges_.isEmpty()) { + proposedExcludeImportRanges_ = other.proposedExcludeImportRanges_; + bitField0_ |= 0x00000040; + } else { + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.addAll(other.proposedExcludeImportRanges_); + } + onChanged(); + } + if (!other.includeExportRanges_.isEmpty()) { + if (includeExportRanges_.isEmpty()) { + includeExportRanges_ = other.includeExportRanges_; + bitField0_ |= 0x00000080; + } else { + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.addAll(other.includeExportRanges_); + } + onChanged(); + } + if (!other.proposedIncludeExportRanges_.isEmpty()) { + if (proposedIncludeExportRanges_.isEmpty()) { + proposedIncludeExportRanges_ = other.proposedIncludeExportRanges_; + bitField0_ |= 0x00000100; + } else { + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.addAll(other.proposedIncludeExportRanges_); + } + onChanged(); + } + if (!other.excludeExportRanges_.isEmpty()) { + if (excludeExportRanges_.isEmpty()) { + excludeExportRanges_ = other.excludeExportRanges_; + bitField0_ |= 0x00000200; + } else { + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.addAll(other.excludeExportRanges_); + } + onChanged(); + } + if (!other.proposedExcludeExportRanges_.isEmpty()) { + if (proposedExcludeExportRanges_.isEmpty()) { + proposedExcludeExportRanges_ = other.proposedExcludeExportRanges_; + bitField0_ |= 0x00000400; + } else { + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.addAll(other.proposedExcludeExportRanges_); + } + 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(); + ensureUrisIsMutable(); + uris_.add(s); + break; + } // case 10 + case 16: + { + siteToSiteDataTransfer_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + vpcNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(s); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(s); + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(s); + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(s); + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(s); + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(s); + break; + } // case 98 + 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 uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUrisIsMutable() { + if (!uris_.isModifiable()) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + uris_.makeImmutable(); + return uris_; + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The uris to set. + * @return This builder for chaining. + */ + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The uris to add. + * @return This builder for chaining. + */ + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param values The uris to add. + * @return This builder for chaining. + */ + public Builder addAllUris(java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearUris() { + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URIs of linked interconnect attachment resources
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the uris to add. + * @return This builder for chaining. + */ + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean siteToSiteDataTransfer_; + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @param value The siteToSiteDataTransfer to set. + * @return This builder for chaining. + */ + public Builder setSiteToSiteDataTransfer(boolean value) { + + siteToSiteDataTransfer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return This builder for chaining. + */ + public Builder clearSiteToSiteDataTransfer() { + bitField0_ = (bitField0_ & ~0x00000002); + siteToSiteDataTransfer_ = false; + onChanged(); + return this; + } + + private java.lang.Object vpcNetwork_ = ""; + + /** + * + * + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeImportRangesIsMutable() { + if (!includeImportRanges_.isModifiable()) { + includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + includeImportRanges_.makeImmutable(); + return includeImportRanges_; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeImportRanges(java.lang.Iterable values) { + ensureIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeImportRanges() { + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList proposedIncludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProposedIncludeImportRangesIsMutable() { + if (!proposedIncludeImportRanges_.isModifiable()) { + proposedIncludeImportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedIncludeImportRanges_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeImportRangesList() { + proposedIncludeImportRanges_.makeImmutable(); + return proposedIncludeImportRanges_; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + public int getProposedIncludeImportRangesCount() { + return proposedIncludeImportRanges_.size(); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + public java.lang.String getProposedIncludeImportRanges(int index) { + return proposedIncludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index) { + return proposedIncludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The proposedIncludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setProposedIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllProposedIncludeImportRanges(java.lang.Iterable values) { + ensureProposedIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedIncludeImportRanges_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProposedIncludeImportRanges() { + proposedIncludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeImportRangesIsMutable() { + if (!excludeImportRanges_.isModifiable()) { + excludeImportRanges_ = new com.google.protobuf.LazyStringArrayList(excludeImportRanges_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeImportRangesList() { + excludeImportRanges_.makeImmutable(); + return excludeImportRanges_; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + public int getExcludeImportRangesCount() { + return excludeImportRanges_.size(); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + public java.lang.String getExcludeImportRanges(int index) { + return excludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeImportRangesBytes(int index) { + return excludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setExcludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeImportRanges(java.lang.Iterable values) { + ensureExcludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeImportRanges_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeImportRanges() { + excludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList proposedExcludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProposedExcludeImportRangesIsMutable() { + if (!proposedExcludeImportRanges_.isModifiable()) { + proposedExcludeImportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedExcludeImportRanges_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeImportRangesList() { + proposedExcludeImportRanges_.makeImmutable(); + return proposedExcludeImportRanges_; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + public int getProposedExcludeImportRangesCount() { + return proposedExcludeImportRanges_.size(); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + public java.lang.String getProposedExcludeImportRanges(int index) { + return proposedExcludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index) { + return proposedExcludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The proposedExcludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setProposedExcludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedExcludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) { - if (other - == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance()) return this; - if (!other.uris_.isEmpty()) { - if (uris_.isEmpty()) { - uris_ = other.uris_; - bitField0_ |= 0x00000001; - } else { - ensureUrisIsMutable(); - uris_.addAll(other.uris_); - } - onChanged(); + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllProposedExcludeImportRanges(java.lang.Iterable values) { + ensureProposedExcludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedExcludeImportRanges_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProposedExcludeImportRanges() { + proposedExcludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedExcludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - if (other.getSiteToSiteDataTransfer() != false) { - setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + checkByteStringIsUtf8(value); + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeExportRangesIsMutable() { + if (!includeExportRanges_.isModifiable()) { + includeExportRanges_ = new com.google.protobuf.LazyStringArrayList(includeExportRanges_); } - if (!other.getVpcNetwork().isEmpty()) { - vpcNetwork_ = other.vpcNetwork_; - bitField0_ |= 0x00000004; - onChanged(); + bitField0_ |= 0x00000080; + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + includeExportRanges_.makeImmutable(); + return includeExportRanges_; + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeExportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - if (!other.includeImportRanges_.isEmpty()) { - if (includeImportRanges_.isEmpty()) { - includeImportRanges_ = other.includeImportRanges_; - bitField0_ |= 0x00000008; - } else { - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.addAll(other.includeImportRanges_); - } - onChanged(); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeExportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000080; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeExportRanges(java.lang.Iterable values) { + ensureIncludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeExportRanges_); + bitField0_ |= 0x00000080; + onChanged(); + return this; } - @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(); - ensureUrisIsMutable(); - uris_.add(s); - break; - } // case 10 - case 16: - { - siteToSiteDataTransfer_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - vpcNetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.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 + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeExportRanges() { + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeExportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000080; + onChanged(); return this; } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList uris_ = + private com.google.protobuf.LazyStringArrayList proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUrisIsMutable() { - if (!uris_.isModifiable()) { - uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + private void ensureProposedIncludeExportRangesIsMutable() { + if (!proposedIncludeExportRanges_.isModifiable()) { + proposedIncludeExportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedIncludeExportRanges_); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000100; } /** * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the uris. + * @return A list containing the proposedIncludeExportRanges. */ - public com.google.protobuf.ProtocolStringList getUrisList() { - uris_.makeImmutable(); - return uris_; + public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList() { + proposedIncludeExportRanges_.makeImmutable(); + return proposedIncludeExportRanges_; } /** * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The count of uris. + * @return The count of proposedIncludeExportRanges. */ - public int getUrisCount() { - return uris_.size(); + public int getProposedIncludeExportRangesCount() { + return proposedIncludeExportRanges_.size(); } /** * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. - * @return The uris at the given index. + * @return The proposedIncludeExportRanges at the given index. */ - public java.lang.String getUris(int index) { - return uris_.get(index); + public java.lang.String getProposedIncludeExportRanges(int index) { + return proposedIncludeExportRanges_.get(index); } /** * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. - * @return The bytes of the uris at the given index. + * @return The bytes of the proposedIncludeExportRanges at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { - return uris_.getByteString(index); + public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index) { + return proposedIncludeExportRanges_.getByteString(index); } /** * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index to set the value at. - * @param value The uris to set. + * @param value The proposedIncludeExportRanges to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { + public Builder setProposedIncludeExportRanges(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureUrisIsMutable(); - uris_.set(index, value); - bitField0_ |= 0x00000001; + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.set(index, value); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -822,21 +3054,24 @@ public Builder setUris(int index, java.lang.String value) { * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The uris to add. + * @param value The proposedIncludeExportRanges to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { + public Builder addProposedIncludeExportRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureUrisIsMutable(); - uris_.add(value); - bitField0_ |= 0x00000001; + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(value); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -845,18 +3080,21 @@ public Builder addUris(java.lang.String value) { * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param values The uris to add. + * @param values The proposedIncludeExportRanges to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { - ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); - bitField0_ |= 0x00000001; + public Builder addAllProposedIncludeExportRanges(java.lang.Iterable values) { + ensureProposedIncludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedIncludeExportRanges_); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -865,16 +3103,19 @@ public Builder addAllUris(java.lang.Iterable values) { * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ - public Builder clearUris() { - uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearProposedIncludeExportRanges() { + proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); ; onChanged(); return this; @@ -884,160 +3125,157 @@ public Builder clearUris() { * * *
-     * The URIs of linked interconnect attachment resources
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The bytes of the uris to add. + * @param value The bytes of the proposedIncludeExportRanges to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { + public Builder addProposedIncludeExportRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureUrisIsMutable(); - uris_.add(value); - bitField0_ |= 0x00000001; + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(value); + bitField0_ |= 0x00000100; onChanged(); return this; } - private boolean siteToSiteDataTransfer_; + private com.google.protobuf.LazyStringArrayList excludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeExportRangesIsMutable() { + if (!excludeExportRanges_.isModifiable()) { + excludeExportRanges_ = new com.google.protobuf.LazyStringArrayList(excludeExportRanges_); + } + bitField0_ |= 0x00000200; + } /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The siteToSiteDataTransfer. + * @return A list containing the excludeExportRanges. */ - @java.lang.Override - public boolean getSiteToSiteDataTransfer() { - return siteToSiteDataTransfer_; + public com.google.protobuf.ProtocolStringList getExcludeExportRangesList() { + excludeExportRanges_.makeImmutable(); + return excludeExportRanges_; } /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The siteToSiteDataTransfer to set. - * @return This builder for chaining. + * @return The count of excludeExportRanges. */ - public Builder setSiteToSiteDataTransfer(boolean value) { - - siteToSiteDataTransfer_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public int getExcludeExportRangesCount() { + return excludeExportRanges_.size(); } /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return This builder for chaining. + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. */ - public Builder clearSiteToSiteDataTransfer() { - bitField0_ = (bitField0_ & ~0x00000002); - siteToSiteDataTransfer_ = false; - onChanged(); - return this; + public java.lang.String getExcludeExportRanges(int index) { + return excludeExportRanges_.get(index); } - private java.lang.Object vpcNetwork_ = ""; - /** * * *
-     * Output only. The VPC network where these VLAN attachments are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The vpcNetwork. + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. */ - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vpcNetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { + return excludeExportRanges_.getByteString(index); } /** * * *
-     * Output only. The VPC network where these VLAN attachments are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The bytes for vpcNetwork. + * @param index The index to set the value at. + * @param value The excludeExportRanges to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder setExcludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Output only. The VPC network where these VLAN attachments are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The vpcNetwork to set. + * @param value The excludeExportRanges to add. * @return This builder for chaining. */ - public Builder setVpcNetwork(java.lang.String value) { + public Builder addExcludeExportRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - vpcNetwork_ = value; - bitField0_ |= 0x00000004; + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -1046,18 +3284,20 @@ public Builder setVpcNetwork(java.lang.String value) { * * *
-     * Output only. The VPC network where these VLAN attachments are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * + * @param values The excludeExportRanges to add. * @return This builder for chaining. */ - public Builder clearVpcNetwork() { - vpcNetwork_ = getDefaultInstance().getVpcNetwork(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder addAllExcludeExportRanges(java.lang.Iterable values) { + ensureExcludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeExportRanges_); + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -1066,135 +3306,158 @@ public Builder clearVpcNetwork() { * * *
-     * Output only. The VPC network where these VLAN attachments are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + public Builder clearExcludeExportRanges() { + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
+     * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeExportRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - vpcNetwork_ = value; - bitField0_ |= 0x00000004; + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + private com.google.protobuf.LazyStringArrayList proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureIncludeImportRangesIsMutable() { - if (!includeImportRanges_.isModifiable()) { - includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + private void ensureProposedExcludeExportRangesIsMutable() { + if (!proposedExcludeExportRanges_.isModifiable()) { + proposedExcludeExportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedExcludeExportRanges_); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000400; } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return A list containing the includeImportRanges. + * @return A list containing the proposedExcludeExportRanges. */ - public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { - includeImportRanges_.makeImmutable(); - return includeImportRanges_; + public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList() { + proposedExcludeExportRanges_.makeImmutable(); + return proposedExcludeExportRanges_; } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The count of includeImportRanges. + * @return The count of proposedExcludeExportRanges. */ - public int getIncludeImportRangesCount() { - return includeImportRanges_.size(); + public int getProposedExcludeExportRangesCount() { + return proposedExcludeExportRanges_.size(); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. - * @return The includeImportRanges at the given index. + * @return The proposedExcludeExportRanges at the given index. */ - public java.lang.String getIncludeImportRanges(int index) { - return includeImportRanges_.get(index); + public java.lang.String getProposedExcludeExportRanges(int index) { + return proposedExcludeExportRanges_.get(index); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. - * @return The bytes of the includeImportRanges at the given index. + * @return The bytes of the proposedExcludeExportRanges at the given index. */ - public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { - return includeImportRanges_.getByteString(index); + public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index) { + return proposedExcludeExportRanges_.getByteString(index); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index to set the value at. - * @param value The includeImportRanges to set. + * @param value The proposedExcludeExportRanges to set. * @return This builder for chaining. */ - public Builder setIncludeImportRanges(int index, java.lang.String value) { + public Builder setProposedExcludeExportRanges(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.set(index, value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.set(index, value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1203,24 +3466,24 @@ public Builder setIncludeImportRanges(int index, java.lang.String value) { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The includeImportRanges to add. + * @param value The proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addIncludeImportRanges(java.lang.String value) { + public Builder addProposedExcludeExportRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.add(value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1229,21 +3492,21 @@ public Builder addIncludeImportRanges(java.lang.String value) { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param values The includeImportRanges to add. + * @param values The proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addAllIncludeImportRanges(java.lang.Iterable values) { - ensureIncludeImportRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); - bitField0_ |= 0x00000008; + public Builder addAllProposedExcludeExportRanges(java.lang.Iterable values) { + ensureProposedExcludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedExcludeExportRanges_); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1252,19 +3515,19 @@ public Builder addAllIncludeImportRanges(java.lang.Iterable va * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ - public Builder clearIncludeImportRanges() { - includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearProposedExcludeExportRanges() { + proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); ; onChanged(); return this; @@ -1274,25 +3537,25 @@ public Builder clearIncludeImportRanges() { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The bytes of the includeImportRanges to add. + * @param value The bytes of the proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + public Builder addProposedExcludeExportRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.add(value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java index 655318c3c7e6..49f7d1230d65 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java @@ -129,9 +129,8 @@ public interface LinkedInterconnectAttachmentsOrBuilder * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -145,9 +144,8 @@ public interface LinkedInterconnectAttachmentsOrBuilder * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -161,9 +159,8 @@ public interface LinkedInterconnectAttachmentsOrBuilder * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -178,9 +175,8 @@ public interface LinkedInterconnectAttachmentsOrBuilder * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -190,4 +186,454 @@ public interface LinkedInterconnectAttachmentsOrBuilder * @return The bytes of the includeImportRanges at the given index. */ com.google.protobuf.ByteString getIncludeImportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + java.util.List getProposedIncludeImportRangesList(); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + int getProposedIncludeImportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + java.lang.String getProposedIncludeImportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + java.util.List getExcludeImportRangesList(); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + int getExcludeImportRangesCount(); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + java.lang.String getExcludeImportRanges(int index); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getExcludeImportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + java.util.List getProposedExcludeImportRangesList(); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + int getProposedExcludeImportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + java.lang.String getProposedExcludeImportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + java.util.List getIncludeExportRangesList(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + int getIncludeExportRangesCount(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + java.lang.String getIncludeExportRanges(int index); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + com.google.protobuf.ByteString getIncludeExportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeExportRanges. + */ + java.util.List getProposedIncludeExportRangesList(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeExportRanges. + */ + int getProposedIncludeExportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeExportRanges at the given index. + */ + java.lang.String getProposedIncludeExportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + java.util.List getExcludeExportRangesList(); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + int getExcludeExportRangesCount(); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + java.lang.String getExcludeExportRanges(int index); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getExcludeExportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeExportRanges. + */ + java.util.List getProposedExcludeExportRangesList(); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeExportRanges. + */ + int getProposedExcludeExportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeExportRanges at the given index. + */ + java.lang.String getProposedExcludeExportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetwork.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetwork.java index efdbe5d78bfd..96f77627e330 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetwork.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetwork.java @@ -453,12 +453,12 @@ public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the proposedIncludeExportRanges. @@ -471,12 +471,12 @@ public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of proposedIncludeExportRanges. @@ -489,12 +489,12 @@ public int getProposedIncludeExportRangesCount() { * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -508,12 +508,12 @@ public java.lang.String getProposedIncludeExportRanges(int index) { * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. @@ -534,7 +534,7 @@ public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int in * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -552,7 +552,7 @@ public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -570,7 +570,7 @@ public int getProposedExcludeExportRangesCount() { * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -589,7 +589,7 @@ public java.lang.String getProposedExcludeExportRanges(int index) { * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -2026,12 +2026,12 @@ private void ensureProposedIncludeExportRangesIsMutable() { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the proposedIncludeExportRanges. @@ -2045,12 +2045,12 @@ public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of proposedIncludeExportRanges. @@ -2063,12 +2063,12 @@ public int getProposedIncludeExportRangesCount() { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -2082,12 +2082,12 @@ public java.lang.String getProposedIncludeExportRanges(int index) { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. @@ -2101,12 +2101,12 @@ public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int in * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index to set the value at. @@ -2128,12 +2128,12 @@ public Builder setProposedIncludeExportRanges(int index, java.lang.String value) * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The proposedIncludeExportRanges to add. @@ -2154,12 +2154,12 @@ public Builder addProposedIncludeExportRanges(java.lang.String value) { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param values The proposedIncludeExportRanges to add. @@ -2177,12 +2177,12 @@ public Builder addAllProposedIncludeExportRanges(java.lang.Iterable - * Optional. The proposed include export IP ranges waiting for hub - * administration's approval. + * Output only. The proposed include export IP ranges waiting for hub + * administrator's approval. * * * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -2199,12 +2199,12 @@ public Builder clearProposedIncludeExportRanges() { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The bytes of the proposedIncludeExportRanges to add. @@ -2238,7 +2238,7 @@ private void ensureProposedExcludeExportRangesIsMutable() { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -2257,7 +2257,7 @@ public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -2275,7 +2275,7 @@ public int getProposedExcludeExportRangesCount() { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -2294,7 +2294,7 @@ public java.lang.String getProposedExcludeExportRanges(int index) { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -2313,7 +2313,7 @@ public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int in * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -2340,7 +2340,7 @@ public Builder setProposedExcludeExportRanges(int index, java.lang.String value) * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -2366,7 +2366,7 @@ public Builder addProposedExcludeExportRanges(java.lang.String value) { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -2389,7 +2389,7 @@ public Builder addAllProposedExcludeExportRanges(java.lang.Iterable * Output only. The proposed exclude export IP ranges waiting for hub - * administration's approval. + * administrator's approval. * * * @@ -2411,7 +2411,7 @@ public Builder clearProposedExcludeExportRanges() { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetworkOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetworkOrBuilder.java index 53e006bb9173..e97f1330a3e0 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetworkOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetworkOrBuilder.java @@ -268,12 +268,12 @@ public interface LinkedProducerVpcNetworkOrBuilder * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the proposedIncludeExportRanges. @@ -284,12 +284,12 @@ public interface LinkedProducerVpcNetworkOrBuilder * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of proposedIncludeExportRanges. @@ -300,12 +300,12 @@ public interface LinkedProducerVpcNetworkOrBuilder * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -317,12 +317,12 @@ public interface LinkedProducerVpcNetworkOrBuilder * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. @@ -335,7 +335,7 @@ public interface LinkedProducerVpcNetworkOrBuilder * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -351,7 +351,7 @@ public interface LinkedProducerVpcNetworkOrBuilder * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -367,7 +367,7 @@ public interface LinkedProducerVpcNetworkOrBuilder * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -384,7 +384,7 @@ public interface LinkedProducerVpcNetworkOrBuilder * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java index 942672b381c3..45685c89dd14 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java @@ -58,6 +58,13 @@ private LinkedRouterApplianceInstances() { instances_ = java.util.Collections.emptyList(); vpcNetwork_ = ""; includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -250,9 +257,8 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -268,9 +274,8 @@ public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -286,9 +291,8 @@ public int getIncludeImportRangesCount() { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -305,9 +309,8 @@ public java.lang.String getIncludeImportRanges(int index) { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -320,557 +323,2803 @@ public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { return includeImportRanges_.getByteString(index); } - private byte memoizedIsInitialized = -1; + public static final int PROPOSED_INCLUDE_IMPORT_RANGES_FIELD_NUMBER = 11; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedIncludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - memoizedIsInitialized = 1; - return true; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeImportRangesList() { + return proposedIncludeImportRanges_; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < instances_.size(); i++) { - output.writeMessage(1, instances_.get(i)); - } - if (siteToSiteDataTransfer_ != false) { - output.writeBool(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, vpcNetwork_); - } - for (int i = 0; i < includeImportRanges_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, includeImportRanges_.getRaw(i)); - } - getUnknownFields().writeTo(output); + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + public int getProposedIncludeImportRangesCount() { + return proposedIncludeImportRanges_.size(); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + public java.lang.String getProposedIncludeImportRanges(int index) { + return proposedIncludeImportRanges_.get(index); + } - size = 0; - for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); - } - if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vpcNetwork_); - } - { - int dataSize = 0; - for (int i = 0; i < includeImportRanges_.size(); i++) { - dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludeImportRangesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index) { + return proposedIncludeImportRanges_.getByteString(index); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = - (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; + public static final int EXCLUDE_IMPORT_RANGES_FIELD_NUMBER = 6; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; - if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInstancesCount() > 0) { - hash = (37 * hash) + INSTANCES_FIELD_NUMBER; - hash = (53 * hash) + getInstancesList().hashCode(); - } - hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); - hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getVpcNetwork().hashCode(); - if (getIncludeImportRangesCount() > 0) { - hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getIncludeImportRangesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeImportRangesList() { + return excludeImportRanges_; } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + public int getExcludeImportRangesCount() { + return excludeImportRanges_.size(); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + public java.lang.String getExcludeImportRanges(int index) { + return excludeImportRanges_.get(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeImportRangesBytes(int index) { + return excludeImportRanges_.getByteString(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int PROPOSED_EXCLUDE_IMPORT_RANGES_FIELD_NUMBER = 12; - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedExcludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeImportRangesList() { + return proposedExcludeImportRanges_; } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + public int getProposedExcludeImportRangesCount() { + return proposedExcludeImportRanges_.size(); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + public java.lang.String getProposedExcludeImportRanges(int index) { + return proposedExcludeImportRanges_.get(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index) { + return proposedExcludeImportRanges_.getByteString(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - 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 final int INCLUDE_EXPORT_RANGES_FIELD_NUMBER = 7; - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + return includeExportRanges_; } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); } - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + public static final int PROPOSED_INCLUDE_EXPORT_RANGES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedIncludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList() { + return proposedIncludeExportRanges_; } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeExportRanges. + */ + public int getProposedIncludeExportRangesCount() { + return proposedIncludeExportRanges_.size(); } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeExportRanges at the given index. + */ + public java.lang.String getProposedIncludeExportRanges(int index) { + return proposedIncludeExportRanges_.get(index); } /** * * *
-   * A collection of router appliance instances. If you configure multiple router
-   * appliance instances to receive data from the same set of sites outside of
-   * Google Cloud, we recommend that you associate those instances with the same
-   * spoke.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* - * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeExportRanges at the given index. */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; - } + public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index) { + return proposedIncludeExportRanges_.getByteString(index); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class); - } + public static final int EXCLUDE_EXPORT_RANGES_FIELD_NUMBER = 8; - // Construct using - // com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder() - private Builder() {} + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeExportRangesList() { + return excludeExportRanges_; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (instancesBuilder_ == null) { - instances_ = java.util.Collections.emptyList(); - } else { - instances_ = null; - instancesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - siteToSiteDataTransfer_ = false; - vpcNetwork_ = ""; - includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + public int getExcludeExportRangesCount() { + return excludeExportRanges_.size(); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + public java.lang.String getExcludeExportRanges(int index) { + return excludeExportRanges_.get(index); + } - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance(); - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { + return excludeExportRanges_.getByteString(index); + } - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances build() { - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static final int PROPOSED_EXCLUDE_EXPORT_RANGES_FIELD_NUMBER = 10; - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances buildPartial() { - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = - new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedExcludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) { - if (instancesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - instances_ = java.util.Collections.unmodifiableList(instances_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.instances_ = instances_; - } else { - result.instances_ = instancesBuilder_.build(); - } - } + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList() { + return proposedExcludeExportRanges_; + } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeExportRanges. + */ + public int getProposedExcludeExportRangesCount() { + return proposedExcludeExportRanges_.size(); + } + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeExportRanges at the given index. + */ + public java.lang.String getProposedExcludeExportRanges(int index) { + return proposedExcludeExportRanges_.get(index); + } + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index) { + return proposedExcludeExportRanges_.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 < instances_.size(); i++) { + output.writeMessage(1, instances_.get(i)); + } + if (siteToSiteDataTransfer_ != false) { + output.writeBool(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vpcNetwork_); + } + for (int i = 0; i < includeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, includeImportRanges_.getRaw(i)); + } + for (int i = 0; i < excludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, excludeImportRanges_.getRaw(i)); + } + for (int i = 0; i < includeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, includeExportRanges_.getRaw(i)); + } + for (int i = 0; i < excludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, excludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedIncludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 9, proposedIncludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedExcludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 10, proposedExcludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedIncludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 11, proposedIncludeImportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedExcludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 12, proposedExcludeImportRanges_.getRaw(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 < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + } + if (siteToSiteDataTransfer_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vpcNetwork_); + } + { + int dataSize = 0; + for (int i = 0; i < includeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.vpcNetwork_ = vpcNetwork_; + size += dataSize; + size += 1 * getIncludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeImportRanges_.getRaw(i)); } - if (((from_bitField0_ & 0x00000008) != 0)) { - includeImportRanges_.makeImmutable(); - result.includeImportRanges_ = includeImportRanges_; + size += dataSize; + size += 1 * getExcludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < includeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeExportRanges_.getRaw(i)); } + size += dataSize; + size += 1 * getIncludeExportRangesList().size(); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) other); - } else { - super.mergeFrom(other); - return this; + { + int dataSize = 0; + for (int i = 0; i < excludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeExportRanges_.getRaw(i)); } + size += dataSize; + size += 1 * getExcludeExportRangesList().size(); } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) { - if (other - == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance()) return this; - if (instancesBuilder_ == null) { - if (!other.instances_.isEmpty()) { - if (instances_.isEmpty()) { - instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInstancesIsMutable(); - instances_.addAll(other.instances_); - } - onChanged(); - } - } else { - if (!other.instances_.isEmpty()) { - if (instancesBuilder_.isEmpty()) { - instancesBuilder_.dispose(); - instancesBuilder_ = null; - instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetInstancesFieldBuilder() - : null; - } else { - instancesBuilder_.addAllMessages(other.instances_); - } - } + { + int dataSize = 0; + for (int i = 0; i < proposedIncludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedIncludeExportRanges_.getRaw(i)); } - if (other.getSiteToSiteDataTransfer() != false) { - setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + size += dataSize; + size += 1 * getProposedIncludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedExcludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedExcludeExportRanges_.getRaw(i)); } - if (!other.getVpcNetwork().isEmpty()) { - vpcNetwork_ = other.vpcNetwork_; - bitField0_ |= 0x00000004; - onChanged(); + size += dataSize; + size += 1 * getProposedExcludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedIncludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedIncludeImportRanges_.getRaw(i)); } - if (!other.includeImportRanges_.isEmpty()) { - if (includeImportRanges_.isEmpty()) { - includeImportRanges_ = other.includeImportRanges_; - bitField0_ |= 0x00000008; - } else { - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.addAll(other.includeImportRanges_); - } - onChanged(); + size += dataSize; + size += 1 * getProposedIncludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedExcludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedExcludeImportRanges_.getRaw(i)); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + size += dataSize; + size += 1 * getProposedExcludeImportRangesList().size(); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public final boolean isInitialized() { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { return true; } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = + (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; - @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.networkconnectivity.v1.RouterApplianceInstance m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(), - extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - siteToSiteDataTransfer_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - vpcNetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.add(s); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; + if (!getProposedIncludeImportRangesList().equals(other.getProposedIncludeImportRangesList())) + return false; + if (!getExcludeImportRangesList().equals(other.getExcludeImportRangesList())) return false; + if (!getProposedExcludeImportRangesList().equals(other.getProposedExcludeImportRangesList())) + return false; + if (!getIncludeExportRangesList().equals(other.getIncludeExportRangesList())) return false; + if (!getProposedIncludeExportRangesList().equals(other.getProposedIncludeExportRangesList())) + return false; + if (!getExcludeExportRangesList().equals(other.getExcludeExportRangesList())) return false; + if (!getProposedExcludeExportRangesList().equals(other.getProposedExcludeExportRangesList())) + 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 (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); + if (getIncludeImportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeImportRangesList().hashCode(); + } + if (getProposedIncludeImportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedIncludeImportRangesList().hashCode(); + } + if (getExcludeImportRangesCount() > 0) { + hash = (37 * hash) + EXCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeImportRangesList().hashCode(); + } + if (getProposedExcludeImportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_EXCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedExcludeImportRangesList().hashCode(); + } + if (getIncludeExportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeExportRangesList().hashCode(); + } + if (getProposedIncludeExportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_INCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedIncludeExportRangesList().hashCode(); + } + if (getExcludeExportRangesCount() > 0) { + hash = (37 * hash) + EXCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeExportRangesList().hashCode(); + } + if (getProposedExcludeExportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_EXCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedExcludeExportRangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances 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 collection of router appliance instances. If you configure multiple router
+   * appliance instances to receive data from the same set of sites outside of
+   * Google Cloud, we recommend that you associate those instances with the same
+   * spoke.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + siteToSiteDataTransfer_ = false; + vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances build() { + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances buildPartial() { + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = + new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vpcNetwork_ = vpcNetwork_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + includeImportRanges_.makeImmutable(); + result.includeImportRanges_ = includeImportRanges_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + proposedIncludeImportRanges_.makeImmutable(); + result.proposedIncludeImportRanges_ = proposedIncludeImportRanges_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + excludeImportRanges_.makeImmutable(); + result.excludeImportRanges_ = excludeImportRanges_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + proposedExcludeImportRanges_.makeImmutable(); + result.proposedExcludeImportRanges_ = proposedExcludeImportRanges_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + includeExportRanges_.makeImmutable(); + result.includeExportRanges_ = includeExportRanges_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + proposedIncludeExportRanges_.makeImmutable(); + result.proposedIncludeExportRanges_ = proposedIncludeExportRanges_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + excludeExportRanges_.makeImmutable(); + result.excludeExportRanges_ = excludeExportRanges_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + proposedExcludeExportRanges_.makeImmutable(); + result.proposedExcludeExportRanges_ = proposedExcludeExportRanges_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) { + if (other + == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance()) return this; + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000001); + instancesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + if (other.getSiteToSiteDataTransfer() != false) { + setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + } + if (!other.getVpcNetwork().isEmpty()) { + vpcNetwork_ = other.vpcNetwork_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.includeImportRanges_.isEmpty()) { + if (includeImportRanges_.isEmpty()) { + includeImportRanges_ = other.includeImportRanges_; + bitField0_ |= 0x00000008; + } else { + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.addAll(other.includeImportRanges_); + } + onChanged(); + } + if (!other.proposedIncludeImportRanges_.isEmpty()) { + if (proposedIncludeImportRanges_.isEmpty()) { + proposedIncludeImportRanges_ = other.proposedIncludeImportRanges_; + bitField0_ |= 0x00000010; + } else { + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.addAll(other.proposedIncludeImportRanges_); + } + onChanged(); + } + if (!other.excludeImportRanges_.isEmpty()) { + if (excludeImportRanges_.isEmpty()) { + excludeImportRanges_ = other.excludeImportRanges_; + bitField0_ |= 0x00000020; + } else { + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.addAll(other.excludeImportRanges_); + } + onChanged(); + } + if (!other.proposedExcludeImportRanges_.isEmpty()) { + if (proposedExcludeImportRanges_.isEmpty()) { + proposedExcludeImportRanges_ = other.proposedExcludeImportRanges_; + bitField0_ |= 0x00000040; + } else { + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.addAll(other.proposedExcludeImportRanges_); + } + onChanged(); + } + if (!other.includeExportRanges_.isEmpty()) { + if (includeExportRanges_.isEmpty()) { + includeExportRanges_ = other.includeExportRanges_; + bitField0_ |= 0x00000080; + } else { + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.addAll(other.includeExportRanges_); + } + onChanged(); + } + if (!other.proposedIncludeExportRanges_.isEmpty()) { + if (proposedIncludeExportRanges_.isEmpty()) { + proposedIncludeExportRanges_ = other.proposedIncludeExportRanges_; + bitField0_ |= 0x00000100; + } else { + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.addAll(other.proposedIncludeExportRanges_); + } + onChanged(); + } + if (!other.excludeExportRanges_.isEmpty()) { + if (excludeExportRanges_.isEmpty()) { + excludeExportRanges_ = other.excludeExportRanges_; + bitField0_ |= 0x00000200; + } else { + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.addAll(other.excludeExportRanges_); + } + onChanged(); + } + if (!other.proposedExcludeExportRanges_.isEmpty()) { + if (proposedExcludeExportRanges_.isEmpty()) { + proposedExcludeExportRanges_ = other.proposedExcludeExportRanges_; + bitField0_ |= 0x00000400; + } else { + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.addAll(other.proposedExcludeExportRanges_); + } + 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.networkconnectivity.v1.RouterApplianceInstance m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + siteToSiteDataTransfer_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + vpcNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(s); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(s); + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(s); + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(s); + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(s); + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(s); + break; + } // case 98 + 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 + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>(instances_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder setInstances( + int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder setInstances( + int index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder addInstances( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder addInstances( + int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder addInstances( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder addInstances( + int index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + getInstancesBuilder(int index) { + return internalGetInstancesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + addInstancesBuilder() { + return internalGetInstancesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + addInstancesBuilder(int index) { + return internalGetInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of router appliance instances.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + */ + public java.util.List + getInstancesBuilderList() { + return internalGetInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + internalGetInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + private boolean siteToSiteDataTransfer_; + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @param value The siteToSiteDataTransfer to set. + * @return This builder for chaining. + */ + public Builder setSiteToSiteDataTransfer(boolean value) { + + siteToSiteDataTransfer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return This builder for chaining. + */ + public Builder clearSiteToSiteDataTransfer() { + bitField0_ = (bitField0_ & ~0x00000002); + siteToSiteDataTransfer_ = false; + onChanged(); + return this; + } + + private java.lang.Object vpcNetwork_ = ""; + + /** + * + * + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeImportRangesIsMutable() { + if (!includeImportRanges_.isModifiable()) { + includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + includeImportRanges_.makeImmutable(); + return includeImportRanges_; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeImportRanges(java.lang.Iterable values) { + ensureIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeImportRanges() { + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList proposedIncludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProposedIncludeImportRangesIsMutable() { + if (!proposedIncludeImportRanges_.isModifiable()) { + proposedIncludeImportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedIncludeImportRanges_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeImportRangesList() { + proposedIncludeImportRanges_.makeImmutable(); + return proposedIncludeImportRanges_; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + public int getProposedIncludeImportRangesCount() { + return proposedIncludeImportRanges_.size(); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + public java.lang.String getProposedIncludeImportRanges(int index) { + return proposedIncludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index) { + return proposedIncludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The proposedIncludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setProposedIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllProposedIncludeImportRanges(java.lang.Iterable values) { + ensureProposedIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedIncludeImportRanges_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProposedIncludeImportRanges() { + proposedIncludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeImportRangesIsMutable() { + if (!excludeImportRanges_.isModifiable()) { + excludeImportRanges_ = new com.google.protobuf.LazyStringArrayList(excludeImportRanges_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeImportRangesList() { + excludeImportRanges_.makeImmutable(); + return excludeImportRanges_; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + public int getExcludeImportRangesCount() { + return excludeImportRanges_.size(); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + public java.lang.String getExcludeImportRanges(int index) { + return excludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeImportRangesBytes(int index) { + return excludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setExcludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeImportRanges(java.lang.Iterable values) { + ensureExcludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeImportRanges_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeImportRanges() { + excludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList proposedExcludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProposedExcludeImportRangesIsMutable() { + if (!proposedExcludeImportRanges_.isModifiable()) { + proposedExcludeImportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedExcludeImportRanges_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeImportRangesList() { + proposedExcludeImportRanges_.makeImmutable(); + return proposedExcludeImportRanges_; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + public int getProposedExcludeImportRangesCount() { + return proposedExcludeImportRanges_.size(); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + public java.lang.String getProposedExcludeImportRanges(int index) { + return proposedExcludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index) { + return proposedExcludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The proposedExcludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setProposedExcludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedExcludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllProposedExcludeImportRanges(java.lang.Iterable values) { + ensureProposedExcludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedExcludeImportRanges_); + bitField0_ |= 0x00000040; + onChanged(); return this; } - private int bitField0_; + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProposedExcludeImportRanges() { + proposedExcludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } - private java.util.List - instances_ = java.util.Collections.emptyList(); + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedExcludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } - private void ensureInstancesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>(instances_); - bitField0_ |= 0x00000001; + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeExportRangesIsMutable() { + if (!includeExportRanges_.isModifiable()) { + includeExportRanges_ = new com.google.protobuf.LazyStringArrayList(includeExportRanges_); } + bitField0_ |= 0x00000080; } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> - instancesBuilder_; + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + includeExportRanges_.makeImmutable(); + return includeExportRanges_; + } /** * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The count of includeExportRanges. */ - public java.util.List - getInstancesList() { - if (instancesBuilder_ == null) { - return java.util.Collections.unmodifiableList(instances_); - } else { - return instancesBuilder_.getMessageList(); - } + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); } /** * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. */ - public int getInstancesCount() { - if (instancesBuilder_ == null) { - return instances_.size(); - } else { - return instancesBuilder_.getCount(); - } + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); } /** * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { - if (instancesBuilder_ == null) { - return instances_.get(index); - } else { - return instancesBuilder_.getMessage(index); - } + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); } /** * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param index The index to set the value at. + * @param value The includeExportRanges to set. + * @return This builder for chaining. */ - public Builder setInstances( - int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { - if (instancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); - instances_.set(index, value); - onChanged(); - } else { - instancesBuilder_.setMessage(index, value); + public Builder setIncludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); return this; } @@ -878,22 +3127,24 @@ public Builder setInstances( * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The includeExportRanges to add. + * @return This builder for chaining. */ - public Builder setInstances( - int index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.set(index, builderForValue.build()); - onChanged(); - } else { - instancesBuilder_.setMessage(index, builderForValue.build()); + public Builder addIncludeExportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000080; + onChanged(); return this; } @@ -901,24 +3152,21 @@ public Builder setInstances( * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param values The includeExportRanges to add. + * @return This builder for chaining. */ - public Builder addInstances( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { - if (instancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); - instances_.add(value); - onChanged(); - } else { - instancesBuilder_.addMessage(value); - } + public Builder addAllIncludeExportRanges(java.lang.Iterable values) { + ensureIncludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeExportRanges_); + bitField0_ |= 0x00000080; + onChanged(); return this; } @@ -926,24 +3174,20 @@ public Builder addInstances( * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - public Builder addInstances( - int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { - if (instancesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); - instances_.add(index, value); - onChanged(); - } else { - instancesBuilder_.addMessage(index, value); - } + public Builder clearIncludeExportRanges() { + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); return this; } @@ -951,371 +3195,389 @@ public Builder addInstances( * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The bytes of the includeExportRanges to add. + * @return This builder for chaining. */ - public Builder addInstances( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(builderForValue.build()); - onChanged(); - } else { - instancesBuilder_.addMessage(builderForValue.build()); + public Builder addIncludeExportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000080; + onChanged(); return this; } + private com.google.protobuf.LazyStringArrayList proposedIncludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProposedIncludeExportRangesIsMutable() { + if (!proposedIncludeExportRanges_.isModifiable()) { + proposedIncludeExportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedIncludeExportRanges_); + } + bitField0_ |= 0x00000100; + } + /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the proposedIncludeExportRanges. */ - public Builder addInstances( - int index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(index, builderForValue.build()); - onChanged(); - } else { - instancesBuilder_.addMessage(index, builderForValue.build()); - } - return this; + public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList() { + proposedIncludeExportRanges_.makeImmutable(); + return proposedIncludeExportRanges_; } /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The count of proposedIncludeExportRanges. */ - public Builder addAllInstances( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance> - values) { - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); - onChanged(); - } else { - instancesBuilder_.addAllMessages(values); - } - return this; + public int getProposedIncludeExportRangesCount() { + return proposedIncludeExportRanges_.size(); } /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the element to return. + * @return The proposedIncludeExportRanges at the given index. */ - public Builder clearInstances() { - if (instancesBuilder_ == null) { - instances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - instancesBuilder_.clear(); - } - return this; + public java.lang.String getProposedIncludeExportRanges(int index) { + return proposedIncludeExportRanges_.get(index); } /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeExportRanges at the given index. */ - public Builder removeInstances(int index) { - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.remove(index); - onChanged(); - } else { - instancesBuilder_.remove(index); - } - return this; + public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index) { + return proposedIncludeExportRanges_.getByteString(index); } /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index to set the value at. + * @param value The proposedIncludeExportRanges to set. + * @return This builder for chaining. */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - getInstancesBuilder(int index) { - return internalGetInstancesFieldBuilder().getBuilder(index); + public Builder setProposedIncludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The proposedIncludeExportRanges to add. + * @return This builder for chaining. */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder - getInstancesOrBuilder(int index) { - if (instancesBuilder_ == null) { - return instances_.get(index); - } else { - return instancesBuilder_.getMessageOrBuilder(index); + public Builder addProposedIncludeExportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param values The proposedIncludeExportRanges to add. + * @return This builder for chaining. */ - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> - getInstancesOrBuilderList() { - if (instancesBuilder_ != null) { - return instancesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(instances_); - } + public Builder addAllProposedIncludeExportRanges(java.lang.Iterable values) { + ensureProposedIncludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedIncludeExportRanges_); + bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - addInstancesBuilder() { - return internalGetInstancesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public Builder clearProposedIncludeExportRanges() { + proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; } /** * * *
-     * The list of router appliance instances.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes of the proposedIncludeExportRanges to add. + * @return This builder for chaining. */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - addInstancesBuilder(int index) { - return internalGetInstancesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public Builder addProposedIncludeExportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeExportRangesIsMutable() { + if (!excludeExportRanges_.isModifiable()) { + excludeExportRanges_ = new com.google.protobuf.LazyStringArrayList(excludeExportRanges_); + } + bitField0_ |= 0x00000200; } /** * * *
-     * The list of router appliance instances.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return A list containing the excludeExportRanges. */ - public java.util.List - getInstancesBuilderList() { - return internalGetInstancesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> - internalGetInstancesFieldBuilder() { - if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - instances_ = null; - } - return instancesBuilder_; + public com.google.protobuf.ProtocolStringList getExcludeExportRangesList() { + excludeExportRanges_.makeImmutable(); + return excludeExportRanges_; } - private boolean siteToSiteDataTransfer_; - /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The siteToSiteDataTransfer. + * @return The count of excludeExportRanges. */ - @java.lang.Override - public boolean getSiteToSiteDataTransfer() { - return siteToSiteDataTransfer_; + public int getExcludeExportRangesCount() { + return excludeExportRanges_.size(); } /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The siteToSiteDataTransfer to set. - * @return This builder for chaining. + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. */ - public Builder setSiteToSiteDataTransfer(boolean value) { - - siteToSiteDataTransfer_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public java.lang.String getExcludeExportRanges(int index) { + return excludeExportRanges_.get(index); } /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return This builder for chaining. + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. */ - public Builder clearSiteToSiteDataTransfer() { - bitField0_ = (bitField0_ & ~0x00000002); - siteToSiteDataTransfer_ = false; - onChanged(); - return this; + public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { + return excludeExportRanges_.getByteString(index); } - private java.lang.Object vpcNetwork_ = ""; - /** * * *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The vpcNetwork. + * @param index The index to set the value at. + * @param value The excludeExportRanges to set. + * @return This builder for chaining. */ - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vpcNetwork_ = s; - return s; - } else { - return (java.lang.String) ref; + public Builder setExcludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The bytes for vpcNetwork. + * @param value The excludeExportRanges to add. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder addExcludeExportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The vpcNetwork to set. + * @param values The excludeExportRanges to add. * @return This builder for chaining. */ - public Builder setVpcNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - vpcNetwork_ = value; - bitField0_ |= 0x00000004; + public Builder addAllExcludeExportRanges(java.lang.Iterable values) { + ensureExcludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeExportRanges_); + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -1324,19 +3586,19 @@ public Builder setVpcNetwork(java.lang.String value) { * * *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ - public Builder clearVpcNetwork() { - vpcNetwork_ = getDefaultInstance().getVpcNetwork(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearExcludeExportRanges() { + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; onChanged(); return this; } @@ -1345,136 +3607,137 @@ public Builder clearVpcNetwork() { * * *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The bytes for vpcNetwork to set. + * @param value The bytes of the excludeExportRanges to add. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + public Builder addExcludeExportRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - vpcNetwork_ = value; - bitField0_ |= 0x00000004; + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + private com.google.protobuf.LazyStringArrayList proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureIncludeImportRangesIsMutable() { - if (!includeImportRanges_.isModifiable()) { - includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + private void ensureProposedExcludeExportRangesIsMutable() { + if (!proposedExcludeExportRanges_.isModifiable()) { + proposedExcludeExportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedExcludeExportRanges_); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000400; } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return A list containing the includeImportRanges. + * @return A list containing the proposedExcludeExportRanges. */ - public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { - includeImportRanges_.makeImmutable(); - return includeImportRanges_; + public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList() { + proposedExcludeExportRanges_.makeImmutable(); + return proposedExcludeExportRanges_; } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The count of includeImportRanges. + * @return The count of proposedExcludeExportRanges. */ - public int getIncludeImportRangesCount() { - return includeImportRanges_.size(); + public int getProposedExcludeExportRangesCount() { + return proposedExcludeExportRanges_.size(); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. - * @return The includeImportRanges at the given index. + * @return The proposedExcludeExportRanges at the given index. */ - public java.lang.String getIncludeImportRanges(int index) { - return includeImportRanges_.get(index); + public java.lang.String getProposedExcludeExportRanges(int index) { + return proposedExcludeExportRanges_.get(index); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. - * @return The bytes of the includeImportRanges at the given index. + * @return The bytes of the proposedExcludeExportRanges at the given index. */ - public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { - return includeImportRanges_.getByteString(index); + public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index) { + return proposedExcludeExportRanges_.getByteString(index); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index to set the value at. - * @param value The includeImportRanges to set. + * @param value The proposedExcludeExportRanges to set. * @return This builder for chaining. */ - public Builder setIncludeImportRanges(int index, java.lang.String value) { + public Builder setProposedExcludeExportRanges(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.set(index, value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.set(index, value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1483,24 +3746,24 @@ public Builder setIncludeImportRanges(int index, java.lang.String value) { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The includeImportRanges to add. + * @param value The proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addIncludeImportRanges(java.lang.String value) { + public Builder addProposedExcludeExportRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.add(value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1509,21 +3772,21 @@ public Builder addIncludeImportRanges(java.lang.String value) { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param values The includeImportRanges to add. + * @param values The proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addAllIncludeImportRanges(java.lang.Iterable values) { - ensureIncludeImportRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); - bitField0_ |= 0x00000008; + public Builder addAllProposedExcludeExportRanges(java.lang.Iterable values) { + ensureProposedExcludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedExcludeExportRanges_); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1532,19 +3795,19 @@ public Builder addAllIncludeImportRanges(java.lang.Iterable va * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ - public Builder clearIncludeImportRanges() { - includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearProposedExcludeExportRanges() { + proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); ; onChanged(); return this; @@ -1554,25 +3817,25 @@ public Builder clearIncludeImportRanges() { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The bytes of the includeImportRanges to add. + * @param value The bytes of the proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + public Builder addProposedExcludeExportRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.add(value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java index 67ea46c3fa5b..0866d417bcdb 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java @@ -140,9 +140,8 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -156,9 +155,8 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -172,9 +170,8 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -189,9 +186,8 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -201,4 +197,454 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst * @return The bytes of the includeImportRanges at the given index. */ com.google.protobuf.ByteString getIncludeImportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + java.util.List getProposedIncludeImportRangesList(); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + int getProposedIncludeImportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + java.lang.String getProposedIncludeImportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + java.util.List getExcludeImportRangesList(); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + int getExcludeImportRangesCount(); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + java.lang.String getExcludeImportRanges(int index); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getExcludeImportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + java.util.List getProposedExcludeImportRangesList(); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + int getProposedExcludeImportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + java.lang.String getProposedExcludeImportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + java.util.List getIncludeExportRangesList(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + int getIncludeExportRangesCount(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + java.lang.String getIncludeExportRanges(int index); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + com.google.protobuf.ByteString getIncludeExportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeExportRanges. + */ + java.util.List getProposedIncludeExportRangesList(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeExportRanges. + */ + int getProposedIncludeExportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeExportRanges at the given index. + */ + java.lang.String getProposedIncludeExportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + java.util.List getExcludeExportRangesList(); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + int getExcludeExportRangesCount(); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + java.lang.String getExcludeExportRanges(int index); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getExcludeExportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeExportRanges. + */ + java.util.List getProposedExcludeExportRangesList(); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeExportRanges. + */ + int getProposedExcludeExportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeExportRanges at the given index. + */ + java.lang.String getProposedExcludeExportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetwork.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetwork.java index 7086919eb0f7..5116beec3c6f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetwork.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetwork.java @@ -286,12 +286,12 @@ public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the proposedIncludeExportRanges. @@ -304,12 +304,12 @@ public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of proposedIncludeExportRanges. @@ -322,12 +322,12 @@ public int getProposedIncludeExportRangesCount() { * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -341,12 +341,12 @@ public java.lang.String getProposedIncludeExportRanges(int index) { * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. @@ -367,7 +367,7 @@ public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int in * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -385,7 +385,7 @@ public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -403,7 +403,7 @@ public int getProposedExcludeExportRangesCount() { * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -422,7 +422,7 @@ public java.lang.String getProposedExcludeExportRanges(int index) { * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -449,7 +449,7 @@ public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int in * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -472,7 +472,7 @@ public com.google.protobuf.ProtocolStringList getProducerVpcSpokesList() { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -495,7 +495,7 @@ public int getProducerVpcSpokesCount() { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -519,7 +519,7 @@ public java.lang.String getProducerVpcSpokes(int index) { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -1561,12 +1561,12 @@ private void ensureProposedIncludeExportRangesIsMutable() { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the proposedIncludeExportRanges. @@ -1580,12 +1580,12 @@ public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of proposedIncludeExportRanges. @@ -1598,12 +1598,12 @@ public int getProposedIncludeExportRangesCount() { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -1617,12 +1617,12 @@ public java.lang.String getProposedIncludeExportRanges(int index) { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. @@ -1636,12 +1636,12 @@ public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int in * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index to set the value at. @@ -1663,12 +1663,12 @@ public Builder setProposedIncludeExportRanges(int index, java.lang.String value) * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The proposedIncludeExportRanges to add. @@ -1689,12 +1689,12 @@ public Builder addProposedIncludeExportRanges(java.lang.String value) { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param values The proposedIncludeExportRanges to add. @@ -1712,12 +1712,12 @@ public Builder addAllProposedIncludeExportRanges(java.lang.Iterable - * Optional. The proposed include export IP ranges waiting for hub - * administration's approval. + * Output only. The proposed include export IP ranges waiting for hub + * administrator's approval. * * * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -1734,12 +1734,12 @@ public Builder clearProposedIncludeExportRanges() { * * *
-     * Optional. The proposed include export IP ranges waiting for hub
-     * administration's approval.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The bytes of the proposedIncludeExportRanges to add. @@ -1773,7 +1773,7 @@ private void ensureProposedExcludeExportRangesIsMutable() { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -1792,7 +1792,7 @@ public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -1810,7 +1810,7 @@ public int getProposedExcludeExportRangesCount() { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -1829,7 +1829,7 @@ public java.lang.String getProposedExcludeExportRanges(int index) { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -1848,7 +1848,7 @@ public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int in * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -1875,7 +1875,7 @@ public Builder setProposedExcludeExportRanges(int index, java.lang.String value) * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -1901,7 +1901,7 @@ public Builder addProposedExcludeExportRanges(java.lang.String value) { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -1924,7 +1924,7 @@ public Builder addAllProposedExcludeExportRanges(java.lang.Iterable * Output only. The proposed exclude export IP ranges waiting for hub - * administration's approval. + * administrator's approval. * * * @@ -1946,7 +1946,7 @@ public Builder clearProposedExcludeExportRanges() { * *
      * Output only. The proposed exclude export IP ranges waiting for hub
-     * administration's approval.
+     * administrator's approval.
      * 
* * @@ -1985,7 +1985,7 @@ private void ensureProducerVpcSpokesIsMutable() { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -2009,7 +2009,7 @@ public com.google.protobuf.ProtocolStringList getProducerVpcSpokesList() { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -2032,7 +2032,7 @@ public int getProducerVpcSpokesCount() { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -2056,7 +2056,7 @@ public java.lang.String getProducerVpcSpokes(int index) { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -2080,7 +2080,7 @@ public com.google.protobuf.ByteString getProducerVpcSpokesBytes(int index) { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -2112,7 +2112,7 @@ public Builder setProducerVpcSpokes(int index, java.lang.String value) { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -2143,7 +2143,7 @@ public Builder addProducerVpcSpokes(java.lang.String value) { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -2171,7 +2171,7 @@ public Builder addAllProducerVpcSpokes(java.lang.Iterable valu * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -2198,7 +2198,7 @@ public Builder clearProducerVpcSpokes() { * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetworkOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetworkOrBuilder.java index 74c761d2ccb8..3467931efa4d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetworkOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetworkOrBuilder.java @@ -176,12 +176,12 @@ public interface LinkedVpcNetworkOrBuilder * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the proposedIncludeExportRanges. @@ -192,12 +192,12 @@ public interface LinkedVpcNetworkOrBuilder * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of proposedIncludeExportRanges. @@ -208,12 +208,12 @@ public interface LinkedVpcNetworkOrBuilder * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -225,12 +225,12 @@ public interface LinkedVpcNetworkOrBuilder * * *
-   * Optional. The proposed include export IP ranges waiting for hub
-   * administration's approval.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* * - * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string proposed_include_export_ranges = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. @@ -243,7 +243,7 @@ public interface LinkedVpcNetworkOrBuilder * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -259,7 +259,7 @@ public interface LinkedVpcNetworkOrBuilder * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -275,7 +275,7 @@ public interface LinkedVpcNetworkOrBuilder * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -292,7 +292,7 @@ public interface LinkedVpcNetworkOrBuilder * *
    * Output only. The proposed exclude export IP ranges waiting for hub
-   * administration's approval.
+   * administrator's approval.
    * 
* * @@ -311,7 +311,7 @@ public interface LinkedVpcNetworkOrBuilder * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -332,7 +332,7 @@ public interface LinkedVpcNetworkOrBuilder * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -353,7 +353,7 @@ public interface LinkedVpcNetworkOrBuilder * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. @@ -375,7 +375,7 @@ public interface LinkedVpcNetworkOrBuilder * Output only. The list of Producer VPC spokes that this VPC spoke is a * service consumer VPC spoke for. These producer VPCs are connected through * VPC peering to this spoke's backing VPC network. Because they are directly - * connected throuh VPC peering, NCC export filters do not apply between the + * connected through VPC peering, NCC export filters do not apply between the * service consumer VPC spoke and any of its producer VPC spokes. This VPC * spoke cannot be deleted as long as any of these producer VPC spokes are * connected to the NCC Hub. diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java index a6585dbd1033..833ebbc71a54 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java @@ -58,6 +58,13 @@ private LinkedVpnTunnels() { uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); vpcNetwork_ = ""; includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -231,9 +238,8 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -249,9 +255,8 @@ public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -267,9 +272,8 @@ public int getIncludeImportRangesCount() { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -286,9 +290,8 @@ public java.lang.String getIncludeImportRanges(int index) { * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -301,511 +304,2740 @@ public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { return includeImportRanges_.getByteString(index); } - private byte memoizedIsInitialized = -1; + public static final int PROPOSED_INCLUDE_IMPORT_RANGES_FIELD_NUMBER = 11; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedIncludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - memoizedIsInitialized = 1; - return true; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeImportRangesList() { + return proposedIncludeImportRanges_; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < uris_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, uris_.getRaw(i)); - } - if (siteToSiteDataTransfer_ != false) { - output.writeBool(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, vpcNetwork_); - } - for (int i = 0; i < includeImportRanges_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, includeImportRanges_.getRaw(i)); - } - getUnknownFields().writeTo(output); + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + public int getProposedIncludeImportRangesCount() { + return proposedIncludeImportRanges_.size(); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < uris_.size(); i++) { - dataSize += computeStringSizeNoTag(uris_.getRaw(i)); - } - size += dataSize; - size += 1 * getUrisList().size(); - } - if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vpcNetwork_); - } - { - int dataSize = 0; - for (int i = 0; i < includeImportRanges_.size(); i++) { - dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludeImportRangesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + public java.lang.String getProposedIncludeImportRanges(int index) { + return proposedIncludeImportRanges_.get(index); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = - (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; - - if (!getUrisList().equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; - if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index) { + return proposedIncludeImportRanges_.getByteString(index); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUrisCount() > 0) { - hash = (37 * hash) + URIS_FIELD_NUMBER; - hash = (53 * hash) + getUrisList().hashCode(); - } - hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); - hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getVpcNetwork().hashCode(); - if (getIncludeImportRangesCount() > 0) { - hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getIncludeImportRangesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int EXCLUDE_IMPORT_RANGES_FIELD_NUMBER = 6; - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeImportRangesList() { + return excludeImportRanges_; } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + public int getExcludeImportRangesCount() { + return excludeImportRanges_.size(); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + public java.lang.String getExcludeImportRanges(int index) { + return excludeImportRanges_.get(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeImportRangesBytes(int index) { + return excludeImportRanges_.getByteString(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int PROPOSED_EXCLUDE_IMPORT_RANGES_FIELD_NUMBER = 12; - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedExcludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeImportRangesList() { + return proposedExcludeImportRanges_; } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + public int getProposedExcludeImportRangesCount() { + return proposedExcludeImportRanges_.size(); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + public java.lang.String getProposedExcludeImportRanges(int index) { + return proposedExcludeImportRanges_.get(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index) { + return proposedExcludeImportRanges_.getByteString(index); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int INCLUDE_EXPORT_RANGES_FIELD_NUMBER = 7; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + return includeExportRanges_; } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); } - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public static final int PROPOSED_INCLUDE_EXPORT_RANGES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedIncludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList() { + return proposedIncludeExportRanges_; } /** * * *
-   * A collection of Cloud VPN tunnel resources. These resources should be
-   * redundant HA VPN tunnels that all advertise the same prefixes to Google
-   * Cloud. Alternatively, in a passive/active configuration, all tunnels
-   * should be capable of advertising the same prefixes.
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
    * 
* - * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels} + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeExportRanges. */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; - } + public int getProposedIncludeExportRangesCount() { + return proposedIncludeExportRanges_.size(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class); - } + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeExportRanges at the given index. + */ + public java.lang.String getProposedIncludeExportRanges(int index) { + return proposedIncludeExportRanges_.get(index); + } - // Construct using com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.newBuilder() - private Builder() {} + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index) { + return proposedIncludeExportRanges_.getByteString(index); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + public static final int EXCLUDE_EXPORT_RANGES_FIELD_NUMBER = 8; - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - siteToSiteDataTransfer_ = false; - vpcNetwork_ = ""; - includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeExportRangesList() { + return excludeExportRanges_; + } - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance(); - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + public int getExcludeExportRangesCount() { + return excludeExportRanges_.size(); + } - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels build() { - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + public java.lang.String getExcludeExportRanges(int index) { + return excludeExportRanges_.get(index); + } - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels buildPartial() { - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = - new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { + return excludeExportRanges_.getByteString(index); + } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - uris_.makeImmutable(); - result.uris_ = uris_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.vpcNetwork_ = vpcNetwork_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - includeImportRanges_.makeImmutable(); - result.includeImportRanges_ = includeImportRanges_; - } - } + public static final int PROPOSED_EXCLUDE_EXPORT_RANGES_FIELD_NUMBER = 10; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) other); - } else { - super.mergeFrom(other); - return this; - } - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList proposedExcludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other) { - if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) - return this; - if (!other.uris_.isEmpty()) { + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList() { + return proposedExcludeExportRanges_; + } + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeExportRanges. + */ + public int getProposedExcludeExportRangesCount() { + return proposedExcludeExportRanges_.size(); + } + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeExportRanges at the given index. + */ + public java.lang.String getProposedExcludeExportRanges(int index) { + return proposedExcludeExportRanges_.get(index); + } + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index) { + return proposedExcludeExportRanges_.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 < uris_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uris_.getRaw(i)); + } + if (siteToSiteDataTransfer_ != false) { + output.writeBool(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vpcNetwork_); + } + for (int i = 0; i < includeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, includeImportRanges_.getRaw(i)); + } + for (int i = 0; i < excludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, excludeImportRanges_.getRaw(i)); + } + for (int i = 0; i < includeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, includeExportRanges_.getRaw(i)); + } + for (int i = 0; i < excludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, excludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedIncludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 9, proposedIncludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedExcludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 10, proposedExcludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedIncludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 11, proposedIncludeImportRanges_.getRaw(i)); + } + for (int i = 0; i < proposedExcludeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 12, proposedExcludeImportRanges_.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 < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + if (siteToSiteDataTransfer_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vpcNetwork_); + } + { + int dataSize = 0; + for (int i = 0; i < includeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < includeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedIncludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedIncludeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getProposedIncludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedExcludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedExcludeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getProposedExcludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedIncludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedIncludeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getProposedIncludeImportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < proposedExcludeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(proposedExcludeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getProposedExcludeImportRangesList().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.networkconnectivity.v1.LinkedVpnTunnels)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = + (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; + + if (!getUrisList().equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; + if (!getProposedIncludeImportRangesList().equals(other.getProposedIncludeImportRangesList())) + return false; + if (!getExcludeImportRangesList().equals(other.getExcludeImportRangesList())) return false; + if (!getProposedExcludeImportRangesList().equals(other.getProposedExcludeImportRangesList())) + return false; + if (!getIncludeExportRangesList().equals(other.getIncludeExportRangesList())) return false; + if (!getProposedIncludeExportRangesList().equals(other.getProposedIncludeExportRangesList())) + return false; + if (!getExcludeExportRangesList().equals(other.getExcludeExportRangesList())) return false; + if (!getProposedExcludeExportRangesList().equals(other.getProposedExcludeExportRangesList())) + 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 (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); + if (getIncludeImportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeImportRangesList().hashCode(); + } + if (getProposedIncludeImportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedIncludeImportRangesList().hashCode(); + } + if (getExcludeImportRangesCount() > 0) { + hash = (37 * hash) + EXCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeImportRangesList().hashCode(); + } + if (getProposedExcludeImportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_EXCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedExcludeImportRangesList().hashCode(); + } + if (getIncludeExportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeExportRangesList().hashCode(); + } + if (getProposedIncludeExportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_INCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedIncludeExportRangesList().hashCode(); + } + if (getExcludeExportRangesCount() > 0) { + hash = (37 * hash) + EXCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeExportRangesList().hashCode(); + } + if (getProposedExcludeExportRangesCount() > 0) { + hash = (37 * hash) + PROPOSED_EXCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getProposedExcludeExportRangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels 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.networkconnectivity.v1.LinkedVpnTunnels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels 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.networkconnectivity.v1.LinkedVpnTunnels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels 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.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels 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.networkconnectivity.v1.LinkedVpnTunnels parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels 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.networkconnectivity.v1.LinkedVpnTunnels 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 collection of Cloud VPN tunnel resources. These resources should be
+   * redundant HA VPN tunnels that all advertise the same prefixes to Google
+   * Cloud. Alternatively, in a passive/active configuration, all tunnels
+   * should be capable of advertising the same prefixes.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + siteToSiteDataTransfer_ = false; + vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels build() { + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels buildPartial() { + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = + new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + uris_.makeImmutable(); + result.uris_ = uris_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vpcNetwork_ = vpcNetwork_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + includeImportRanges_.makeImmutable(); + result.includeImportRanges_ = includeImportRanges_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + proposedIncludeImportRanges_.makeImmutable(); + result.proposedIncludeImportRanges_ = proposedIncludeImportRanges_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + excludeImportRanges_.makeImmutable(); + result.excludeImportRanges_ = excludeImportRanges_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + proposedExcludeImportRanges_.makeImmutable(); + result.proposedExcludeImportRanges_ = proposedExcludeImportRanges_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + includeExportRanges_.makeImmutable(); + result.includeExportRanges_ = includeExportRanges_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + proposedIncludeExportRanges_.makeImmutable(); + result.proposedIncludeExportRanges_ = proposedIncludeExportRanges_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + excludeExportRanges_.makeImmutable(); + result.excludeExportRanges_ = excludeExportRanges_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + proposedExcludeExportRanges_.makeImmutable(); + result.proposedExcludeExportRanges_ = proposedExcludeExportRanges_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other) { + if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) + return this; + if (!other.uris_.isEmpty()) { if (uris_.isEmpty()) { uris_ = other.uris_; bitField0_ |= 0x00000001; } else { - ensureUrisIsMutable(); - uris_.addAll(other.uris_); + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + onChanged(); + } + if (other.getSiteToSiteDataTransfer() != false) { + setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + } + if (!other.getVpcNetwork().isEmpty()) { + vpcNetwork_ = other.vpcNetwork_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.includeImportRanges_.isEmpty()) { + if (includeImportRanges_.isEmpty()) { + includeImportRanges_ = other.includeImportRanges_; + bitField0_ |= 0x00000008; + } else { + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.addAll(other.includeImportRanges_); + } + onChanged(); + } + if (!other.proposedIncludeImportRanges_.isEmpty()) { + if (proposedIncludeImportRanges_.isEmpty()) { + proposedIncludeImportRanges_ = other.proposedIncludeImportRanges_; + bitField0_ |= 0x00000010; + } else { + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.addAll(other.proposedIncludeImportRanges_); + } + onChanged(); + } + if (!other.excludeImportRanges_.isEmpty()) { + if (excludeImportRanges_.isEmpty()) { + excludeImportRanges_ = other.excludeImportRanges_; + bitField0_ |= 0x00000020; + } else { + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.addAll(other.excludeImportRanges_); + } + onChanged(); + } + if (!other.proposedExcludeImportRanges_.isEmpty()) { + if (proposedExcludeImportRanges_.isEmpty()) { + proposedExcludeImportRanges_ = other.proposedExcludeImportRanges_; + bitField0_ |= 0x00000040; + } else { + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.addAll(other.proposedExcludeImportRanges_); + } + onChanged(); + } + if (!other.includeExportRanges_.isEmpty()) { + if (includeExportRanges_.isEmpty()) { + includeExportRanges_ = other.includeExportRanges_; + bitField0_ |= 0x00000080; + } else { + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.addAll(other.includeExportRanges_); + } + onChanged(); + } + if (!other.proposedIncludeExportRanges_.isEmpty()) { + if (proposedIncludeExportRanges_.isEmpty()) { + proposedIncludeExportRanges_ = other.proposedIncludeExportRanges_; + bitField0_ |= 0x00000100; + } else { + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.addAll(other.proposedIncludeExportRanges_); + } + onChanged(); + } + if (!other.excludeExportRanges_.isEmpty()) { + if (excludeExportRanges_.isEmpty()) { + excludeExportRanges_ = other.excludeExportRanges_; + bitField0_ |= 0x00000200; + } else { + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.addAll(other.excludeExportRanges_); + } + onChanged(); + } + if (!other.proposedExcludeExportRanges_.isEmpty()) { + if (proposedExcludeExportRanges_.isEmpty()) { + proposedExcludeExportRanges_ = other.proposedExcludeExportRanges_; + bitField0_ |= 0x00000400; + } else { + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.addAll(other.proposedExcludeExportRanges_); } onChanged(); } - if (other.getSiteToSiteDataTransfer() != false) { - setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + 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(); + ensureUrisIsMutable(); + uris_.add(s); + break; + } // case 10 + case 16: + { + siteToSiteDataTransfer_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + vpcNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(s); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(s); + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(s); + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(s); + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(s); + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(s); + break; + } // case 98 + 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 uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUrisIsMutable() { + if (!uris_.isModifiable()) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + uris_.makeImmutable(); + return uris_; + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The uris to set. + * @return This builder for chaining. + */ + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The uris to add. + * @return This builder for chaining. + */ + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param values The uris to add. + * @return This builder for chaining. + */ + public Builder addAllUris(java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearUris() { + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URIs of linked VPN tunnel resources.
+     * 
+ * + * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the uris to add. + * @return This builder for chaining. + */ + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean siteToSiteDataTransfer_; + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @param value The siteToSiteDataTransfer to set. + * @return This builder for chaining. + */ + public Builder setSiteToSiteDataTransfer(boolean value) { + + siteToSiteDataTransfer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A value that controls whether site-to-site data transfer is enabled for
+     * these resources. Data transfer is available only in [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return This builder for chaining. + */ + public Builder clearSiteToSiteDataTransfer() { + bitField0_ = (bitField0_ & ~0x00000002); + siteToSiteDataTransfer_ = false; + onChanged(); + return this; + } + + private java.lang.Object vpcNetwork_ = ""; + + /** + * + * + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeImportRangesIsMutable() { + if (!includeImportRanges_.isModifiable()) { + includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + includeImportRanges_.makeImmutable(); + return includeImportRanges_; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeImportRanges(java.lang.Iterable values) { + ensureIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeImportRanges() { + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes fully encompassed by include import ranges are
+     * included during import from hub.
+     * 
+ * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList proposedIncludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProposedIncludeImportRangesIsMutable() { + if (!proposedIncludeImportRanges_.isModifiable()) { + proposedIncludeImportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedIncludeImportRanges_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedIncludeImportRangesList() { + proposedIncludeImportRanges_.makeImmutable(); + return proposedIncludeImportRanges_; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + public int getProposedIncludeImportRangesCount() { + return proposedIncludeImportRanges_.size(); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + public java.lang.String getProposedIncludeImportRanges(int index) { + return proposedIncludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index) { + return proposedIncludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The proposedIncludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setProposedIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllProposedIncludeImportRanges(java.lang.Iterable values) { + ensureProposedIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedIncludeImportRanges_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProposedIncludeImportRanges() { + proposedIncludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed include import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the proposedIncludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProposedIncludeImportRangesIsMutable(); + proposedIncludeImportRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeImportRangesIsMutable() { + if (!excludeImportRanges_.isModifiable()) { + excludeImportRanges_ = new com.google.protobuf.LazyStringArrayList(excludeImportRanges_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeImportRangesList() { + excludeImportRanges_.makeImmutable(); + return excludeImportRanges_; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + public int getExcludeImportRangesCount() { + return excludeImportRanges_.size(); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + public java.lang.String getExcludeImportRanges(int index) { + return excludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeImportRangesBytes(int index) { + return excludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setExcludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeImportRanges(java.lang.Iterable values) { + ensureExcludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeImportRanges_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeImportRanges() { + excludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+     * excluded during import from hub.
+     * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeImportRangesIsMutable(); + excludeImportRanges_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList proposedExcludeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProposedExcludeImportRangesIsMutable() { + if (!proposedExcludeImportRanges_.isModifiable()) { + proposedExcludeImportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedExcludeImportRanges_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getProposedExcludeImportRangesList() { + proposedExcludeImportRanges_.makeImmutable(); + return proposedExcludeImportRanges_; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + public int getProposedExcludeImportRangesCount() { + return proposedExcludeImportRanges_.size(); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + public java.lang.String getProposedExcludeImportRanges(int index) { + return proposedExcludeImportRanges_.get(index); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index) { + return proposedExcludeImportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The proposedExcludeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setProposedExcludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedExcludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllProposedExcludeImportRanges(java.lang.Iterable values) { + ensureProposedExcludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedExcludeImportRanges_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProposedExcludeImportRanges() { + proposedExcludeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The proposed exclude import IP ranges waiting for hub
+     * administrator's approval.
+     * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the proposedExcludeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addProposedExcludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - if (!other.getVpcNetwork().isEmpty()) { - vpcNetwork_ = other.vpcNetwork_; - bitField0_ |= 0x00000004; - onChanged(); + checkByteStringIsUtf8(value); + ensureProposedExcludeImportRangesIsMutable(); + proposedExcludeImportRanges_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeExportRangesIsMutable() { + if (!includeExportRanges_.isModifiable()) { + includeExportRanges_ = new com.google.protobuf.LazyStringArrayList(includeExportRanges_); } - if (!other.includeImportRanges_.isEmpty()) { - if (includeImportRanges_.isEmpty()) { - includeImportRanges_ = other.includeImportRanges_; - bitField0_ |= 0x00000008; - } else { - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.addAll(other.includeImportRanges_); - } - onChanged(); + bitField0_ |= 0x00000080; + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + includeExportRanges_.makeImmutable(); + return includeExportRanges_; + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeExportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.set(index, value); + bitField0_ |= 0x00000080; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeExportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; } - @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(); - ensureUrisIsMutable(); - uris_.add(s); - break; - } // case 10 - case 16: - { - siteToSiteDataTransfer_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - vpcNetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.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 + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeExportRanges(java.lang.Iterable values) { + ensureIncludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeExportRanges_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeExportRanges() { + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dynamic routes fully encompassed by include export ranges are
+     * included during export to hub.
+     * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeExportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000080; + onChanged(); return this; } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList uris_ = + private com.google.protobuf.LazyStringArrayList proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUrisIsMutable() { - if (!uris_.isModifiable()) { - uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + private void ensureProposedIncludeExportRangesIsMutable() { + if (!proposedIncludeExportRanges_.isModifiable()) { + proposedIncludeExportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedIncludeExportRanges_); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000100; } /** * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the uris. + * @return A list containing the proposedIncludeExportRanges. */ - public com.google.protobuf.ProtocolStringList getUrisList() { - uris_.makeImmutable(); - return uris_; + public com.google.protobuf.ProtocolStringList getProposedIncludeExportRangesList() { + proposedIncludeExportRanges_.makeImmutable(); + return proposedIncludeExportRanges_; } /** * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The count of uris. + * @return The count of proposedIncludeExportRanges. */ - public int getUrisCount() { - return uris_.size(); + public int getProposedIncludeExportRangesCount() { + return proposedIncludeExportRanges_.size(); } /** * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. - * @return The uris at the given index. + * @return The proposedIncludeExportRanges at the given index. */ - public java.lang.String getUris(int index) { - return uris_.get(index); + public java.lang.String getProposedIncludeExportRanges(int index) { + return proposedIncludeExportRanges_.get(index); } /** * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the value to return. - * @return The bytes of the uris at the given index. + * @return The bytes of the proposedIncludeExportRanges at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { - return uris_.getByteString(index); + public com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index) { + return proposedIncludeExportRanges_.getByteString(index); } /** * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index to set the value at. - * @param value The uris to set. + * @param value The proposedIncludeExportRanges to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { + public Builder setProposedIncludeExportRanges(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureUrisIsMutable(); - uris_.set(index, value); - bitField0_ |= 0x00000001; + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.set(index, value); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -814,21 +3046,24 @@ public Builder setUris(int index, java.lang.String value) { * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The uris to add. + * @param value The proposedIncludeExportRanges to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { + public Builder addProposedIncludeExportRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureUrisIsMutable(); - uris_.add(value); - bitField0_ |= 0x00000001; + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(value); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -837,18 +3072,21 @@ public Builder addUris(java.lang.String value) { * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param values The uris to add. + * @param values The proposedIncludeExportRanges to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { - ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); - bitField0_ |= 0x00000001; + public Builder addAllProposedIncludeExportRanges(java.lang.Iterable values) { + ensureProposedIncludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedIncludeExportRanges_); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -857,16 +3095,19 @@ public Builder addAllUris(java.lang.Iterable values) { * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ - public Builder clearUris() { - uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearProposedIncludeExportRanges() { + proposedIncludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); ; onChanged(); return this; @@ -876,160 +3117,157 @@ public Builder clearUris() { * * *
-     * The URIs of linked VPN tunnel resources.
+     * Output only. The proposed include export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The bytes of the uris to add. + * @param value The bytes of the proposedIncludeExportRanges to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { + public Builder addProposedIncludeExportRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureUrisIsMutable(); - uris_.add(value); - bitField0_ |= 0x00000001; + ensureProposedIncludeExportRangesIsMutable(); + proposedIncludeExportRanges_.add(value); + bitField0_ |= 0x00000100; onChanged(); return this; } - private boolean siteToSiteDataTransfer_; + private com.google.protobuf.LazyStringArrayList excludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeExportRangesIsMutable() { + if (!excludeExportRanges_.isModifiable()) { + excludeExportRanges_ = new com.google.protobuf.LazyStringArrayList(excludeExportRanges_); + } + bitField0_ |= 0x00000200; + } /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The siteToSiteDataTransfer. + * @return A list containing the excludeExportRanges. */ - @java.lang.Override - public boolean getSiteToSiteDataTransfer() { - return siteToSiteDataTransfer_; + public com.google.protobuf.ProtocolStringList getExcludeExportRangesList() { + excludeExportRanges_.makeImmutable(); + return excludeExportRanges_; } /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The siteToSiteDataTransfer to set. - * @return This builder for chaining. + * @return The count of excludeExportRanges. */ - public Builder setSiteToSiteDataTransfer(boolean value) { - - siteToSiteDataTransfer_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public int getExcludeExportRangesCount() { + return excludeExportRanges_.size(); } /** * * *
-     * A value that controls whether site-to-site data transfer is enabled for
-     * these resources. Data transfer is available only in [supported
-     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * bool site_to_site_data_transfer = 2; + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return This builder for chaining. + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. */ - public Builder clearSiteToSiteDataTransfer() { - bitField0_ = (bitField0_ & ~0x00000002); - siteToSiteDataTransfer_ = false; - onChanged(); - return this; + public java.lang.String getExcludeExportRanges(int index) { + return excludeExportRanges_.get(index); } - private java.lang.Object vpcNetwork_ = ""; - /** * * *
-     * Output only. The VPC network where these VPN tunnels are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The vpcNetwork. + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. */ - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vpcNetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { + return excludeExportRanges_.getByteString(index); } /** * * *
-     * Output only. The VPC network where these VPN tunnels are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The bytes for vpcNetwork. + * @param index The index to set the value at. + * @param value The excludeExportRanges to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder setExcludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Output only. The VPC network where these VPN tunnels are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The vpcNetwork to set. + * @param value The excludeExportRanges to add. * @return This builder for chaining. */ - public Builder setVpcNetwork(java.lang.String value) { + public Builder addExcludeExportRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - vpcNetwork_ = value; - bitField0_ |= 0x00000004; + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -1038,18 +3276,20 @@ public Builder setVpcNetwork(java.lang.String value) { * * *
-     * Output only. The VPC network where these VPN tunnels are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * + * @param values The excludeExportRanges to add. * @return This builder for chaining. */ - public Builder clearVpcNetwork() { - vpcNetwork_ = getDefaultInstance().getVpcNetwork(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder addAllExcludeExportRanges(java.lang.Iterable values) { + ensureExcludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeExportRanges_); + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -1058,135 +3298,158 @@ public Builder clearVpcNetwork() { * * *
-     * Output only. The VPC network where these VPN tunnels are located.
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + public Builder clearExcludeExportRanges() { + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+     * are excluded during export to hub.
+     * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeExportRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - vpcNetwork_ = value; - bitField0_ |= 0x00000004; + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + private com.google.protobuf.LazyStringArrayList proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureIncludeImportRangesIsMutable() { - if (!includeImportRanges_.isModifiable()) { - includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + private void ensureProposedExcludeExportRangesIsMutable() { + if (!proposedExcludeExportRanges_.isModifiable()) { + proposedExcludeExportRanges_ = + new com.google.protobuf.LazyStringArrayList(proposedExcludeExportRanges_); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000400; } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return A list containing the includeImportRanges. + * @return A list containing the proposedExcludeExportRanges. */ - public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { - includeImportRanges_.makeImmutable(); - return includeImportRanges_; + public com.google.protobuf.ProtocolStringList getProposedExcludeExportRangesList() { + proposedExcludeExportRanges_.makeImmutable(); + return proposedExcludeExportRanges_; } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The count of includeImportRanges. + * @return The count of proposedExcludeExportRanges. */ - public int getIncludeImportRangesCount() { - return includeImportRanges_.size(); + public int getProposedExcludeExportRangesCount() { + return proposedExcludeExportRanges_.size(); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. - * @return The includeImportRanges at the given index. + * @return The proposedExcludeExportRanges at the given index. */ - public java.lang.String getIncludeImportRanges(int index) { - return includeImportRanges_.get(index); + public java.lang.String getProposedExcludeExportRanges(int index) { + return proposedExcludeExportRanges_.get(index); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. - * @return The bytes of the includeImportRanges at the given index. + * @return The bytes of the proposedExcludeExportRanges at the given index. */ - public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { - return includeImportRanges_.getByteString(index); + public com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index) { + return proposedExcludeExportRanges_.getByteString(index); } /** * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index to set the value at. - * @param value The includeImportRanges to set. + * @param value The proposedExcludeExportRanges to set. * @return This builder for chaining. */ - public Builder setIncludeImportRanges(int index, java.lang.String value) { + public Builder setProposedExcludeExportRanges(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.set(index, value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.set(index, value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1195,24 +3458,24 @@ public Builder setIncludeImportRanges(int index, java.lang.String value) { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The includeImportRanges to add. + * @param value The proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addIncludeImportRanges(java.lang.String value) { + public Builder addProposedExcludeExportRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.add(value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1221,21 +3484,21 @@ public Builder addIncludeImportRanges(java.lang.String value) { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param values The includeImportRanges to add. + * @param values The proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addAllIncludeImportRanges(java.lang.Iterable values) { - ensureIncludeImportRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); - bitField0_ |= 0x00000008; + public Builder addAllProposedExcludeExportRanges(java.lang.Iterable values) { + ensureProposedExcludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, proposedExcludeExportRanges_); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1244,19 +3507,19 @@ public Builder addAllIncludeImportRanges(java.lang.Iterable va * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ - public Builder clearIncludeImportRanges() { - includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearProposedExcludeExportRanges() { + proposedExcludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); ; onChanged(); return this; @@ -1266,25 +3529,25 @@ public Builder clearIncludeImportRanges() { * * *
-     * Optional. IP ranges allowed to be included during import from hub (does not
-     * control transit connectivity). The only allowed value for now is
-     * "ALL_IPV4_RANGES".
+     * Output only. The proposed exclude export IP ranges waiting for hub
+     * administrator's approval.
      * 
* - * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The bytes of the includeImportRanges to add. + * @param value The bytes of the proposedExcludeExportRanges to add. * @return This builder for chaining. */ - public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + public Builder addProposedExcludeExportRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureIncludeImportRangesIsMutable(); - includeImportRanges_.add(value); - bitField0_ |= 0x00000008; + ensureProposedExcludeExportRangesIsMutable(); + proposedExcludeExportRanges_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java index eb88767066ea..64905bad9a33 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java @@ -129,9 +129,8 @@ public interface LinkedVpnTunnelsOrBuilder * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -145,9 +144,8 @@ public interface LinkedVpnTunnelsOrBuilder * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -161,9 +159,8 @@ public interface LinkedVpnTunnelsOrBuilder * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -178,9 +175,8 @@ public interface LinkedVpnTunnelsOrBuilder * * *
-   * Optional. IP ranges allowed to be included during import from hub (does not
-   * control transit connectivity). The only allowed value for now is
-   * "ALL_IPV4_RANGES".
+   * Optional. Hub routes fully encompassed by include import ranges are
+   * included during import from hub.
    * 
* * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -190,4 +186,454 @@ public interface LinkedVpnTunnelsOrBuilder * @return The bytes of the includeImportRanges at the given index. */ com.google.protobuf.ByteString getIncludeImportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeImportRanges. + */ + java.util.List getProposedIncludeImportRangesList(); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeImportRanges. + */ + int getProposedIncludeImportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeImportRanges at the given index. + */ + java.lang.String getProposedIncludeImportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed include import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_import_ranges = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedIncludeImportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeImportRanges. + */ + java.util.List getExcludeImportRangesList(); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeImportRanges. + */ + int getExcludeImportRangesCount(); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeImportRanges at the given index. + */ + java.lang.String getExcludeImportRanges(int index); + + /** + * + * + *
+   * Optional. Hub routes overlapped/encompassed by exclude import ranges are
+   * excluded during import from hub.
+   * 
+ * + * repeated string exclude_import_ranges = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getExcludeImportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeImportRanges. + */ + java.util.List getProposedExcludeImportRangesList(); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeImportRanges. + */ + int getProposedExcludeImportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeImportRanges at the given index. + */ + java.lang.String getProposedExcludeImportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed exclude import IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_import_ranges = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeImportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedExcludeImportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + java.util.List getIncludeExportRangesList(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + int getIncludeExportRangesCount(); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + java.lang.String getIncludeExportRanges(int index); + + /** + * + * + *
+   * Optional. Dynamic routes fully encompassed by include export ranges are
+   * included during export to hub.
+   * 
+ * + * repeated string include_export_ranges = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + com.google.protobuf.ByteString getIncludeExportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedIncludeExportRanges. + */ + java.util.List getProposedIncludeExportRangesList(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedIncludeExportRanges. + */ + int getProposedIncludeExportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedIncludeExportRanges at the given index. + */ + java.lang.String getProposedIncludeExportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed include export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_include_export_ranges = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedIncludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedIncludeExportRangesBytes(int index); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + java.util.List getExcludeExportRangesList(); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + int getExcludeExportRangesCount(); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + java.lang.String getExcludeExportRanges(int index); + + /** + * + * + *
+   * Optional. Dynamic routes overlapped/encompassed by exclude export ranges
+   * are excluded during export to hub.
+   * 
+ * + * repeated string exclude_export_ranges = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getExcludeExportRangesBytes(int index); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the proposedExcludeExportRanges. + */ + java.util.List getProposedExcludeExportRangesList(); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of proposedExcludeExportRanges. + */ + int getProposedExcludeExportRangesCount(); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The proposedExcludeExportRanges at the given index. + */ + java.lang.String getProposedExcludeExportRanges(int index); + + /** + * + * + *
+   * Output only. The proposed exclude export IP ranges waiting for hub
+   * administrator's approval.
+   * 
+ * + * + * repeated string proposed_exclude_export_ranges = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the proposedExcludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getProposedExcludeExportRangesBytes(int index); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesRequest.java new file mode 100644 index 000000000000..4124c51ffae7 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesRequest.java @@ -0,0 +1,1343 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * The request for
+ * [HubService.ListGatewayAdvertisedRoutes][google.cloud.networkconnectivity.v1.HubService.ListGatewayAdvertisedRoutes].
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest} + */ +@com.google.protobuf.Generated +public final class ListGatewayAdvertisedRoutesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) + ListGatewayAdvertisedRoutesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListGatewayAdvertisedRoutesRequest"); + } + + // Use ListGatewayAdvertisedRoutesRequest.newBuilder() to construct. + private ListGatewayAdvertisedRoutesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListGatewayAdvertisedRoutesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest.class, + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource's name.
+   * 
+ * + * + * 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's name.
+   * 
+ * + * + * 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 results per page that should be returned.
+   * 
+ * + * 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
+   * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+   * page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListGatewayAdvertisedRoutes` 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
+   * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+   * page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListGatewayAdvertisedRoutes` 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * An expression that filters the list of results.
+   * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+   * An expression that filters the list of results.
+   * 
+ * + * string filter = 4; + * + * @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_ = ""; + + /** + * + * + *
+   * Sort the results by a certain order.
+   * 
+ * + * string order_by = 5; + * + * @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; + } + } + + /** + * + * + *
+   * Sort the results by a certain order.
+   * 
+ * + * string order_by = 5; + * + * @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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest other = + (com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request for
+   * [HubService.ListGatewayAdvertisedRoutes][google.cloud.networkconnectivity.v1.HubService.ListGatewayAdvertisedRoutes].
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest.class, + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest.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.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest build() { + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest result = + new com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + .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's name.
+     * 
+ * + * + * 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's name.
+     * 
+ * + * + * 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's name.
+     * 
+ * + * + * 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's name.
+     * 
+ * + * + * 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's name.
+     * 
+ * + * + * 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 results per page that should be returned.
+     * 
+ * + * 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 results per page that should be returned.
+     * 
+ * + * 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 results per page that should be returned.
+     * 
+ * + * 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
+     * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListGatewayAdvertisedRoutes` 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
+     * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListGatewayAdvertisedRoutes` 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
+     * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListGatewayAdvertisedRoutes` 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
+     * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListGatewayAdvertisedRoutes` 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
+     * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListGatewayAdvertisedRoutes` 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * An expression that filters the list of results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+     * An expression that filters the list of results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+     * An expression that filters the list of results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + + /** + * + * + *
+     * An expression that filters the list of results.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An expression that filters the list of results.
+     * 
+ * + * string filter = 4; + * + * @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_ = ""; + + /** + * + * + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * + * @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; + } + } + + /** + * + * + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * + * @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; + } + } + + /** + * + * + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * + * @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; + } + + /** + * + * + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * + * @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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) + private static final com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewayAdvertisedRoutesRequest 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesRequestOrBuilder.java new file mode 100644 index 000000000000..8eb6fe8bd6ee --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesRequestOrBuilder.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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface ListGatewayAdvertisedRoutesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource's name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource's name.
+   * 
+ * + * + * 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 results per page that should be returned.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+   * page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListGatewayAdvertisedRoutes` 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
+   * `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent
+   * page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListGatewayAdvertisedRoutes` 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(); + + /** + * + * + *
+   * An expression that filters the list of results.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * An expression that filters the list of results.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Sort the results by a certain order.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sort the results by a certain order.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesResponse.java new file mode 100644 index 000000000000..c664a1ef136c --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesResponse.java @@ -0,0 +1,1522 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * Response for
+ * [HubService.ListGatewayAdvertisedRoutes][google.cloud.networkconnectivity.v1.HubService.ListGatewayAdvertisedRoutes]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse} + */ +@com.google.protobuf.Generated +public final class ListGatewayAdvertisedRoutesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse) + ListGatewayAdvertisedRoutesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListGatewayAdvertisedRoutesResponse"); + } + + // Use ListGatewayAdvertisedRoutesResponse.newBuilder() to construct. + private ListGatewayAdvertisedRoutesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListGatewayAdvertisedRoutesResponse() { + gatewayAdvertisedRoutes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse.class, + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse.Builder + .class); + } + + public static final int GATEWAY_ADVERTISED_ROUTES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + gatewayAdvertisedRoutes_; + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + @java.lang.Override + public java.util.List + getGatewayAdvertisedRoutesList() { + return gatewayAdvertisedRoutes_; + } + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder> + getGatewayAdvertisedRoutesOrBuilderList() { + return gatewayAdvertisedRoutes_; + } + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + @java.lang.Override + public int getGatewayAdvertisedRoutesCount() { + return gatewayAdvertisedRoutes_.size(); + } + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute getGatewayAdvertisedRoutes( + int index) { + return gatewayAdvertisedRoutes_.get(index); + } + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRoutesOrBuilder(int index) { + return gatewayAdvertisedRoutes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * The token for the next page of the response. To see more results,
+   * use this value as the page_token for your next request. If this value
+   * is empty, there are no more results.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * The token for the next page of the response. To see more results,
+   * use this value as the page_token for your next request. If this value
+   * is empty, there are no more results.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Hubs that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Hubs that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Hubs that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Hubs that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < gatewayAdvertisedRoutes_.size(); i++) { + output.writeMessage(1, gatewayAdvertisedRoutes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(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 < gatewayAdvertisedRoutes_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, gatewayAdvertisedRoutes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse other = + (com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse) obj; + + if (!getGatewayAdvertisedRoutesList().equals(other.getGatewayAdvertisedRoutesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) 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 (getGatewayAdvertisedRoutesCount() > 0) { + hash = (37 * hash) + GATEWAY_ADVERTISED_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getGatewayAdvertisedRoutesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse 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 for
+   * [HubService.ListGatewayAdvertisedRoutes][google.cloud.networkconnectivity.v1.HubService.ListGatewayAdvertisedRoutes]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse) + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse.class, + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gatewayAdvertisedRoutesBuilder_ == null) { + gatewayAdvertisedRoutes_ = java.util.Collections.emptyList(); + } else { + gatewayAdvertisedRoutes_ = null; + gatewayAdvertisedRoutesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListGatewayAdvertisedRoutesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse build() { + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + buildPartial() { + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse result = + new com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse result) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + gatewayAdvertisedRoutes_ = + java.util.Collections.unmodifiableList(gatewayAdvertisedRoutes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.gatewayAdvertisedRoutes_ = gatewayAdvertisedRoutes_; + } else { + result.gatewayAdvertisedRoutes_ = gatewayAdvertisedRoutesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse other) { + if (other + == com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + .getDefaultInstance()) return this; + if (gatewayAdvertisedRoutesBuilder_ == null) { + if (!other.gatewayAdvertisedRoutes_.isEmpty()) { + if (gatewayAdvertisedRoutes_.isEmpty()) { + gatewayAdvertisedRoutes_ = other.gatewayAdvertisedRoutes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.addAll(other.gatewayAdvertisedRoutes_); + } + onChanged(); + } + } else { + if (!other.gatewayAdvertisedRoutes_.isEmpty()) { + if (gatewayAdvertisedRoutesBuilder_.isEmpty()) { + gatewayAdvertisedRoutesBuilder_.dispose(); + gatewayAdvertisedRoutesBuilder_ = null; + gatewayAdvertisedRoutes_ = other.gatewayAdvertisedRoutes_; + bitField0_ = (bitField0_ & ~0x00000001); + gatewayAdvertisedRoutesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGatewayAdvertisedRoutesFieldBuilder() + : null; + } else { + gatewayAdvertisedRoutesBuilder_.addAllMessages(other.gatewayAdvertisedRoutes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.networkconnectivity.v1.GatewayAdvertisedRoute m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.parser(), + extensionRegistry); + if (gatewayAdvertisedRoutesBuilder_ == null) { + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.add(m); + } else { + gatewayAdvertisedRoutesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List + gatewayAdvertisedRoutes_ = java.util.Collections.emptyList(); + + private void ensureGatewayAdvertisedRoutesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gatewayAdvertisedRoutes_ = + new java.util.ArrayList( + gatewayAdvertisedRoutes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder> + gatewayAdvertisedRoutesBuilder_; + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public java.util.List + getGatewayAdvertisedRoutesList() { + if (gatewayAdvertisedRoutesBuilder_ == null) { + return java.util.Collections.unmodifiableList(gatewayAdvertisedRoutes_); + } else { + return gatewayAdvertisedRoutesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public int getGatewayAdvertisedRoutesCount() { + if (gatewayAdvertisedRoutesBuilder_ == null) { + return gatewayAdvertisedRoutes_.size(); + } else { + return gatewayAdvertisedRoutesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + getGatewayAdvertisedRoutes(int index) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + return gatewayAdvertisedRoutes_.get(index); + } else { + return gatewayAdvertisedRoutesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder setGatewayAdvertisedRoutes( + int index, com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute value) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.set(index, value); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder setGatewayAdvertisedRoutes( + int index, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder builderForValue) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.set(index, builderForValue.build()); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder addGatewayAdvertisedRoutes( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute value) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.add(value); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder addGatewayAdvertisedRoutes( + int index, com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute value) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.add(index, value); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder addGatewayAdvertisedRoutes( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder builderForValue) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.add(builderForValue.build()); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder addGatewayAdvertisedRoutes( + int index, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder builderForValue) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.add(index, builderForValue.build()); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder addAllGatewayAdvertisedRoutes( + java.lang.Iterable + values) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + ensureGatewayAdvertisedRoutesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gatewayAdvertisedRoutes_); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder clearGatewayAdvertisedRoutes() { + if (gatewayAdvertisedRoutesBuilder_ == null) { + gatewayAdvertisedRoutes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public Builder removeGatewayAdvertisedRoutes(int index) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + ensureGatewayAdvertisedRoutesIsMutable(); + gatewayAdvertisedRoutes_.remove(index); + onChanged(); + } else { + gatewayAdvertisedRoutesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder + getGatewayAdvertisedRoutesBuilder(int index) { + return internalGetGatewayAdvertisedRoutesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRoutesOrBuilder(int index) { + if (gatewayAdvertisedRoutesBuilder_ == null) { + return gatewayAdvertisedRoutes_.get(index); + } else { + return gatewayAdvertisedRoutesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder> + getGatewayAdvertisedRoutesOrBuilderList() { + if (gatewayAdvertisedRoutesBuilder_ != null) { + return gatewayAdvertisedRoutesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gatewayAdvertisedRoutes_); + } + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder + addGatewayAdvertisedRoutesBuilder() { + return internalGetGatewayAdvertisedRoutesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance()); + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder + addGatewayAdvertisedRoutesBuilder(int index) { + return internalGetGatewayAdvertisedRoutesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance()); + } + + /** + * + * + *
+     * The requested gateway advertised routes.
+     * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + public java.util.List + getGatewayAdvertisedRoutesBuilderList() { + return internalGetGatewayAdvertisedRoutesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder> + internalGetGatewayAdvertisedRoutesFieldBuilder() { + if (gatewayAdvertisedRoutesBuilder_ == null) { + gatewayAdvertisedRoutesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder>( + gatewayAdvertisedRoutes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + gatewayAdvertisedRoutes_ = null; + } + return gatewayAdvertisedRoutesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * The token for the next page of the response. To see more results,
+     * use this value as the page_token for your next request. If this value
+     * is empty, there are no more results.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * The token for the next page of the response. To see more results,
+     * use this value as the page_token for your next request. If this value
+     * is empty, there are no more results.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * The token for the next page of the response. To see more results,
+     * use this value as the page_token for your next request. If this value
+     * is empty, there are no more results.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * The token for the next page of the response. To see more results,
+     * use this value as the page_token for your next request. If this value
+     * is empty, there are no more results.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The token for the next page of the response. To see more results,
+     * use this value as the page_token for your next request. If this value
+     * is empty, there are no more results.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Hubs that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse) + private static final com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse(); + } + + public static com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewayAdvertisedRoutesResponse 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.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesResponseOrBuilder.java new file mode 100644 index 000000000000..3d5c684c6c7b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListGatewayAdvertisedRoutesResponseOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface ListGatewayAdvertisedRoutesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + java.util.List + getGatewayAdvertisedRoutesList(); + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute getGatewayAdvertisedRoutes( + int index); + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + int getGatewayAdvertisedRoutesCount(); + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + java.util.List + getGatewayAdvertisedRoutesOrBuilderList(); + + /** + * + * + *
+   * The requested gateway advertised routes.
+   * 
+ * + * + * repeated .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_routes = 1; + * + */ + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRoutesOrBuilder(int index); + + /** + * + * + *
+   * The token for the next page of the response. To see more results,
+   * use this value as the page_token for your next request. If this value
+   * is empty, there are no more results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * The token for the next page of the response. To see more results,
+   * use this value as the page_token for your next request. If this value
+   * is empty, there are no more results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Hubs that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Hubs that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Hubs that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Hubs that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java index bf1269b31d15..1678bd053503 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java @@ -61,6 +61,26 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { * SITE_TO_SITE_SPOKES = 2; */ SITE_TO_SITE_SPOKES(2), + /** + * + * + *
+   * Gateway spokes are supported in this location.
+   * 
+ * + * GATEWAY_SPOKES = 3; + */ + GATEWAY_SPOKES(3), + /** + * + * + *
+   * Supports transports in this location.
+   * 
+ * + * TRANSPORTS = 4; + */ + TRANSPORTS(4), UNRECOGNIZED(-1), ; @@ -107,6 +127,28 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SITE_TO_SITE_SPOKES_VALUE = 2; + /** + * + * + *
+   * Gateway spokes are supported in this location.
+   * 
+ * + * GATEWAY_SPOKES = 3; + */ + public static final int GATEWAY_SPOKES_VALUE = 3; + + /** + * + * + *
+   * Supports transports in this location.
+   * 
+ * + * TRANSPORTS = 4; + */ + public static final int TRANSPORTS_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,6 +179,10 @@ public static LocationFeature forNumber(int value) { return SITE_TO_CLOUD_SPOKES; case 2: return SITE_TO_SITE_SPOKES; + case 3: + return GATEWAY_SPOKES; + case 4: + return TRANSPORTS; default: return null; } @@ -166,7 +212,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(5); } private static final LocationFeature[] VALUES = values(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopSpoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopSpoke.java new file mode 100644 index 000000000000..247c34aa69d9 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopSpoke.java @@ -0,0 +1,717 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * A route next hop that leads to a spoke resource.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.NextHopSpoke} + */ +@com.google.protobuf.Generated +public final class NextHopSpoke extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.NextHopSpoke) + NextHopSpokeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "NextHopSpoke"); + } + + // Use NextHopSpoke.newBuilder() to construct. + private NextHopSpoke(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NextHopSpoke() { + uri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopSpoke_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopSpoke_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.NextHopSpoke.class, + com.google.cloud.networkconnectivity.v1.NextHopSpoke.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * The URI of the spoke resource.
+   * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * The URI of the spoke resource.
+   * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; + private boolean siteToSiteDataTransfer_ = false; + + /** + * + * + *
+   * Indicates whether site-to-site data transfer is allowed for this
+   * spoke resource. Data transfer is available only in
+   * [supported
+   * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+   * Whether this route is accessible to other hybrid spokes with site-to-site
+   * data transfer enabled. If this is false, the route is only accessible to
+   * VPC spokes of the connected Hub.
+   * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + + 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(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (siteToSiteDataTransfer_ != false) { + output.writeBool(2, siteToSiteDataTransfer_); + } + 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(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (siteToSiteDataTransfer_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + } + 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.networkconnectivity.v1.NextHopSpoke)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.NextHopSpoke other = + (com.google.cloud.networkconnectivity.v1.NextHopSpoke) obj; + + if (!getUri().equals(other.getUri())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke 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.networkconnectivity.v1.NextHopSpoke parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke 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.networkconnectivity.v1.NextHopSpoke parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke 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.networkconnectivity.v1.NextHopSpoke parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke 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.networkconnectivity.v1.NextHopSpoke parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke 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.networkconnectivity.v1.NextHopSpoke 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 route next hop that leads to a spoke resource.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.NextHopSpoke} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.NextHopSpoke) + com.google.cloud.networkconnectivity.v1.NextHopSpokeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopSpoke_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopSpoke_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.NextHopSpoke.class, + com.google.cloud.networkconnectivity.v1.NextHopSpoke.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.NextHopSpoke.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + siteToSiteDataTransfer_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopSpoke_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopSpoke getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.NextHopSpoke.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopSpoke build() { + com.google.cloud.networkconnectivity.v1.NextHopSpoke result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopSpoke buildPartial() { + com.google.cloud.networkconnectivity.v1.NextHopSpoke result = + new com.google.cloud.networkconnectivity.v1.NextHopSpoke(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.NextHopSpoke result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.NextHopSpoke) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.NextHopSpoke) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.NextHopSpoke other) { + if (other == com.google.cloud.networkconnectivity.v1.NextHopSpoke.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSiteToSiteDataTransfer() != false) { + setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + } + 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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + siteToSiteDataTransfer_ = 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 java.lang.Object uri_ = ""; + + /** + * + * + *
+     * The URI of the spoke resource.
+     * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URI of the spoke resource.
+     * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URI of the spoke resource.
+     * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI of the spoke resource.
+     * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI of the spoke resource.
+     * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean siteToSiteDataTransfer_; + + /** + * + * + *
+     * Indicates whether site-to-site data transfer is allowed for this
+     * spoke resource. Data transfer is available only in
+     * [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Whether this route is accessible to other hybrid spokes with site-to-site
+     * data transfer enabled. If this is false, the route is only accessible to
+     * VPC spokes of the connected Hub.
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + + /** + * + * + *
+     * Indicates whether site-to-site data transfer is allowed for this
+     * spoke resource. Data transfer is available only in
+     * [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Whether this route is accessible to other hybrid spokes with site-to-site
+     * data transfer enabled. If this is false, the route is only accessible to
+     * VPC spokes of the connected Hub.
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @param value The siteToSiteDataTransfer to set. + * @return This builder for chaining. + */ + public Builder setSiteToSiteDataTransfer(boolean value) { + + siteToSiteDataTransfer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates whether site-to-site data transfer is allowed for this
+     * spoke resource. Data transfer is available only in
+     * [supported
+     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+     * Whether this route is accessible to other hybrid spokes with site-to-site
+     * data transfer enabled. If this is false, the route is only accessible to
+     * VPC spokes of the connected Hub.
+     * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return This builder for chaining. + */ + public Builder clearSiteToSiteDataTransfer() { + bitField0_ = (bitField0_ & ~0x00000002); + siteToSiteDataTransfer_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.NextHopSpoke) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.NextHopSpoke) + private static final com.google.cloud.networkconnectivity.v1.NextHopSpoke DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.NextHopSpoke(); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopSpoke getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NextHopSpoke 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.networkconnectivity.v1.NextHopSpoke getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopSpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopSpokeOrBuilder.java new file mode 100644 index 000000000000..64741cba9d8c --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopSpokeOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface NextHopSpokeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.NextHopSpoke) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The URI of the spoke resource.
+   * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * The URI of the spoke resource.
+   * 
+ * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Indicates whether site-to-site data transfer is allowed for this
+   * spoke resource. Data transfer is available only in
+   * [supported
+   * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
+   * Whether this route is accessible to other hybrid spokes with site-to-site
+   * data transfer enabled. If this is false, the route is only accessible to
+   * VPC spokes of the connected Hub.
+   * 
+ * + * bool site_to_site_data_transfer = 2; + * + * @return The siteToSiteDataTransfer. + */ + boolean getSiteToSiteDataTransfer(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyMode.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyMode.java index c24cc9613d1a..dbf5a6031748 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyMode.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyMode.java @@ -145,7 +145,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(4); + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(3); } private static final PolicyMode[] VALUES = values(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PresetTopology.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PresetTopology.java index 7a5cc5d4097f..c21b9627184a 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PresetTopology.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PresetTopology.java @@ -65,6 +65,17 @@ public enum PresetTopology implements com.google.protobuf.ProtocolMessageEnum { * STAR = 3; */ STAR(3), + /** + * + * + *
+   * Hybrid inspection has 4 groups ('non-prod', 'prod', 'services', and
+   * 'untrusted') that are automatically created along with hub creation.
+   * 
+ * + * HYBRID_INSPECTION = 4; + */ + HYBRID_INSPECTION(4), UNRECOGNIZED(-1), ; @@ -115,6 +126,18 @@ public enum PresetTopology implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STAR_VALUE = 3; + /** + * + * + *
+   * Hybrid inspection has 4 groups ('non-prod', 'prod', 'services', and
+   * 'untrusted') that are automatically created along with hub creation.
+   * 
+ * + * HYBRID_INSPECTION = 4; + */ + public static final int HYBRID_INSPECTION_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,6 +168,8 @@ public static PresetTopology forNumber(int value) { return MESH; case 3: return STAR; + case 4: + return HYBRID_INSPECTION; default: return null; } @@ -174,7 +199,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(5); + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(4); } private static final PresetTopology[] VALUES = values(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Route.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Route.java index 967bbd350924..7c8fd1cbe7f9 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Route.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Route.java @@ -1002,6 +1002,65 @@ public boolean hasNextHopInterconnectAttachment() { : nextHopInterconnectAttachment_; } + public static final int NEXT_HOP_SPOKE_FIELD_NUMBER = 18; + private com.google.cloud.networkconnectivity.v1.NextHopSpoke nextHopSpoke_; + + /** + * + * + *
+   * Immutable. The next-hop spoke for packets on this route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopSpoke field is set. + */ + @java.lang.Override + public boolean hasNextHopSpoke() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Immutable. The next-hop spoke for packets on this route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopSpoke. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopSpoke getNextHopSpoke() { + return nextHopSpoke_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopSpoke.getDefaultInstance() + : nextHopSpoke_; + } + + /** + * + * + *
+   * Immutable. The next-hop spoke for packets on this route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopSpokeOrBuilder getNextHopSpokeOrBuilder() { + return nextHopSpoke_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopSpoke.getDefaultInstance() + : nextHopSpoke_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1064,6 +1123,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(16, getNextHopInterconnectAttachment()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(18, getNextHopSpoke()); + } getUnknownFields().writeTo(output); } @@ -1133,6 +1195,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 16, getNextHopInterconnectAttachment()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getNextHopSpoke()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1187,6 +1252,10 @@ public boolean equals(final java.lang.Object obj) { if (!getNextHopInterconnectAttachment().equals(other.getNextHopInterconnectAttachment())) return false; } + if (hasNextHopSpoke() != other.hasNextHopSpoke()) return false; + if (hasNextHopSpoke()) { + if (!getNextHopSpoke().equals(other.getNextHopSpoke())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1244,6 +1313,10 @@ public int hashCode() { hash = (37 * hash) + NEXT_HOP_INTERCONNECT_ATTACHMENT_FIELD_NUMBER; hash = (53 * hash) + getNextHopInterconnectAttachment().hashCode(); } + if (hasNextHopSpoke()) { + hash = (37 * hash) + NEXT_HOP_SPOKE_FIELD_NUMBER; + hash = (53 * hash) + getNextHopSpoke().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1414,6 +1487,7 @@ private void maybeForceBuilderInitialization() { internalGetNextHopVpnTunnelFieldBuilder(); internalGetNextHopRouterApplianceInstanceFieldBuilder(); internalGetNextHopInterconnectAttachmentFieldBuilder(); + internalGetNextHopSpokeFieldBuilder(); } } @@ -1461,6 +1535,11 @@ public Builder clear() { nextHopInterconnectAttachmentBuilder_.dispose(); nextHopInterconnectAttachmentBuilder_ = null; } + nextHopSpoke_ = null; + if (nextHopSpokeBuilder_ != null) { + nextHopSpokeBuilder_.dispose(); + nextHopSpokeBuilder_ = null; + } return this; } @@ -1563,6 +1642,11 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Route result) : nextHopInterconnectAttachmentBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.nextHopSpoke_ = + nextHopSpokeBuilder_ == null ? nextHopSpoke_ : nextHopSpokeBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -1637,6 +1721,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Route other) { if (other.hasNextHopInterconnectAttachment()) { mergeNextHopInterconnectAttachment(other.getNextHopInterconnectAttachment()); } + if (other.hasNextHopSpoke()) { + mergeNextHopSpoke(other.getNextHopSpoke()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1773,6 +1860,13 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 130 + case 146: + { + input.readMessage( + internalGetNextHopSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4290,6 +4384,221 @@ public Builder clearNextHopInterconnectAttachment() { return nextHopInterconnectAttachmentBuilder_; } + private com.google.cloud.networkconnectivity.v1.NextHopSpoke nextHopSpoke_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.NextHopSpoke, + com.google.cloud.networkconnectivity.v1.NextHopSpoke.Builder, + com.google.cloud.networkconnectivity.v1.NextHopSpokeOrBuilder> + nextHopSpokeBuilder_; + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopSpoke field is set. + */ + public boolean hasNextHopSpoke() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopSpoke. + */ + public com.google.cloud.networkconnectivity.v1.NextHopSpoke getNextHopSpoke() { + if (nextHopSpokeBuilder_ == null) { + return nextHopSpoke_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopSpoke.getDefaultInstance() + : nextHopSpoke_; + } else { + return nextHopSpokeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setNextHopSpoke(com.google.cloud.networkconnectivity.v1.NextHopSpoke value) { + if (nextHopSpokeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextHopSpoke_ = value; + } else { + nextHopSpokeBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setNextHopSpoke( + com.google.cloud.networkconnectivity.v1.NextHopSpoke.Builder builderForValue) { + if (nextHopSpokeBuilder_ == null) { + nextHopSpoke_ = builderForValue.build(); + } else { + nextHopSpokeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeNextHopSpoke(com.google.cloud.networkconnectivity.v1.NextHopSpoke value) { + if (nextHopSpokeBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && nextHopSpoke_ != null + && nextHopSpoke_ + != com.google.cloud.networkconnectivity.v1.NextHopSpoke.getDefaultInstance()) { + getNextHopSpokeBuilder().mergeFrom(value); + } else { + nextHopSpoke_ = value; + } + } else { + nextHopSpokeBuilder_.mergeFrom(value); + } + if (nextHopSpoke_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearNextHopSpoke() { + bitField0_ = (bitField0_ & ~0x00010000); + nextHopSpoke_ = null; + if (nextHopSpokeBuilder_ != null) { + nextHopSpokeBuilder_.dispose(); + nextHopSpokeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.networkconnectivity.v1.NextHopSpoke.Builder getNextHopSpokeBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetNextHopSpokeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.networkconnectivity.v1.NextHopSpokeOrBuilder + getNextHopSpokeOrBuilder() { + if (nextHopSpokeBuilder_ != null) { + return nextHopSpokeBuilder_.getMessageOrBuilder(); + } else { + return nextHopSpoke_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopSpoke.getDefaultInstance() + : nextHopSpoke_; + } + } + + /** + * + * + *
+     * Immutable. The next-hop spoke for packets on this route.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.NextHopSpoke, + com.google.cloud.networkconnectivity.v1.NextHopSpoke.Builder, + com.google.cloud.networkconnectivity.v1.NextHopSpokeOrBuilder> + internalGetNextHopSpokeFieldBuilder() { + if (nextHopSpokeBuilder_ == null) { + nextHopSpokeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.NextHopSpoke, + com.google.cloud.networkconnectivity.v1.NextHopSpoke.Builder, + com.google.cloud.networkconnectivity.v1.NextHopSpokeOrBuilder>( + getNextHopSpoke(), getParentForChildren(), isClean()); + nextHopSpoke_ = null; + } + return nextHopSpokeBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Route) } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteOrBuilder.java index 975d0c372800..f84a57e5f7fe 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteOrBuilder.java @@ -611,4 +611,47 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachmentOrBuilder getNextHopInterconnectAttachmentOrBuilder(); + + /** + * + * + *
+   * Immutable. The next-hop spoke for packets on this route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopSpoke field is set. + */ + boolean hasNextHopSpoke(); + + /** + * + * + *
+   * Immutable. The next-hop spoke for packets on this route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopSpoke. + */ + com.google.cloud.networkconnectivity.v1.NextHopSpoke getNextHopSpoke(); + + /** + * + * + *
+   * Immutable. The next-hop spoke for packets on this route.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.NextHopSpoke next_hop_spoke = 18 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.networkconnectivity.v1.NextHopSpokeOrBuilder getNextHopSpokeOrBuilder(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteType.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteType.java index e4a258d53eaf..fd2768b996d9 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteType.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteType.java @@ -75,6 +75,17 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum { * DYNAMIC_ROUTE = 3; */ DYNAMIC_ROUTE(3), + /** + * + * + *
+   * The route leads to a destination within the Private Service Connect
+   * Global Google API range of the VPC network.
+   * 
+ * + * PSC_GLOBAL_GAPI = 4; + */ + PSC_GLOBAL_GAPI(4), UNRECOGNIZED(-1), ; @@ -136,6 +147,18 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DYNAMIC_ROUTE_VALUE = 3; + /** + * + * + *
+   * The route leads to a destination within the Private Service Connect
+   * Global Google API range of the VPC network.
+   * 
+ * + * PSC_GLOBAL_GAPI = 4; + */ + public static final int PSC_GLOBAL_GAPI_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -168,6 +191,8 @@ public static RouteType forNumber(int value) { return VPC_SECONDARY_SUBNET; case 3: return DYNAMIC_ROUTE; + case 4: + return PSC_GLOBAL_GAPI; default: return null; } @@ -197,7 +222,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(1); + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(0); } private static final RouteType[] VALUES = values(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index c06caadd577e..df4da6df9dab 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java @@ -188,7 +188,7 @@ public interface StateReasonOrBuilder * * *
-   * The reason a spoke is inactive.
+   * The reason for the current state of the spoke.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke.StateReason} @@ -239,7 +239,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The Code enum represents the various reasons a state can be `INACTIVE`.
+     * The Code enum represents the various reasons for the state of the spoke.
      * 
* * Protobuf enum {@code google.cloud.networkconnectivity.v1.Spoke.StateReason.Code} @@ -857,7 +857,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The reason a spoke is inactive.
+     * The reason for the current state of the spoke.
      * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke.StateReason} @@ -2092,6 +2092,68 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpcNetwork getLinkedVpcNetw : linkedVpcNetwork_; } + public static final int GATEWAY_FIELD_NUMBER = 24; + private com.google.cloud.networkconnectivity.v1.Gateway gateway_; + + /** + * + * + *
+   * Optional. This is a gateway that can apply specialized processing to
+   * traffic going through it.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gateway field is set. + */ + @java.lang.Override + public boolean hasGateway() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. This is a gateway that can apply specialized processing to
+   * traffic going through it.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gateway. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Gateway getGateway() { + return gateway_ == null + ? com.google.cloud.networkconnectivity.v1.Gateway.getDefaultInstance() + : gateway_; + } + + /** + * + * + *
+   * Optional. This is a gateway that can apply specialized processing to
+   * traffic going through it.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayOrBuilder getGatewayOrBuilder() { + return gateway_ == null + ? com.google.cloud.networkconnectivity.v1.Gateway.getDefaultInstance() + : gateway_; + } + public static final int LINKED_PRODUCER_VPC_NETWORK_FIELD_NUMBER = 26; private com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linkedProducerVpcNetwork_; @@ -2111,7 +2173,7 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpcNetwork getLinkedVpcNetw */ @java.lang.Override public boolean hasLinkedProducerVpcNetwork() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2449,11 +2511,11 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-   * Optional. The list of fields waiting for hub administration's approval.
+   * Output only. The list of fields waiting for hub administrator's approval.
    * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the fieldPathsPendingUpdate. @@ -2466,11 +2528,11 @@ public com.google.protobuf.ProtocolStringList getFieldPathsPendingUpdateList() { * * *
-   * Optional. The list of fields waiting for hub administration's approval.
+   * Output only. The list of fields waiting for hub administrator's approval.
    * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of fieldPathsPendingUpdate. @@ -2483,11 +2545,11 @@ public int getFieldPathsPendingUpdateCount() { * * *
-   * Optional. The list of fields waiting for hub administration's approval.
+   * Output only. The list of fields waiting for hub administrator's approval.
    * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -2501,11 +2563,11 @@ public java.lang.String getFieldPathsPendingUpdate(int index) { * * *
-   * Optional. The list of fields waiting for hub administration's approval.
+   * Output only. The list of fields waiting for hub administrator's approval.
    * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. @@ -2575,6 +2637,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString(output, 23, group_); } if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(24, getGateway()); + } + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(26, getLinkedProducerVpcNetwork()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { @@ -2651,6 +2716,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessage.computeStringSize(23, group_); } if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getGateway()); + } + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 26, getLinkedProducerVpcNetwork()); @@ -2715,6 +2783,10 @@ public boolean equals(final java.lang.Object obj) { if (hasLinkedVpcNetwork()) { if (!getLinkedVpcNetwork().equals(other.getLinkedVpcNetwork())) return false; } + if (hasGateway() != other.hasGateway()) return false; + if (hasGateway()) { + if (!getGateway().equals(other.getGateway())) return false; + } if (hasLinkedProducerVpcNetwork() != other.hasLinkedProducerVpcNetwork()) return false; if (hasLinkedProducerVpcNetwork()) { if (!getLinkedProducerVpcNetwork().equals(other.getLinkedProducerVpcNetwork())) return false; @@ -2773,6 +2845,10 @@ public int hashCode() { hash = (37 * hash) + LINKED_VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getLinkedVpcNetwork().hashCode(); } + if (hasGateway()) { + hash = (37 * hash) + GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getGateway().hashCode(); + } if (hasLinkedProducerVpcNetwork()) { hash = (37 * hash) + LINKED_PRODUCER_VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getLinkedProducerVpcNetwork().hashCode(); @@ -2971,6 +3047,7 @@ private void maybeForceBuilderInitialization() { internalGetLinkedInterconnectAttachmentsFieldBuilder(); internalGetLinkedRouterApplianceInstancesFieldBuilder(); internalGetLinkedVpcNetworkFieldBuilder(); + internalGetGatewayFieldBuilder(); internalGetLinkedProducerVpcNetworkFieldBuilder(); internalGetReasonsFieldBuilder(); } @@ -3015,6 +3092,11 @@ public Builder clear() { linkedVpcNetworkBuilder_.dispose(); linkedVpcNetworkBuilder_ = null; } + gateway_ = null; + if (gatewayBuilder_ != null) { + gatewayBuilder_.dispose(); + gatewayBuilder_ = null; + } linkedProducerVpcNetwork_ = null; if (linkedProducerVpcNetworkBuilder_ != null) { linkedProducerVpcNetworkBuilder_.dispose(); @@ -3028,7 +3110,7 @@ public Builder clear() { reasons_ = null; reasonsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); spokeType_ = 0; etag_ = ""; fieldPathsPendingUpdate_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -3069,9 +3151,9 @@ public com.google.cloud.networkconnectivity.v1.Spoke buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.Spoke result) { if (reasonsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.reasons_ = reasons_; } else { @@ -3131,25 +3213,29 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result) to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000800) != 0)) { + result.gateway_ = gatewayBuilder_ == null ? gateway_ : gatewayBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00001000) != 0)) { result.linkedProducerVpcNetwork_ = linkedProducerVpcNetworkBuilder_ == null ? linkedProducerVpcNetwork_ : linkedProducerVpcNetworkBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.uniqueId_ = uniqueId_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.spokeType_ = spokeType_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { fieldPathsPendingUpdate_.makeImmutable(); result.fieldPathsPendingUpdate_ = fieldPathsPendingUpdate_; } @@ -3208,12 +3294,15 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) { if (other.hasLinkedVpcNetwork()) { mergeLinkedVpcNetwork(other.getLinkedVpcNetwork()); } + if (other.hasGateway()) { + mergeGateway(other.getGateway()); + } if (other.hasLinkedProducerVpcNetwork()) { mergeLinkedProducerVpcNetwork(other.getLinkedProducerVpcNetwork()); } if (!other.getUniqueId().isEmpty()) { uniqueId_ = other.uniqueId_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.state_ != 0) { @@ -3223,7 +3312,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) { if (!other.reasons_.isEmpty()) { if (reasons_.isEmpty()) { reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureReasonsIsMutable(); reasons_.addAll(other.reasons_); @@ -3236,7 +3325,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) { reasonsBuilder_.dispose(); reasonsBuilder_ = null; reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); reasonsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetReasonsFieldBuilder() @@ -3251,13 +3340,13 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (!other.fieldPathsPendingUpdate_.isEmpty()) { if (fieldPathsPendingUpdate_.isEmpty()) { fieldPathsPendingUpdate_ = other.fieldPathsPendingUpdate_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } else { ensureFieldPathsPendingUpdateIsMutable(); fieldPathsPendingUpdate_.addAll(other.fieldPathsPendingUpdate_); @@ -3337,13 +3426,13 @@ public Builder mergeFrom( case 90: { uniqueId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 90 case 120: { state_ = input.readEnum(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 120 case 138: @@ -3393,7 +3482,7 @@ public Builder mergeFrom( case 176: { spokeType_ = input.readEnum(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 176 case 186: @@ -3402,18 +3491,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 186 + case 194: + { + input.readMessage(internalGetGatewayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 194 case 210: { input.readMessage( internalGetLinkedProducerVpcNetworkFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 210 case 218: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 218 case 226: @@ -5410,6 +5505,228 @@ public Builder clearLinkedVpcNetwork() { return linkedVpcNetworkBuilder_; } + private com.google.cloud.networkconnectivity.v1.Gateway gateway_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.Gateway, + com.google.cloud.networkconnectivity.v1.Gateway.Builder, + com.google.cloud.networkconnectivity.v1.GatewayOrBuilder> + gatewayBuilder_; + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gateway field is set. + */ + public boolean hasGateway() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gateway. + */ + public com.google.cloud.networkconnectivity.v1.Gateway getGateway() { + if (gatewayBuilder_ == null) { + return gateway_ == null + ? com.google.cloud.networkconnectivity.v1.Gateway.getDefaultInstance() + : gateway_; + } else { + return gatewayBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGateway(com.google.cloud.networkconnectivity.v1.Gateway value) { + if (gatewayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gateway_ = value; + } else { + gatewayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGateway( + com.google.cloud.networkconnectivity.v1.Gateway.Builder builderForValue) { + if (gatewayBuilder_ == null) { + gateway_ = builderForValue.build(); + } else { + gatewayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGateway(com.google.cloud.networkconnectivity.v1.Gateway value) { + if (gatewayBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && gateway_ != null + && gateway_ != com.google.cloud.networkconnectivity.v1.Gateway.getDefaultInstance()) { + getGatewayBuilder().mergeFrom(value); + } else { + gateway_ = value; + } + } else { + gatewayBuilder_.mergeFrom(value); + } + if (gateway_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGateway() { + bitField0_ = (bitField0_ & ~0x00000800); + gateway_ = null; + if (gatewayBuilder_ != null) { + gatewayBuilder_.dispose(); + gatewayBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.Gateway.Builder getGatewayBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetGatewayFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayOrBuilder getGatewayOrBuilder() { + if (gatewayBuilder_ != null) { + return gatewayBuilder_.getMessageOrBuilder(); + } else { + return gateway_ == null + ? com.google.cloud.networkconnectivity.v1.Gateway.getDefaultInstance() + : gateway_; + } + } + + /** + * + * + *
+     * Optional. This is a gateway that can apply specialized processing to
+     * traffic going through it.
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.Gateway, + com.google.cloud.networkconnectivity.v1.Gateway.Builder, + com.google.cloud.networkconnectivity.v1.GatewayOrBuilder> + internalGetGatewayFieldBuilder() { + if (gatewayBuilder_ == null) { + gatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.Gateway, + com.google.cloud.networkconnectivity.v1.Gateway.Builder, + com.google.cloud.networkconnectivity.v1.GatewayOrBuilder>( + getGateway(), getParentForChildren(), isClean()); + gateway_ = null; + } + return gatewayBuilder_; + } + private com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linkedProducerVpcNetwork_; private com.google.protobuf.SingleFieldBuilder< @@ -5432,7 +5749,7 @@ public Builder clearLinkedVpcNetwork() { * @return Whether the linkedProducerVpcNetwork field is set. */ public boolean hasLinkedProducerVpcNetwork() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -5480,7 +5797,7 @@ public Builder setLinkedProducerVpcNetwork( } else { linkedProducerVpcNetworkBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5503,7 +5820,7 @@ public Builder setLinkedProducerVpcNetwork( } else { linkedProducerVpcNetworkBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5522,7 +5839,7 @@ public Builder setLinkedProducerVpcNetwork( public Builder mergeLinkedProducerVpcNetwork( com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork value) { if (linkedProducerVpcNetworkBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && linkedProducerVpcNetwork_ != null && linkedProducerVpcNetwork_ != com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork @@ -5535,7 +5852,7 @@ public Builder mergeLinkedProducerVpcNetwork( linkedProducerVpcNetworkBuilder_.mergeFrom(value); } if (linkedProducerVpcNetwork_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -5553,7 +5870,7 @@ public Builder mergeLinkedProducerVpcNetwork( *
*/ public Builder clearLinkedProducerVpcNetwork() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); linkedProducerVpcNetwork_ = null; if (linkedProducerVpcNetworkBuilder_ != null) { linkedProducerVpcNetworkBuilder_.dispose(); @@ -5576,7 +5893,7 @@ public Builder clearLinkedProducerVpcNetwork() { */ public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.Builder getLinkedProducerVpcNetworkBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetLinkedProducerVpcNetworkFieldBuilder().getBuilder(); } @@ -5702,7 +6019,7 @@ public Builder setUniqueId(java.lang.String value) { throw new NullPointerException(); } uniqueId_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5722,7 +6039,7 @@ public Builder setUniqueId(java.lang.String value) { */ public Builder clearUniqueId() { uniqueId_ = getDefaultInstance().getUniqueId(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -5747,7 +6064,7 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uniqueId_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5788,7 +6105,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5831,7 +6148,7 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; state_ = value.getNumber(); onChanged(); return this; @@ -5851,7 +6168,7 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); state_ = 0; onChanged(); return this; @@ -5861,11 +6178,11 @@ public Builder clearState() { java.util.Collections.emptyList(); private void ensureReasonsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { reasons_ = new java.util.ArrayList( reasons_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -6119,7 +6436,7 @@ public Builder addAllReasons( public Builder clearReasons() { if (reasonsBuilder_ == null) { reasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { reasonsBuilder_.clear(); @@ -6269,7 +6586,7 @@ public com.google.cloud.networkconnectivity.v1.Spoke.StateReason.Builder addReas com.google.cloud.networkconnectivity.v1.Spoke.StateReason, com.google.cloud.networkconnectivity.v1.Spoke.StateReason.Builder, com.google.cloud.networkconnectivity.v1.Spoke.StateReasonOrBuilder>( - reasons_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + reasons_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); reasons_ = null; } return reasonsBuilder_; @@ -6311,7 +6628,7 @@ public int getSpokeTypeValue() { */ public Builder setSpokeTypeValue(int value) { spokeType_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6356,7 +6673,7 @@ public Builder setSpokeType(com.google.cloud.networkconnectivity.v1.SpokeType va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; spokeType_ = value.getNumber(); onChanged(); return this; @@ -6376,7 +6693,7 @@ public Builder setSpokeType(com.google.cloud.networkconnectivity.v1.SpokeType va * @return This builder for chaining. */ public Builder clearSpokeType() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); spokeType_ = 0; onChanged(); return this; @@ -6453,7 +6770,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6473,7 +6790,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -6498,7 +6815,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6511,18 +6828,18 @@ private void ensureFieldPathsPendingUpdateIsMutable() { fieldPathsPendingUpdate_ = new com.google.protobuf.LazyStringArrayList(fieldPathsPendingUpdate_); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } /** * * *
-     * Optional. The list of fields waiting for hub administration's approval.
+     * Output only. The list of fields waiting for hub administrator's approval.
      * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the fieldPathsPendingUpdate. @@ -6536,11 +6853,11 @@ public com.google.protobuf.ProtocolStringList getFieldPathsPendingUpdateList() { * * *
-     * Optional. The list of fields waiting for hub administration's approval.
+     * Output only. The list of fields waiting for hub administrator's approval.
      * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of fieldPathsPendingUpdate. @@ -6553,11 +6870,11 @@ public int getFieldPathsPendingUpdateCount() { * * *
-     * Optional. The list of fields waiting for hub administration's approval.
+     * Output only. The list of fields waiting for hub administrator's approval.
      * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -6571,11 +6888,11 @@ public java.lang.String getFieldPathsPendingUpdate(int index) { * * *
-     * Optional. The list of fields waiting for hub administration's approval.
+     * Output only. The list of fields waiting for hub administrator's approval.
      * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. @@ -6589,11 +6906,11 @@ public com.google.protobuf.ByteString getFieldPathsPendingUpdateBytes(int index) * * *
-     * Optional. The list of fields waiting for hub administration's approval.
+     * Output only. The list of fields waiting for hub administrator's approval.
      * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index to set the value at. @@ -6606,7 +6923,7 @@ public Builder setFieldPathsPendingUpdate(int index, java.lang.String value) { } ensureFieldPathsPendingUpdateIsMutable(); fieldPathsPendingUpdate_.set(index, value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6615,11 +6932,11 @@ public Builder setFieldPathsPendingUpdate(int index, java.lang.String value) { * * *
-     * Optional. The list of fields waiting for hub administration's approval.
+     * Output only. The list of fields waiting for hub administrator's approval.
      * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The fieldPathsPendingUpdate to add. @@ -6631,7 +6948,7 @@ public Builder addFieldPathsPendingUpdate(java.lang.String value) { } ensureFieldPathsPendingUpdateIsMutable(); fieldPathsPendingUpdate_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6640,11 +6957,11 @@ public Builder addFieldPathsPendingUpdate(java.lang.String value) { * * *
-     * Optional. The list of fields waiting for hub administration's approval.
+     * Output only. The list of fields waiting for hub administrator's approval.
      * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param values The fieldPathsPendingUpdate to add. @@ -6653,7 +6970,7 @@ public Builder addFieldPathsPendingUpdate(java.lang.String value) { public Builder addAllFieldPathsPendingUpdate(java.lang.Iterable values) { ensureFieldPathsPendingUpdateIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldPathsPendingUpdate_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6662,18 +6979,18 @@ public Builder addAllFieldPathsPendingUpdate(java.lang.Iterable - * Optional. The list of fields waiting for hub administration's approval. + * Output only. The list of fields waiting for hub administrator's approval. * * * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearFieldPathsPendingUpdate() { fieldPathsPendingUpdate_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); ; onChanged(); return this; @@ -6683,11 +7000,11 @@ public Builder clearFieldPathsPendingUpdate() { * * *
-     * Optional. The list of fields waiting for hub administration's approval.
+     * Output only. The list of fields waiting for hub administrator's approval.
      * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The bytes of the fieldPathsPendingUpdate to add. @@ -6700,7 +7017,7 @@ public Builder addFieldPathsPendingUpdateBytes(com.google.protobuf.ByteString va checkByteStringIsUtf8(value); ensureFieldPathsPendingUpdateIsMutable(); fieldPathsPendingUpdate_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index 1277c6a49c42..6efd6833da0d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java @@ -471,6 +471,52 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.networkconnectivity.v1.LinkedVpcNetworkOrBuilder getLinkedVpcNetworkOrBuilder(); + /** + * + * + *
+   * Optional. This is a gateway that can apply specialized processing to
+   * traffic going through it.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gateway field is set. + */ + boolean hasGateway(); + + /** + * + * + *
+   * Optional. This is a gateway that can apply specialized processing to
+   * traffic going through it.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gateway. + */ + com.google.cloud.networkconnectivity.v1.Gateway getGateway(); + + /** + * + * + *
+   * Optional. This is a gateway that can apply specialized processing to
+   * traffic going through it.
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.Gateway gateway = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkconnectivity.v1.GatewayOrBuilder getGatewayOrBuilder(); + /** * * @@ -705,11 +751,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. The list of fields waiting for hub administration's approval.
+   * Output only. The list of fields waiting for hub administrator's approval.
    * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return A list containing the fieldPathsPendingUpdate. @@ -720,11 +766,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. The list of fields waiting for hub administration's approval.
+   * Output only. The list of fields waiting for hub administrator's approval.
    * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The count of fieldPathsPendingUpdate. @@ -735,11 +781,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. The list of fields waiting for hub administration's approval.
+   * Output only. The list of fields waiting for hub administrator's approval.
    * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the element to return. @@ -751,11 +797,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. The list of fields waiting for hub administration's approval.
+   * Output only. The list of fields waiting for hub administrator's approval.
    * 
* * - * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string field_paths_pending_update = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param index The index of the value to return. diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeType.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeType.java index 964cd8a330f4..a86c2a8c71fe 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeType.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeType.java @@ -82,6 +82,16 @@ public enum SpokeType implements com.google.protobuf.ProtocolMessageEnum { * VPC_NETWORK = 4; */ VPC_NETWORK(4), + /** + * + * + *
+   * Spokes that are NCC gateways.
+   * 
+ * + * GATEWAY = 5; + */ + GATEWAY(5), /** * * @@ -160,6 +170,17 @@ public enum SpokeType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VPC_NETWORK_VALUE = 4; + /** + * + * + *
+   * Spokes that are NCC gateways.
+   * 
+ * + * GATEWAY = 5; + */ + public static final int GATEWAY_VALUE = 5; + /** * * @@ -205,6 +226,8 @@ public static SpokeType forNumber(int value) { return ROUTER_APPLIANCE; case 4: return VPC_NETWORK; + case 5: + return GATEWAY; case 7: return PRODUCER_VPC_NETWORK; default: @@ -236,7 +259,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(2); } private static final SpokeType[] VALUES = values(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java index d625f6bfccb8..d900cf0eda3f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java @@ -334,7 +334,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(2); + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGatewayAdvertisedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGatewayAdvertisedRouteRequest.java new file mode 100644 index 000000000000..83ad827bb262 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGatewayAdvertisedRouteRequest.java @@ -0,0 +1,1444 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
+ * The request for
+ * [HubService.UpdateGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.UpdateGatewayAdvertisedRoute].
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest} + */ +@com.google.protobuf.Generated +public final class UpdateGatewayAdvertisedRouteRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) + UpdateGatewayAdvertisedRouteRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateGatewayAdvertisedRouteRequest"); + } + + // Use UpdateGatewayAdvertisedRouteRequest.newBuilder() to construct. + private UpdateGatewayAdvertisedRouteRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateGatewayAdvertisedRouteRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGatewayAdvertisedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest.Builder + .class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. In the case of an update to an existing group, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. In the case of an update to an existing group, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. In the case of an update to an existing group, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int GATEWAY_ADVERTISED_ROUTE_FIELD_NUMBER = 2; + private com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gatewayAdvertisedRoute_; + + /** + * + * + *
+   * Required. The gateway advertised route to update.
+   *
+   * The gateway advertised route's `name` field is used to identify the gateway
+   * advertised route to update. Format:
+   * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewayAdvertisedRoute field is set. + */ + @java.lang.Override + public boolean hasGatewayAdvertisedRoute() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The gateway advertised route to update.
+   *
+   * The gateway advertised route's `name` field is used to identify the gateway
+   * advertised route to update. Format:
+   * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewayAdvertisedRoute. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + getGatewayAdvertisedRoute() { + return gatewayAdvertisedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance() + : gatewayAdvertisedRoute_; + } + + /** + * + * + *
+   * Required. The gateway advertised route to update.
+   *
+   * The gateway advertised route's `name` field is used to identify the gateway
+   * advertised route to update. Format:
+   * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRouteOrBuilder() { + return gatewayAdvertisedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance() + : gatewayAdvertisedRoute_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getGatewayAdvertisedRoute()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGatewayAdvertisedRoute()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasGatewayAdvertisedRoute() != other.hasGatewayAdvertisedRoute()) return false; + if (hasGatewayAdvertisedRoute()) { + if (!getGatewayAdvertisedRoute().equals(other.getGatewayAdvertisedRoute())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasGatewayAdvertisedRoute()) { + hash = (37 * hash) + GATEWAY_ADVERTISED_ROUTE_FIELD_NUMBER; + hash = (53 * hash) + getGatewayAdvertisedRoute().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + 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.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request for
+   * [HubService.UpdateGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.UpdateGatewayAdvertisedRoute].
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGatewayAdvertisedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetGatewayAdvertisedRouteFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + gatewayAdvertisedRoute_ = null; + if (gatewayAdvertisedRouteBuilder_ != null) { + gatewayAdvertisedRouteBuilder_.dispose(); + gatewayAdvertisedRouteBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGatewayAdvertisedRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest build() { + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest result = + new com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gatewayAdvertisedRoute_ = + gatewayAdvertisedRouteBuilder_ == null + ? gatewayAdvertisedRoute_ + : gatewayAdvertisedRouteBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasGatewayAdvertisedRoute()) { + mergeGatewayAdvertisedRoute(other.getGatewayAdvertisedRoute()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetGatewayAdvertisedRouteFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private 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. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. In the case of an update to an existing group, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_; + } + + private com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gatewayAdvertisedRoute_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder> + gatewayAdvertisedRouteBuilder_; + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewayAdvertisedRoute field is set. + */ + public boolean hasGatewayAdvertisedRoute() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewayAdvertisedRoute. + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + getGatewayAdvertisedRoute() { + if (gatewayAdvertisedRouteBuilder_ == null) { + return gatewayAdvertisedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance() + : gatewayAdvertisedRoute_; + } else { + return gatewayAdvertisedRouteBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute value) { + if (gatewayAdvertisedRouteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gatewayAdvertisedRoute_ = value; + } else { + gatewayAdvertisedRouteBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder builderForValue) { + if (gatewayAdvertisedRouteBuilder_ == null) { + gatewayAdvertisedRoute_ = builderForValue.build(); + } else { + gatewayAdvertisedRouteBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGatewayAdvertisedRoute( + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute value) { + if (gatewayAdvertisedRouteBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && gatewayAdvertisedRoute_ != null + && gatewayAdvertisedRoute_ + != com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute + .getDefaultInstance()) { + getGatewayAdvertisedRouteBuilder().mergeFrom(value); + } else { + gatewayAdvertisedRoute_ = value; + } + } else { + gatewayAdvertisedRouteBuilder_.mergeFrom(value); + } + if (gatewayAdvertisedRoute_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGatewayAdvertisedRoute() { + bitField0_ = (bitField0_ & ~0x00000002); + gatewayAdvertisedRoute_ = null; + if (gatewayAdvertisedRouteBuilder_ != null) { + gatewayAdvertisedRouteBuilder_.dispose(); + gatewayAdvertisedRouteBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder + getGatewayAdvertisedRouteBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetGatewayAdvertisedRouteFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRouteOrBuilder() { + if (gatewayAdvertisedRouteBuilder_ != null) { + return gatewayAdvertisedRouteBuilder_.getMessageOrBuilder(); + } else { + return gatewayAdvertisedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.getDefaultInstance() + : gatewayAdvertisedRoute_; + } + } + + /** + * + * + *
+     * Required. The gateway advertised route to update.
+     *
+     * The gateway advertised route's `name` field is used to identify the gateway
+     * advertised route to update. Format:
+     * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+     * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder> + internalGetGatewayAdvertisedRouteFieldBuilder() { + if (gatewayAdvertisedRouteBuilder_ == null) { + gatewayAdvertisedRouteBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute.Builder, + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder>( + getGatewayAdvertisedRoute(), getParentForChildren(), isClean()); + gatewayAdvertisedRoute_ = null; + } + return gatewayAdvertisedRouteBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID so
+     * that if you must retry your request, the server knows to ignore the request
+     * if it has already been completed. The server guarantees that a request
+     * doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check to see whether the original operation
+     * was received. If it was, the server ignores the second request. This
+     * behavior prevents clients from mistakenly creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID, with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) + private static final com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGatewayAdvertisedRouteRequest 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.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGatewayAdvertisedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGatewayAdvertisedRouteRequestOrBuilder.java new file mode 100644 index 000000000000..bb7dc47d762f --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGatewayAdvertisedRouteRequestOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.networkconnectivity.v1; + +@com.google.protobuf.Generated +public interface UpdateGatewayAdvertisedRouteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. In the case of an update to an existing group, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. In the case of an update to an existing group, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. In the case of an update to an existing group, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The gateway advertised route to update.
+   *
+   * The gateway advertised route's `name` field is used to identify the gateway
+   * advertised route to update. Format:
+   * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewayAdvertisedRoute field is set. + */ + boolean hasGatewayAdvertisedRoute(); + + /** + * + * + *
+   * Required. The gateway advertised route to update.
+   *
+   * The gateway advertised route's `name` field is used to identify the gateway
+   * advertised route to update. Format:
+   * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewayAdvertisedRoute. + */ + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute getGatewayAdvertisedRoute(); + + /** + * + * + *
+   * Required. The gateway advertised route to update.
+   *
+   * The gateway advertised route's `name` field is used to identify the gateway
+   * advertised route to update. Format:
+   * `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}`
+   * 
+ * + * + * .google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute gateway_advertised_route = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteOrBuilder + getGatewayAdvertisedRouteOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID so
+   * that if you must retry your request, the server knows to ignore the request
+   * if it has already been completed. The server guarantees that a request
+   * doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check to see whether the original operation
+   * was received. If it was, the server ignores the second request. This
+   * behavior prevents clients from mistakenly creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID, with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto index c12320483ebf..0cc309dae644 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.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. @@ -42,6 +42,10 @@ option (google.api.resource_definition) = { type: "compute.googleapis.com/Instance" pattern: "projects/{project}/zones/{zone}/instances/{instance}" }; +option (google.api.resource_definition) = { + type: "networksecurity.googleapis.com/SACAttachment" + pattern: "projects/{project}/locations/{location}/sacAttachments/{sac_attachment}" +}; // Network Connectivity Center is a hub-and-spoke abstraction for network // connectivity management in Google Cloud. It reduces operational complexity @@ -301,18 +305,67 @@ service HubService { metadata_type: "OperationMetadata" }; } -} -// Supported features for a location -enum LocationFeature { - // No publicly supported feature in this location - LOCATION_FEATURE_UNSPECIFIED = 0; + // Create a GatewayAdvertisedRoute + rpc CreateGatewayAdvertisedRoute(CreateGatewayAdvertisedRouteRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spokes/*}/gatewayAdvertisedRoutes" + body: "gateway_advertised_route" + }; + option (google.api.method_signature) = + "parent,gateway_advertised_route,gateway_advertised_route_id"; + option (google.longrunning.operation_info) = { + response_type: "GatewayAdvertisedRoute" + metadata_type: "OperationMetadata" + }; + } - // Site-to-cloud spokes are supported in this location - SITE_TO_CLOUD_SPOKES = 1; + // Get a GatewayAdvertisedRoute + rpc GetGatewayAdvertisedRoute(GetGatewayAdvertisedRouteRequest) + returns (GatewayAdvertisedRoute) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spokes/*/gatewayAdvertisedRoutes/*}" + }; + option (google.api.method_signature) = "name"; + } - // Site-to-site spokes are supported in this location - SITE_TO_SITE_SPOKES = 2; + // List GatewayAdvertisedRoutes + rpc ListGatewayAdvertisedRoutes(ListGatewayAdvertisedRoutesRequest) + returns (ListGatewayAdvertisedRoutesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spokes/*}/gatewayAdvertisedRoutes" + }; + option (google.api.method_signature) = "parent"; + } + + // Update a GatewayAdvertisedRoute + rpc UpdateGatewayAdvertisedRoute(UpdateGatewayAdvertisedRouteRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{gateway_advertised_route.name=projects/*/locations/*/spokes/*/gatewayAdvertisedRoutes/*}" + body: "gateway_advertised_route" + }; + option (google.api.method_signature) = + "gateway_advertised_route,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "GatewayAdvertisedRoute" + metadata_type: "OperationMetadata" + }; + } + + // Delete a GatewayAdvertisedRoute + rpc DeleteGatewayAdvertisedRoute(DeleteGatewayAdvertisedRouteRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spokes/*/gatewayAdvertisedRoutes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } } // The route's type @@ -332,6 +385,10 @@ enum RouteType { // derived from Border Gateway Protocol (BGP) advertisements received from an // NCC hybrid spoke. DYNAMIC_ROUTE = 3; + + // The route leads to a destination within the Private Service Connect + // Global Google API range of the VPC network. + PSC_GLOBAL_GAPI = 4; } // The State enum represents the lifecycle stage of a Network Connectivity @@ -389,6 +446,9 @@ enum SpokeType { // Spokes associated with VPC networks. VPC_NETWORK = 4; + // Spokes that are NCC gateways. + GATEWAY = 5; + // Spokes that are backed by a producer VPC network. PRODUCER_VPC_NETWORK = 7; } @@ -417,6 +477,28 @@ enum PresetTopology { // automatically created along with hub creation. Spokes have to join one of // the groups during creation. STAR = 3; + + // Hybrid inspection has 4 groups ('non-prod', 'prod', 'services', and + // 'untrusted') that are automatically created along with hub creation. + HYBRID_INSPECTION = 4; +} + +// Supported features for a location +enum LocationFeature { + // No publicly supported feature in this location + LOCATION_FEATURE_UNSPECIFIED = 0; + + // Site-to-cloud spokes are supported in this location + SITE_TO_CLOUD_SPOKES = 1; + + // Site-to-site spokes are supported in this location + SITE_TO_SITE_SPOKES = 2; + + // Gateway spokes are supported in this location. + GATEWAY_SPOKES = 3; + + // Supports transports in this location. + TRANSPORTS = 4; } // A Network Connectivity Center hub is a global management resource to which @@ -431,6 +513,23 @@ message Hub { pattern: "projects/{project}/locations/global/hubs/{hub}" }; + // Configuration for more granular control of Private Service Connect + // connection propagation. + // This allows enabling or disabling connection propagation for specific types + // of Private Service Connect endpoints. + message ExportPscConfig { + // Optional. Controls whether Private Service Connect endpoints for regional + // ILBs and regional Google APIs should be propagated. Default value is true + // if export_psc is true. Otherwise, the default value is false. + optional bool published_services_and_regional_google_apis = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls whether Private Service Connect endpoints for global + // Google APIs should be propagated. The default value is false. + optional bool global_google_apis = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + // Immutable. The name of the hub. Hub names must be unique. They use the // following form: // `projects/{project_number}/locations/global/hubs/{hub_id}` @@ -460,11 +559,12 @@ message Hub { // Output only. The current lifecycle state of this hub. State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The VPC networks associated with this hub's spokes. + // Output only. The VPC networks associated with this hub's spokes. // // This field is read-only. Network Connectivity Center automatically // populates it based on the set of spokes attached to the hub. - repeated RoutingVPC routing_vpcs = 10; + repeated RoutingVPC routing_vpcs = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The route tables that belong to this hub. They use the // following form: @@ -498,6 +598,11 @@ message Hub { // attached to the hub are made accessible to other VPC spokes attached to the // hub. The default value is false. optional bool export_psc = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for more granular control of Private Service Connect + // transitivity. + ExportPscConfig export_psc_config = 17 + [(google.api.field_behavior) = OPTIONAL]; } // RoutingVPC contains information about the VPC networks associated @@ -533,9 +638,9 @@ message Spoke { pattern: "projects/{project}/locations/{location}/spokes/{spoke}" }; - // The reason a spoke is inactive. + // The reason for the current state of the spoke. message StateReason { - // The Code enum represents the various reasons a state can be `INACTIVE`. + // The Code enum represents the various reasons for the state of the spoke. enum Code { // No information available. CODE_UNSPECIFIED = 0; @@ -627,6 +732,10 @@ message Spoke { LinkedVpcNetwork linked_vpc_network = 20 [(google.api.field_behavior) = OPTIONAL]; + // Optional. This is a gateway that can apply specialized processing to + // traffic going through it. + Gateway gateway = 24 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The linked producer VPC that is associated with the spoke. LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(google.api.field_behavior) = OPTIONAL]; @@ -650,9 +759,9 @@ message Spoke { // client has an up-to-date value before proceeding. string etag = 27 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The list of fields waiting for hub administration's approval. + // Output only. The list of fields waiting for hub administrator's approval. repeated string field_paths_pending_update = 28 - [(google.api.field_behavior) = OPTIONAL]; + [(google.api.field_behavior) = OUTPUT_ONLY]; } message RouteTable { @@ -772,6 +881,9 @@ message Route { // Immutable. The next-hop VLAN attachment for packets on this route. NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The next-hop spoke for packets on this route. + NextHopSpoke next_hop_spoke = 18 [(google.api.field_behavior) = IMMUTABLE]; } // A group represents a subset of spokes attached to a hub. @@ -817,7 +929,12 @@ message Group { // Output only. The name of the route table that corresponds to this group. // They use the following form: // `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` - string route_table = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + string route_table = 9 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/RouteTable" + } + ]; } // The auto-accept setting for a group controls whether @@ -1700,11 +1817,45 @@ message LinkedVpnTunnels { (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; - // Optional. IP ranges allowed to be included during import from hub (does not - // control transit connectivity). The only allowed value for now is - // "ALL_IPV4_RANGES". + // Optional. Hub routes fully encompassed by include import ranges are + // included during import from hub. repeated string include_import_ranges = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed include import IP ranges waiting for hub + // administrator's approval. + repeated string proposed_include_import_ranges = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Hub routes overlapped/encompassed by exclude import ranges are + // excluded during import from hub. + repeated string exclude_import_ranges = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed exclude import IP ranges waiting for hub + // administrator's approval. + repeated string proposed_exclude_import_ranges = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Dynamic routes fully encompassed by include export ranges are + // included during export to hub. + repeated string include_export_ranges = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed include export IP ranges waiting for hub + // administrator's approval. + repeated string proposed_include_export_ranges = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Dynamic routes overlapped/encompassed by exclude export ranges + // are excluded during export to hub. + repeated string exclude_export_ranges = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed exclude export IP ranges waiting for hub + // administrator's approval. + repeated string proposed_exclude_export_ranges = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A collection of VLAN attachment resources. These resources should @@ -1728,11 +1879,45 @@ message LinkedInterconnectAttachments { (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; - // Optional. IP ranges allowed to be included during import from hub (does not - // control transit connectivity). The only allowed value for now is - // "ALL_IPV4_RANGES". + // Optional. Hub routes fully encompassed by include import ranges are + // included during import from hub. repeated string include_import_ranges = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed include import IP ranges waiting for hub + // administrator's approval. + repeated string proposed_include_import_ranges = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Hub routes overlapped/encompassed by exclude import ranges are + // excluded during import from hub. + repeated string exclude_import_ranges = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed exclude import IP ranges waiting for hub + // administrator's approval. + repeated string proposed_exclude_import_ranges = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Dynamic routes fully encompassed by include export ranges are + // included during export to hub. + repeated string include_export_ranges = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed include export IP ranges waiting for hub + // administrator's approval. + repeated string proposed_include_export_ranges = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Dynamic routes overlapped/encompassed by exclude export ranges + // are excluded during export to hub. + repeated string exclude_export_ranges = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed exclude export IP ranges waiting for hub + // administrator's approval. + repeated string proposed_exclude_export_ranges = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A collection of router appliance instances. If you configure multiple router @@ -1755,11 +1940,45 @@ message LinkedRouterApplianceInstances { (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; - // Optional. IP ranges allowed to be included during import from hub (does not - // control transit connectivity). The only allowed value for now is - // "ALL_IPV4_RANGES". + // Optional. Hub routes fully encompassed by include import ranges are + // included during import from hub. repeated string include_import_ranges = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed include import IP ranges waiting for hub + // administrator's approval. + repeated string proposed_include_import_ranges = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Hub routes overlapped/encompassed by exclude import ranges are + // excluded during import from hub. + repeated string exclude_import_ranges = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed exclude import IP ranges waiting for hub + // administrator's approval. + repeated string proposed_exclude_import_ranges = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Dynamic routes fully encompassed by include export ranges are + // included during export to hub. + repeated string include_export_ranges = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed include export IP ranges waiting for hub + // administrator's approval. + repeated string proposed_include_export_ranges = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Dynamic routes overlapped/encompassed by exclude export ranges + // are excluded during export to hub. + repeated string exclude_export_ranges = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The proposed exclude export IP ranges waiting for hub + // administrator's approval. + repeated string proposed_exclude_export_ranges = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // An existing VPC network. @@ -1778,20 +1997,20 @@ message LinkedVpcNetwork { repeated string include_export_ranges = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The proposed include export IP ranges waiting for hub - // administration's approval. + // Output only. The proposed include export IP ranges waiting for hub + // administrator's approval. repeated string proposed_include_export_ranges = 5 - [(google.api.field_behavior) = OPTIONAL]; + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The proposed exclude export IP ranges waiting for hub - // administration's approval. + // administrator's approval. repeated string proposed_exclude_export_ranges = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The list of Producer VPC spokes that this VPC spoke is a // service consumer VPC spoke for. These producer VPCs are connected through // VPC peering to this spoke's backing VPC network. Because they are directly - // connected throuh VPC peering, NCC export filters do not apply between the + // connected through VPC peering, NCC export filters do not apply between the // service consumer VPC spoke and any of its producer VPC spokes. This VPC // spoke cannot be deleted as long as any of these producer VPC spokes are // connected to the NCC Hub. @@ -1803,6 +2022,289 @@ message LinkedVpcNetwork { ]; } +// A gateway that can apply specialized traffic processing. +message Gateway { + // A list of IP ranges that are reserved for this gateway's internal + // intfrastructure. + message IpRangeReservation { + // Required. A block of IP addresses used to allocate supporting + // infrastructure for this gateway. This block must not overlap with subnets + // in any spokes or peer VPC networks that the gateway can communicate with. + // Example: "10.1.2.0/24" + string ip_range = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // The aggregate processing capacity of this gateway. + enum GatewayCapacity { + // The gateway capacity is unspecified. + GATEWAY_CAPACITY_UNSPECIFIED = 0; + + // The gateway has 1 Gbps of aggregate processing capacity + CAPACITY_1_GBPS = 5; + + // The gateway has 10 Gbps of aggregate processing capacity + CAPACITY_10_GBPS = 1; + } + + // Optional. A list of IP ranges that are reserved for this gateway's internal + // intfrastructure. + repeated IpRangeReservation ip_range_reservations = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The aggregate processing capacity of this gateway. + GatewayCapacity capacity = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The list of Cloud Routers that are connected to this gateway. + // Should be in the form: + // https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router} + repeated string cloud_routers = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URI of the connected SACAttachment. + // Should be in the form: + // projects/{project}/locations/{location}/sacAttachments/{sac_attachment} + string sac_attachment = 14 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SACAttachment" + } + ]; +} + +// A gateway advertised route is a route that a gateway spoke advertises +// somewhere. +message GatewayAdvertisedRoute { + option (google.api.resource) = { + type: "networkconnectivity.googleapis.com/GatewayAdvertisedRoute" + pattern: "projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route}" + plural: "gatewayAdvertisedRoutes" + singular: "gatewayAdvertisedRoute" + }; + + // The recipient of an advertised route. + enum Recipient { + // No recipient specified. By default routes are advertised to the hub. + RECIPIENT_UNSPECIFIED = 0; + + // Advertises a route toward the hub. Other spokes reachable from this spoke + // will receive the route. + ADVERTISE_TO_HUB = 1; + } + + // Identifier. The name of the gateway advertised route. Route names must be + // unique and use the following form: + // `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The time the gateway advertised route was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the gateway advertised route was last updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional labels in key-value pair format. For more information about + // labels, see [Requirements for + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). + map labels = 4; + + // An optional description of the gateway advertised route. + string description = 5; + + // Output only. The Google-generated UUID for the gateway advertised route. + // This value is unique across all gateway advertised route resources. If a + // gateway advertised route is deleted and another with the same name is + // created, the new route is assigned a different `unique_id`. + string unique_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current lifecycle state of this gateway advertised route. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. This route's advertised IP address range. Must be a valid + // CIDR-formatted prefix. If an IP address is provided without a subnet mask, + // it is interpreted as, for IPv4, a `/32` singular IP address range, and, for + // IPv6, + // `/128`. + string ip_range = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. The priority of this advertised route. You can choose a value + // from `0` to `65335`. If you don't provide a value, Google Cloud assigns a + // priority of `100` to the ranges. + optional int32 priority = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The recipient of this advertised route. + Recipient recipient = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for +// [HubService.CreateGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.CreateGatewayAdvertisedRoute]. +message CreateGatewayAdvertisedRouteRequest { + // Required. The parent resource. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; + + // Required. Unique id for the route to create. + string gateway_advertised_route_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Initial values for the new gateway advertised route. + GatewayAdvertisedRoute gateway_advertised_route = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server knows to ignore the request + // if it has already been completed. The server guarantees that a request + // doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check to see whether the original operation + // was received. If it was, the server ignores the second request. This + // behavior prevents clients from mistakenly creating duplicate commitments. + // + // The request ID must be a valid UUID, with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// The request for +// [HubService.GetGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.GetGatewayAdvertisedRoute]. +message GetGatewayAdvertisedRouteRequest { + // Required. The name of the gateway advertised route to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/GatewayAdvertisedRoute" + } + ]; +} + +// The request for +// [HubService.ListGatewayAdvertisedRoutes][google.cloud.networkconnectivity.v1.HubService.ListGatewayAdvertisedRoutes]. +message ListGatewayAdvertisedRoutesRequest { + // Required. The parent resource's name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; + + // Optional. The maximum number of results per page that should be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListGatewayAdvertisedRoutes` call. Provide this to retrieve the subsequent + // page. + // + // When paginating, all other parameters provided to + // `ListGatewayAdvertisedRoutes` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // An expression that filters the list of results. + string filter = 4; + + // Sort the results by a certain order. + string order_by = 5; +} + +// Response for +// [HubService.ListGatewayAdvertisedRoutes][google.cloud.networkconnectivity.v1.HubService.ListGatewayAdvertisedRoutes] +// method. +message ListGatewayAdvertisedRoutesResponse { + // The requested gateway advertised routes. + repeated GatewayAdvertisedRoute gateway_advertised_routes = 1; + + // The token for the next page of the response. To see more results, + // use this value as the page_token for your next request. If this value + // is empty, there are no more results. + string next_page_token = 2; + + // Hubs that could not be reached. + repeated string unreachable = 3; +} + +// The request for +// [HubService.UpdateGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.UpdateGatewayAdvertisedRoute]. +message UpdateGatewayAdvertisedRouteRequest { + // Optional. In the case of an update to an existing group, field mask is used + // to specify the fields to be overwritten. The fields specified in the + // update_mask are relative to the resource, not the full request. A field is + // overwritten if it is in the mask. If the user does not provide a mask, then + // all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The gateway advertised route to update. + // + // The gateway advertised route's `name` field is used to identify the gateway + // advertised route to update. Format: + // `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gatewayAdvertisedRoute}` + GatewayAdvertisedRoute gateway_advertised_route = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server knows to ignore the request + // if it has already been completed. The server guarantees that a request + // doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check to see whether the original operation + // was received. If it was, the server ignores the second request. This + // behavior prevents clients from mistakenly creating duplicate commitments. + // + // The request ID must be a valid UUID, with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request for +// [HubService.DeleteGatewayAdvertisedRoute][google.cloud.networkconnectivity.v1.HubService.DeleteGatewayAdvertisedRoute] +// method. +message DeleteGatewayAdvertisedRouteRequest { + // Required. The name of the gateway advertised route to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/GatewayAdvertisedRoute" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server knows to ignore the request + // if it has already been completed. The server guarantees that a request + // doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check to see whether the original operation + // was received. If it was, the server ignores the second request. This + // behavior prevents clients from mistakenly creating duplicate commitments. + // + // The request ID must be a valid UUID, with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + message LinkedProducerVpcNetwork { // Immutable. The URI of the Service Consumer VPC that the Producer VPC is // peered with. @@ -1838,13 +2340,13 @@ message LinkedProducerVpcNetwork { repeated string include_export_ranges = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The proposed include export IP ranges waiting for hub - // administration's approval. + // Output only. The proposed include export IP ranges waiting for hub + // administrator's approval. repeated string proposed_include_export_ranges = 7 - [(google.api.field_behavior) = OPTIONAL]; + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The proposed exclude export IP ranges waiting for hub - // administration's approval. + // administrator's approval. repeated string proposed_exclude_export_ranges = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -1931,6 +2433,23 @@ message NextHopInterconnectAttachment { bool site_to_site_data_transfer = 3; } +// A route next hop that leads to a spoke resource. +message NextHopSpoke { + // The URI of the spoke resource. + string uri = 1 [(google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + }]; + + // Indicates whether site-to-site data transfer is allowed for this + // spoke resource. Data transfer is available only in + // [supported + // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + // Whether this route is accessible to other hybrid spokes with site-to-site + // data transfer enabled. If this is false, the route is only accessible to + // VPC spokes of the connected Hub. + bool site_to_site_data_transfer = 2; +} + // Summarizes information about the spokes associated with a hub. // The summary includes a count of spokes according to type // and according to state. If any spokes are inactive, diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/AsyncCreateGatewayAdvertisedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/AsyncCreateGatewayAdvertisedRoute.java new file mode 100644 index 000000000000..6c1b7221c9c3 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/AsyncCreateGatewayAdvertisedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.SpokeName; +import com.google.longrunning.Operation; + +public class AsyncCreateGatewayAdvertisedRoute { + + public static void main(String[] args) throws Exception { + asyncCreateGatewayAdvertisedRoute(); + } + + public static void asyncCreateGatewayAdvertisedRoute() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + CreateGatewayAdvertisedRouteRequest request = + CreateGatewayAdvertisedRouteRequest.newBuilder() + .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + .setGatewayAdvertisedRouteId("gatewayAdvertisedRouteId1531070339") + .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + hubServiceClient.createGatewayAdvertisedRouteCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/AsyncCreateGatewayAdvertisedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/AsyncCreateGatewayAdvertisedRouteLRO.java new file mode 100644 index 000000000000..2c97d9103f7d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/AsyncCreateGatewayAdvertisedRouteLRO.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.SpokeName; + +public class AsyncCreateGatewayAdvertisedRouteLRO { + + public static void main(String[] args) throws Exception { + asyncCreateGatewayAdvertisedRouteLRO(); + } + + public static void asyncCreateGatewayAdvertisedRouteLRO() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + CreateGatewayAdvertisedRouteRequest request = + CreateGatewayAdvertisedRouteRequest.newBuilder() + .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + .setGatewayAdvertisedRouteId("gatewayAdvertisedRouteId1531070339") + .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + hubServiceClient.createGatewayAdvertisedRouteOperationCallable().futureCall(request); + // Do something. + GatewayAdvertisedRoute response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRoute.java new file mode 100644 index 000000000000..3076f6de9d0c --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_sync] +import com.google.cloud.networkconnectivity.v1.CreateGatewayAdvertisedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.SpokeName; + +public class SyncCreateGatewayAdvertisedRoute { + + public static void main(String[] args) throws Exception { + syncCreateGatewayAdvertisedRoute(); + } + + public static void syncCreateGatewayAdvertisedRoute() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + CreateGatewayAdvertisedRouteRequest request = + CreateGatewayAdvertisedRouteRequest.newBuilder() + .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + .setGatewayAdvertisedRouteId("gatewayAdvertisedRouteId1531070339") + .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + GatewayAdvertisedRoute response = + hubServiceClient.createGatewayAdvertisedRouteAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRouteSpokenameGatewayadvertisedrouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRouteSpokenameGatewayadvertisedrouteString.java new file mode 100644 index 000000000000..aef1c87b750c --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRouteSpokenameGatewayadvertisedrouteString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_SpokenameGatewayadvertisedrouteString_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.SpokeName; + +public class SyncCreateGatewayAdvertisedRouteSpokenameGatewayadvertisedrouteString { + + public static void main(String[] args) throws Exception { + syncCreateGatewayAdvertisedRouteSpokenameGatewayadvertisedrouteString(); + } + + public static void syncCreateGatewayAdvertisedRouteSpokenameGatewayadvertisedrouteString() + 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + SpokeName parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]"); + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + String gatewayAdvertisedRouteId = "gatewayAdvertisedRouteId1531070339"; + GatewayAdvertisedRoute response = + hubServiceClient + .createGatewayAdvertisedRouteAsync( + parent, gatewayAdvertisedRoute, gatewayAdvertisedRouteId) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_SpokenameGatewayadvertisedrouteString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRouteStringGatewayadvertisedrouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRouteStringGatewayadvertisedrouteString.java new file mode 100644 index 000000000000..cfd75cf499a9 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/creategatewayadvertisedroute/SyncCreateGatewayAdvertisedRouteStringGatewayadvertisedrouteString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_StringGatewayadvertisedrouteString_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.SpokeName; + +public class SyncCreateGatewayAdvertisedRouteStringGatewayadvertisedrouteString { + + public static void main(String[] args) throws Exception { + syncCreateGatewayAdvertisedRouteStringGatewayadvertisedrouteString(); + } + + public static void syncCreateGatewayAdvertisedRouteStringGatewayadvertisedrouteString() + 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + String parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString(); + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + String gatewayAdvertisedRouteId = "gatewayAdvertisedRouteId1531070339"; + GatewayAdvertisedRoute response = + hubServiceClient + .createGatewayAdvertisedRouteAsync( + parent, gatewayAdvertisedRoute, gatewayAdvertisedRouteId) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_CreateGatewayAdvertisedRoute_StringGatewayadvertisedrouteString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/AsyncDeleteGatewayAdvertisedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/AsyncDeleteGatewayAdvertisedRoute.java new file mode 100644 index 000000000000..2698d227363d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/AsyncDeleteGatewayAdvertisedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteGatewayAdvertisedRoute { + + public static void main(String[] args) throws Exception { + asyncDeleteGatewayAdvertisedRoute(); + } + + public static void asyncDeleteGatewayAdvertisedRoute() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + DeleteGatewayAdvertisedRouteRequest request = + DeleteGatewayAdvertisedRouteRequest.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + hubServiceClient.deleteGatewayAdvertisedRouteCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/AsyncDeleteGatewayAdvertisedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/AsyncDeleteGatewayAdvertisedRouteLRO.java new file mode 100644 index 000000000000..bfd3a523d967 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/AsyncDeleteGatewayAdvertisedRouteLRO.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteGatewayAdvertisedRouteLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteGatewayAdvertisedRouteLRO(); + } + + public static void asyncDeleteGatewayAdvertisedRouteLRO() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + DeleteGatewayAdvertisedRouteRequest request = + DeleteGatewayAdvertisedRouteRequest.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + hubServiceClient.deleteGatewayAdvertisedRouteOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRoute.java new file mode 100644 index 000000000000..8519c19518d2 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_sync] +import com.google.cloud.networkconnectivity.v1.DeleteGatewayAdvertisedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewayAdvertisedRoute { + + public static void main(String[] args) throws Exception { + syncDeleteGatewayAdvertisedRoute(); + } + + public static void syncDeleteGatewayAdvertisedRoute() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + DeleteGatewayAdvertisedRouteRequest request = + DeleteGatewayAdvertisedRouteRequest.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + hubServiceClient.deleteGatewayAdvertisedRouteAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRouteGatewayadvertisedroutename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRouteGatewayadvertisedroutename.java new file mode 100644 index 000000000000..30ec4575dce3 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRouteGatewayadvertisedroutename.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_Gatewayadvertisedroutename_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewayAdvertisedRouteGatewayadvertisedroutename { + + public static void main(String[] args) throws Exception { + syncDeleteGatewayAdvertisedRouteGatewayadvertisedroutename(); + } + + public static void syncDeleteGatewayAdvertisedRouteGatewayadvertisedroutename() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + GatewayAdvertisedRouteName name = + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]"); + hubServiceClient.deleteGatewayAdvertisedRouteAsync(name).get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_Gatewayadvertisedroutename_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRouteString.java new file mode 100644 index 000000000000..5c19c4fe9b0d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletegatewayadvertisedroute/SyncDeleteGatewayAdvertisedRouteString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_String_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewayAdvertisedRouteString { + + public static void main(String[] args) throws Exception { + syncDeleteGatewayAdvertisedRouteString(); + } + + public static void syncDeleteGatewayAdvertisedRouteString() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + String name = + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString(); + hubServiceClient.deleteGatewayAdvertisedRouteAsync(name).get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_DeleteGatewayAdvertisedRoute_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/AsyncGetGatewayAdvertisedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/AsyncGetGatewayAdvertisedRoute.java new file mode 100644 index 000000000000..680b1b135d2e --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/AsyncGetGatewayAdvertisedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_GetGatewayAdvertisedRoute_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; + +public class AsyncGetGatewayAdvertisedRoute { + + public static void main(String[] args) throws Exception { + asyncGetGatewayAdvertisedRoute(); + } + + public static void asyncGetGatewayAdvertisedRoute() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + GetGatewayAdvertisedRouteRequest request = + GetGatewayAdvertisedRouteRequest.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .build(); + ApiFuture future = + hubServiceClient.getGatewayAdvertisedRouteCallable().futureCall(request); + // Do something. + GatewayAdvertisedRoute response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_GetGatewayAdvertisedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRoute.java new file mode 100644 index 000000000000..439a83408502 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_GetGatewayAdvertisedRoute_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.GetGatewayAdvertisedRouteRequest; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; + +public class SyncGetGatewayAdvertisedRoute { + + public static void main(String[] args) throws Exception { + syncGetGatewayAdvertisedRoute(); + } + + public static void syncGetGatewayAdvertisedRoute() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + GetGatewayAdvertisedRouteRequest request = + GetGatewayAdvertisedRouteRequest.newBuilder() + .setName( + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString()) + .build(); + GatewayAdvertisedRoute response = hubServiceClient.getGatewayAdvertisedRoute(request); + } + } +} +// [END networkconnectivity_v1_generated_HubService_GetGatewayAdvertisedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRouteGatewayadvertisedroutename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRouteGatewayadvertisedroutename.java new file mode 100644 index 000000000000..1ad35857a3ba --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRouteGatewayadvertisedroutename.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_GetGatewayAdvertisedRoute_Gatewayadvertisedroutename_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; + +public class SyncGetGatewayAdvertisedRouteGatewayadvertisedroutename { + + public static void main(String[] args) throws Exception { + syncGetGatewayAdvertisedRouteGatewayadvertisedroutename(); + } + + public static void syncGetGatewayAdvertisedRouteGatewayadvertisedroutename() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + GatewayAdvertisedRouteName name = + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]"); + GatewayAdvertisedRoute response = hubServiceClient.getGatewayAdvertisedRoute(name); + } + } +} +// [END networkconnectivity_v1_generated_HubService_GetGatewayAdvertisedRoute_Gatewayadvertisedroutename_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRouteString.java new file mode 100644 index 000000000000..71b19ee66ab1 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getgatewayadvertisedroute/SyncGetGatewayAdvertisedRouteString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_GetGatewayAdvertisedRoute_String_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRouteName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; + +public class SyncGetGatewayAdvertisedRouteString { + + public static void main(String[] args) throws Exception { + syncGetGatewayAdvertisedRouteString(); + } + + public static void syncGetGatewayAdvertisedRouteString() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + String name = + GatewayAdvertisedRouteName.of( + "[PROJECT]", "[LOCATION]", "[SPOKE]", "[GATEWAY_ADVERTISED_ROUTE]") + .toString(); + GatewayAdvertisedRoute response = hubServiceClient.getGatewayAdvertisedRoute(name); + } + } +} +// [END networkconnectivity_v1_generated_HubService_GetGatewayAdvertisedRoute_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/AsyncListGatewayAdvertisedRoutes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/AsyncListGatewayAdvertisedRoutes.java new file mode 100644 index 000000000000..2f029f02ae5e --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/AsyncListGatewayAdvertisedRoutes.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.SpokeName; + +public class AsyncListGatewayAdvertisedRoutes { + + public static void main(String[] args) throws Exception { + asyncListGatewayAdvertisedRoutes(); + } + + public static void asyncListGatewayAdvertisedRoutes() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + ListGatewayAdvertisedRoutesRequest request = + ListGatewayAdvertisedRoutesRequest.newBuilder() + .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + hubServiceClient.listGatewayAdvertisedRoutesPagedCallable().futureCall(request); + // Do something. + for (GatewayAdvertisedRoute element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/AsyncListGatewayAdvertisedRoutesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/AsyncListGatewayAdvertisedRoutesPaged.java new file mode 100644 index 000000000000..ac3784148852 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/AsyncListGatewayAdvertisedRoutesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_Paged_async] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesResponse; +import com.google.cloud.networkconnectivity.v1.SpokeName; +import com.google.common.base.Strings; + +public class AsyncListGatewayAdvertisedRoutesPaged { + + public static void main(String[] args) throws Exception { + asyncListGatewayAdvertisedRoutesPaged(); + } + + public static void asyncListGatewayAdvertisedRoutesPaged() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + ListGatewayAdvertisedRoutesRequest request = + ListGatewayAdvertisedRoutesRequest.newBuilder() + .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListGatewayAdvertisedRoutesResponse response = + hubServiceClient.listGatewayAdvertisedRoutesCallable().call(request); + for (GatewayAdvertisedRoute element : response.getGatewayAdvertisedRoutesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_Paged_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutes.java new file mode 100644 index 000000000000..85c1a90b1a54 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutes.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.ListGatewayAdvertisedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.SpokeName; + +public class SyncListGatewayAdvertisedRoutes { + + public static void main(String[] args) throws Exception { + syncListGatewayAdvertisedRoutes(); + } + + public static void syncListGatewayAdvertisedRoutes() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + ListGatewayAdvertisedRoutesRequest request = + ListGatewayAdvertisedRoutesRequest.newBuilder() + .setParent(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (GatewayAdvertisedRoute element : + hubServiceClient.listGatewayAdvertisedRoutes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutesSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutesSpokename.java new file mode 100644 index 000000000000..94d84e0e9fd7 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutesSpokename.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_Spokename_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.SpokeName; + +public class SyncListGatewayAdvertisedRoutesSpokename { + + public static void main(String[] args) throws Exception { + syncListGatewayAdvertisedRoutesSpokename(); + } + + public static void syncListGatewayAdvertisedRoutesSpokename() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + SpokeName parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]"); + for (GatewayAdvertisedRoute element : + hubServiceClient.listGatewayAdvertisedRoutes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_Spokename_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutesString.java new file mode 100644 index 000000000000..cfa6a5fa0da9 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listgatewayadvertisedroutes/SyncListGatewayAdvertisedRoutesString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_String_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.SpokeName; + +public class SyncListGatewayAdvertisedRoutesString { + + public static void main(String[] args) throws Exception { + syncListGatewayAdvertisedRoutesString(); + } + + public static void syncListGatewayAdvertisedRoutesString() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + String parent = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString(); + for (GatewayAdvertisedRoute element : + hubServiceClient.listGatewayAdvertisedRoutes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_ListGatewayAdvertisedRoutes_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/AsyncUpdateGatewayAdvertisedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/AsyncUpdateGatewayAdvertisedRoute.java new file mode 100644 index 000000000000..04b5c6036758 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/AsyncUpdateGatewayAdvertisedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_UpdateGatewayAdvertisedRoute_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGatewayAdvertisedRoute { + + public static void main(String[] args) throws Exception { + asyncUpdateGatewayAdvertisedRoute(); + } + + public static void asyncUpdateGatewayAdvertisedRoute() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + UpdateGatewayAdvertisedRouteRequest request = + UpdateGatewayAdvertisedRouteRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + hubServiceClient.updateGatewayAdvertisedRouteCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_UpdateGatewayAdvertisedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/AsyncUpdateGatewayAdvertisedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/AsyncUpdateGatewayAdvertisedRouteLRO.java new file mode 100644 index 000000000000..03282d78cdf5 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/AsyncUpdateGatewayAdvertisedRouteLRO.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_UpdateGatewayAdvertisedRoute_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGatewayAdvertisedRouteLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateGatewayAdvertisedRouteLRO(); + } + + public static void asyncUpdateGatewayAdvertisedRouteLRO() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + UpdateGatewayAdvertisedRouteRequest request = + UpdateGatewayAdvertisedRouteRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + hubServiceClient.updateGatewayAdvertisedRouteOperationCallable().futureCall(request); + // Do something. + GatewayAdvertisedRoute response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_UpdateGatewayAdvertisedRoute_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/SyncUpdateGatewayAdvertisedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/SyncUpdateGatewayAdvertisedRoute.java new file mode 100644 index 000000000000..bd0b10acda77 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/SyncUpdateGatewayAdvertisedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_UpdateGatewayAdvertisedRoute_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.UpdateGatewayAdvertisedRouteRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGatewayAdvertisedRoute { + + public static void main(String[] args) throws Exception { + syncUpdateGatewayAdvertisedRoute(); + } + + public static void syncUpdateGatewayAdvertisedRoute() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + UpdateGatewayAdvertisedRouteRequest request = + UpdateGatewayAdvertisedRouteRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewayAdvertisedRoute(GatewayAdvertisedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + GatewayAdvertisedRoute response = + hubServiceClient.updateGatewayAdvertisedRouteAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_UpdateGatewayAdvertisedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/SyncUpdateGatewayAdvertisedRouteGatewayadvertisedrouteFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/SyncUpdateGatewayAdvertisedRouteGatewayadvertisedrouteFieldmask.java new file mode 100644 index 000000000000..8e05d9bb5eb0 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategatewayadvertisedroute/SyncUpdateGatewayAdvertisedRouteGatewayadvertisedrouteFieldmask.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_UpdateGatewayAdvertisedRoute_GatewayadvertisedrouteFieldmask_sync] +import com.google.cloud.networkconnectivity.v1.GatewayAdvertisedRoute; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGatewayAdvertisedRouteGatewayadvertisedrouteFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateGatewayAdvertisedRouteGatewayadvertisedrouteFieldmask(); + } + + public static void syncUpdateGatewayAdvertisedRouteGatewayadvertisedrouteFieldmask() + 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + GatewayAdvertisedRoute gatewayAdvertisedRoute = GatewayAdvertisedRoute.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + GatewayAdvertisedRoute response = + hubServiceClient + .updateGatewayAdvertisedRouteAsync(gatewayAdvertisedRoute, updateMask) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_UpdateGatewayAdvertisedRoute_GatewayadvertisedrouteFieldmask_sync] diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 8f2e3cbd1ba3..8e56194862b1 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.58.0 + 0.59.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-networkservices' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.58.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.59.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/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-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.59.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-notebooks/README.md b/java-notebooks/README.md index a0ea7b81f94a..fea8fdfb22ab 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-notebooks' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.100.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/overview [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-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.101.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-observability/README.md b/java-observability/README.md index 47c0abb8a611..4fc704ab7cd0 100644 --- a/java-observability/README.md +++ b/java-observability/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-observability - 0.2.0 + 0.3.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-observability' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-observability:0.2.0' +implementation 'com.google.cloud:google-cloud-observability:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-observability" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-observability" % "0.3.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-observability/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-observability.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-observability/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-observability/0.3.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-optimization/README.md b/java-optimization/README.md index 357c94cec70c..397875f36dab 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-optimization' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.100.0' +implementation 'com.google.cloud:google-cloud-optimization:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-optimization/latest/overview [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-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.101.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-oracledatabase/README.md b/java-oracledatabase/README.md index 0a300866f3fd..56fd436ee3c9 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 0.51.0 + 0.52.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-oracledatabase' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.51.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.52.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/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-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.52.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-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java index 7a3c5b7323ee..ff5281805141 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java @@ -1111,6 +1111,25 @@ * * * + *

UpdateOdbDnsZone + *

Updates the `labels` of a single ODB DNS Zone. + * + *

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

+ *
    + *
  • updateOdbDnsZoneAsync(UpdateOdbDnsZoneRequest request) + *

+ *

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

+ *
    + *
  • updateOdbDnsZoneAsync(OdbDnsZone odbDnsZone, 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.

+ *
    + *
  • updateOdbDnsZoneOperationCallable() + *

  • updateOdbDnsZoneCallable() + *

+ * + * + * *

DeleteOdbDnsZone *

Deletes a single ODB DNS Zone. * @@ -10887,6 +10906,140 @@ public final UnaryCallable createOdbDnsZoneC return stub.createOdbDnsZoneCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the `labels` of a single ODB DNS Zone. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   OdbDnsZone odbDnsZone = OdbDnsZone.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   OdbDnsZone response =
+   *       oracleDatabaseClient.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get();
+   * }
+   * }
+ * + * @param odbDnsZone Required. The resource being updated. Note only labels can be updated. The + * provided labels will completely replace the existing labels. Any existing label keys that + * are not included in the update request will be deleted. Not providing labels and + * update_mask will not update the labels. To clear all labels, specify `labels` in the + * `update_mask` and omit or leave the `labels` field empty in the update request. + * @param updateMask Optional. A mask specifying which fields in the OdbDnsZone should be updated. + * A field specified in the mask is updated. If a mask isn't provided, the service treats this + * as an implied field mask equivalent to all fields that are populated (have a non-empty + * value). To clear or unset a field, the field must be explicitly specified in the + * `update_mask`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateOdbDnsZoneAsync( + OdbDnsZone odbDnsZone, FieldMask updateMask) { + UpdateOdbDnsZoneRequest request = + UpdateOdbDnsZoneRequest.newBuilder() + .setOdbDnsZone(odbDnsZone) + .setUpdateMask(updateMask) + .build(); + return updateOdbDnsZoneAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the `labels` of a single ODB DNS Zone. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   UpdateOdbDnsZoneRequest request =
+   *       UpdateOdbDnsZoneRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setOdbDnsZone(OdbDnsZone.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OdbDnsZone response = oracleDatabaseClient.updateOdbDnsZoneAsync(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 updateOdbDnsZoneAsync( + UpdateOdbDnsZoneRequest request) { + return updateOdbDnsZoneOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the `labels` of a single ODB DNS Zone. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   UpdateOdbDnsZoneRequest request =
+   *       UpdateOdbDnsZoneRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setOdbDnsZone(OdbDnsZone.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient.updateOdbDnsZoneOperationCallable().futureCall(request);
+   *   // Do something.
+   *   OdbDnsZone response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateOdbDnsZoneOperationCallable() { + return stub.updateOdbDnsZoneOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the `labels` of a single ODB DNS Zone. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   UpdateOdbDnsZoneRequest request =
+   *       UpdateOdbDnsZoneRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setOdbDnsZone(OdbDnsZone.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.updateOdbDnsZoneCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateOdbDnsZoneCallable() { + return stub.updateOdbDnsZoneCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single ODB DNS Zone. diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java index 4c31d750c595..a06d919cfe07 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java @@ -721,6 +721,17 @@ public UnaryCallSettings createOdbDnsZoneSet return ((OracleDatabaseStubSettings) getStubSettings()).createOdbDnsZoneOperationSettings(); } + /** Returns the object with the settings used for calls to updateOdbDnsZone. */ + public UnaryCallSettings updateOdbDnsZoneSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).updateOdbDnsZoneSettings(); + } + + /** Returns the object with the settings used for calls to updateOdbDnsZone. */ + public OperationCallSettings + updateOdbDnsZoneOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).updateOdbDnsZoneOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteOdbDnsZone. */ public UnaryCallSettings deleteOdbDnsZoneSettings() { return ((OracleDatabaseStubSettings) getStubSettings()).deleteOdbDnsZoneSettings(); @@ -1968,6 +1979,18 @@ public UnaryCallSettings.Builder getOdbDnsZone return getStubSettingsBuilder().createOdbDnsZoneOperationSettings(); } + /** Returns the builder for the settings used for calls to updateOdbDnsZone. */ + public UnaryCallSettings.Builder + updateOdbDnsZoneSettings() { + return getStubSettingsBuilder().updateOdbDnsZoneSettings(); + } + + /** Returns the builder for the settings used for calls to updateOdbDnsZone. */ + public OperationCallSettings.Builder + updateOdbDnsZoneOperationSettings() { + return getStubSettingsBuilder().updateOdbDnsZoneOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteOdbDnsZone. */ public UnaryCallSettings.Builder deleteOdbDnsZoneSettings() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json index 39df87c80e55..deae04ef3b48 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json @@ -328,6 +328,9 @@ "UpdateGoldengateDeployment": { "methods": ["updateGoldengateDeploymentAsync", "updateGoldengateDeploymentAsync", "updateGoldengateDeploymentOperationCallable", "updateGoldengateDeploymentCallable"] }, + "UpdateOdbDnsZone": { + "methods": ["updateOdbDnsZoneAsync", "updateOdbDnsZoneAsync", "updateOdbDnsZoneOperationCallable", "updateOdbDnsZoneCallable"] + }, "UpdateOdbNetwork": { "methods": ["updateOdbNetworkAsync", "updateOdbNetworkAsync", "updateOdbNetworkOperationCallable", "updateOdbNetworkCallable"] }, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java index 62afafb99ad6..89fc60a98fe7 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java @@ -221,6 +221,7 @@ import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateDeploymentRequest; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbSubnetRequest; import com.google.longrunning.Operation; @@ -901,6 +902,17 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateOdbDnsZoneMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/UpdateOdbDnsZone") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateOdbDnsZoneRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteOdbDnsZoneMethodDescriptor = MethodDescriptor.newBuilder() @@ -1840,6 +1852,9 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { private final UnaryCallable createOdbDnsZoneCallable; private final OperationCallable createOdbDnsZoneOperationCallable; + private final UnaryCallable updateOdbDnsZoneCallable; + private final OperationCallable + updateOdbDnsZoneOperationCallable; private final UnaryCallable deleteOdbDnsZoneCallable; private final OperationCallable deleteOdbDnsZoneOperationCallable; @@ -2738,6 +2753,17 @@ protected GrpcOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings updateOdbDnsZoneTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateOdbDnsZoneMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "odb_dns_zone.name", String.valueOf(request.getOdbDnsZone().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteOdbDnsZoneTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteOdbDnsZoneMethodDescriptor) @@ -3895,6 +3921,15 @@ protected GrpcOracleDatabaseStub( settings.createOdbDnsZoneOperationSettings(), clientContext, operationsStub); + this.updateOdbDnsZoneCallable = + callableFactory.createUnaryCallable( + updateOdbDnsZoneTransportSettings, settings.updateOdbDnsZoneSettings(), clientContext); + this.updateOdbDnsZoneOperationCallable = + callableFactory.createOperationCallable( + updateOdbDnsZoneTransportSettings, + settings.updateOdbDnsZoneOperationSettings(), + clientContext, + operationsStub); this.deleteOdbDnsZoneCallable = callableFactory.createUnaryCallable( deleteOdbDnsZoneTransportSettings, settings.deleteOdbDnsZoneSettings(), clientContext); @@ -4964,6 +4999,17 @@ public UnaryCallable createOdbDnsZoneCallabl return createOdbDnsZoneOperationCallable; } + @Override + public UnaryCallable updateOdbDnsZoneCallable() { + return updateOdbDnsZoneCallable; + } + + @Override + public OperationCallable + updateOdbDnsZoneOperationCallable() { + return updateOdbDnsZoneOperationCallable; + } + @Override public UnaryCallable deleteOdbDnsZoneCallable() { return deleteOdbDnsZoneCallable; diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java index b7cb9bebd348..c479ae85577a 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java @@ -229,6 +229,7 @@ import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateDeploymentRequest; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbSubnetRequest; import com.google.common.collect.ImmutableMap; @@ -2370,6 +2371,49 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateOdbDnsZoneMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/UpdateOdbDnsZone") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{odbDnsZone.name=projects/*/locations/*/odbNetworks/*/odbDnsZones/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "odbDnsZone.name", request.getOdbDnsZone().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("odbDnsZone", request.getOdbDnsZone(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateOdbDnsZoneRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteOdbDnsZoneMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -4869,6 +4913,9 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { private final UnaryCallable createOdbDnsZoneCallable; private final OperationCallable createOdbDnsZoneOperationCallable; + private final UnaryCallable updateOdbDnsZoneCallable; + private final OperationCallable + updateOdbDnsZoneOperationCallable; private final UnaryCallable deleteOdbDnsZoneCallable; private final OperationCallable deleteOdbDnsZoneOperationCallable; @@ -5856,6 +5903,18 @@ protected HttpJsonOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings updateOdbDnsZoneTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateOdbDnsZoneMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "odb_dns_zone.name", String.valueOf(request.getOdbDnsZone().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteOdbDnsZoneTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteOdbDnsZoneMethodDescriptor) @@ -7083,6 +7142,15 @@ protected HttpJsonOracleDatabaseStub( settings.createOdbDnsZoneOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateOdbDnsZoneCallable = + callableFactory.createUnaryCallable( + updateOdbDnsZoneTransportSettings, settings.updateOdbDnsZoneSettings(), clientContext); + this.updateOdbDnsZoneOperationCallable = + callableFactory.createOperationCallable( + updateOdbDnsZoneTransportSettings, + settings.updateOdbDnsZoneOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteOdbDnsZoneCallable = callableFactory.createUnaryCallable( deleteOdbDnsZoneTransportSettings, settings.deleteOdbDnsZoneSettings(), clientContext); @@ -7631,6 +7699,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listOdbDnsZonesMethodDescriptor); methodDescriptors.add(getOdbDnsZoneMethodDescriptor); methodDescriptors.add(createOdbDnsZoneMethodDescriptor); + methodDescriptors.add(updateOdbDnsZoneMethodDescriptor); methodDescriptors.add(deleteOdbDnsZoneMethodDescriptor); methodDescriptors.add(listExadbVmClustersMethodDescriptor); methodDescriptors.add(getExadbVmClusterMethodDescriptor); @@ -8266,6 +8335,17 @@ public UnaryCallable createOdbDnsZoneCallabl return createOdbDnsZoneOperationCallable; } + @Override + public UnaryCallable updateOdbDnsZoneCallable() { + return updateOdbDnsZoneCallable; + } + + @Override + public OperationCallable + updateOdbDnsZoneOperationCallable() { + return updateOdbDnsZoneOperationCallable; + } + @Override public UnaryCallable deleteOdbDnsZoneCallable() { return deleteOdbDnsZoneCallable; diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java index 11ce154b1d64..698d96352496 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java @@ -216,6 +216,7 @@ import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateDeploymentRequest; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbSubnetRequest; import com.google.longrunning.Operation; @@ -762,6 +763,15 @@ public UnaryCallable createOdbDnsZoneCallabl throw new UnsupportedOperationException("Not implemented: createOdbDnsZoneCallable()"); } + public OperationCallable + updateOdbDnsZoneOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateOdbDnsZoneOperationCallable()"); + } + + public UnaryCallable updateOdbDnsZoneCallable() { + throw new UnsupportedOperationException("Not implemented: updateOdbDnsZoneCallable()"); + } + public OperationCallable deleteOdbDnsZoneOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteOdbDnsZoneOperationCallable()"); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java index a8ebc87829a0..f18a84c21bb3 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java @@ -262,6 +262,7 @@ import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateDeploymentRequest; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbSubnetRequest; import com.google.common.collect.ImmutableList; @@ -560,6 +561,9 @@ public class OracleDatabaseStubSettings extends StubSettings createOdbDnsZoneSettings; private final OperationCallSettings createOdbDnsZoneOperationSettings; + private final UnaryCallSettings updateOdbDnsZoneSettings; + private final OperationCallSettings + updateOdbDnsZoneOperationSettings; private final UnaryCallSettings deleteOdbDnsZoneSettings; private final OperationCallSettings deleteOdbDnsZoneOperationSettings; @@ -3563,6 +3567,17 @@ public UnaryCallSettings createOdbDnsZoneSet return createOdbDnsZoneOperationSettings; } + /** Returns the object with the settings used for calls to updateOdbDnsZone. */ + public UnaryCallSettings updateOdbDnsZoneSettings() { + return updateOdbDnsZoneSettings; + } + + /** Returns the object with the settings used for calls to updateOdbDnsZone. */ + public OperationCallSettings + updateOdbDnsZoneOperationSettings() { + return updateOdbDnsZoneOperationSettings; + } + /** Returns the object with the settings used for calls to deleteOdbDnsZone. */ public UnaryCallSettings deleteOdbDnsZoneSettings() { return deleteOdbDnsZoneSettings; @@ -4339,6 +4354,8 @@ protected OracleDatabaseStubSettings(Builder settingsBuilder) throws IOException getOdbDnsZoneSettings = settingsBuilder.getOdbDnsZoneSettings().build(); createOdbDnsZoneSettings = settingsBuilder.createOdbDnsZoneSettings().build(); createOdbDnsZoneOperationSettings = settingsBuilder.createOdbDnsZoneOperationSettings().build(); + updateOdbDnsZoneSettings = settingsBuilder.updateOdbDnsZoneSettings().build(); + updateOdbDnsZoneOperationSettings = settingsBuilder.updateOdbDnsZoneOperationSettings().build(); deleteOdbDnsZoneSettings = settingsBuilder.deleteOdbDnsZoneSettings().build(); deleteOdbDnsZoneOperationSettings = settingsBuilder.deleteOdbDnsZoneOperationSettings().build(); listExadbVmClustersSettings = settingsBuilder.listExadbVmClustersSettings().build(); @@ -4697,6 +4714,11 @@ public static class Builder extends StubSettings.Builder createOdbDnsZoneOperationSettings; + private final UnaryCallSettings.Builder + updateOdbDnsZoneSettings; + private final OperationCallSettings.Builder< + UpdateOdbDnsZoneRequest, OdbDnsZone, OperationMetadata> + updateOdbDnsZoneOperationSettings; private final UnaryCallSettings.Builder deleteOdbDnsZoneSettings; private final OperationCallSettings.Builder @@ -5075,6 +5097,8 @@ protected Builder(@Nullable ClientContext clientContext) { getOdbDnsZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createOdbDnsZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createOdbDnsZoneOperationSettings = OperationCallSettings.newBuilder(); + updateOdbDnsZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateOdbDnsZoneOperationSettings = OperationCallSettings.newBuilder(); deleteOdbDnsZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteOdbDnsZoneOperationSettings = OperationCallSettings.newBuilder(); listExadbVmClustersSettings = @@ -5228,6 +5252,7 @@ protected Builder(@Nullable ClientContext clientContext) { listOdbDnsZonesSettings, getOdbDnsZoneSettings, createOdbDnsZoneSettings, + updateOdbDnsZoneSettings, deleteOdbDnsZoneSettings, listExadbVmClustersSettings, getExadbVmClusterSettings, @@ -5406,6 +5431,8 @@ protected Builder(OracleDatabaseStubSettings settings) { getOdbDnsZoneSettings = settings.getOdbDnsZoneSettings.toBuilder(); createOdbDnsZoneSettings = settings.createOdbDnsZoneSettings.toBuilder(); createOdbDnsZoneOperationSettings = settings.createOdbDnsZoneOperationSettings.toBuilder(); + updateOdbDnsZoneSettings = settings.updateOdbDnsZoneSettings.toBuilder(); + updateOdbDnsZoneOperationSettings = settings.updateOdbDnsZoneOperationSettings.toBuilder(); deleteOdbDnsZoneSettings = settings.deleteOdbDnsZoneSettings.toBuilder(); deleteOdbDnsZoneOperationSettings = settings.deleteOdbDnsZoneOperationSettings.toBuilder(); listExadbVmClustersSettings = settings.listExadbVmClustersSettings.toBuilder(); @@ -5580,6 +5607,7 @@ protected Builder(OracleDatabaseStubSettings settings) { listOdbDnsZonesSettings, getOdbDnsZoneSettings, createOdbDnsZoneSettings, + updateOdbDnsZoneSettings, deleteOdbDnsZoneSettings, listExadbVmClustersSettings, getExadbVmClusterSettings, @@ -5923,6 +5951,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .updateOdbDnsZoneSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .deleteOdbDnsZoneSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -6891,6 +6924,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .updateOdbDnsZoneOperationSettings() + .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(OdbDnsZone.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 .deleteOdbDnsZoneOperationSettings() .setInitialCallSettings( @@ -8082,6 +8139,18 @@ public UnaryCallSettings.Builder getOdbDnsZone return createOdbDnsZoneOperationSettings; } + /** Returns the builder for the settings used for calls to updateOdbDnsZone. */ + public UnaryCallSettings.Builder + updateOdbDnsZoneSettings() { + return updateOdbDnsZoneSettings; + } + + /** Returns the builder for the settings used for calls to updateOdbDnsZone. */ + public OperationCallSettings.Builder + updateOdbDnsZoneOperationSettings() { + return updateOdbDnsZoneOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteOdbDnsZone. */ public UnaryCallSettings.Builder deleteOdbDnsZoneSettings() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json index 1c5b86cb0e06..54cee89f6e01 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json @@ -6767,6 +6767,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest", "queryAllDeclaredConstructors": true, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java index 915f6823edde..8d651bc6fb4a 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java @@ -1198,6 +1198,27 @@ public void createOdbDnsZone( } } + @Override + public void updateOdbDnsZone( + UpdateOdbDnsZoneRequest 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 UpdateOdbDnsZone, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteOdbDnsZone( DeleteOdbDnsZoneRequest request, StreamObserver responseObserver) { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java index a6e88cff23c5..fa48fccd527c 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java @@ -6500,6 +6500,78 @@ public void createOdbDnsZoneExceptionTest2() throws Exception { } } + @Test + public void updateOdbDnsZoneTest() throws Exception { + OdbDnsZone expectedResponse = + OdbDnsZone.newBuilder() + .setName( + OdbDnsZoneName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_DNS_ZONE]") + .toString()) + .setDomain("domain-1326197564") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateOdbDnsZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OdbDnsZone odbDnsZone = + OdbDnsZone.newBuilder() + .setName( + OdbDnsZoneName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_DNS_ZONE]") + .toString()) + .setDomain("domain-1326197564") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + OdbDnsZone actualResponse = client.updateOdbDnsZoneAsync(odbDnsZone, updateMask).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 updateOdbDnsZoneExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OdbDnsZone odbDnsZone = + OdbDnsZone.newBuilder() + .setName( + OdbDnsZoneName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_DNS_ZONE]") + .toString()) + .setDomain("domain-1326197564") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteOdbDnsZoneTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java index 000cecdee4e9..5dc3348ff184 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java @@ -5942,6 +5942,60 @@ public void createOdbDnsZoneExceptionTest2() throws Exception { } } + @Test + public void updateOdbDnsZoneTest() throws Exception { + OdbDnsZone expectedResponse = + OdbDnsZone.newBuilder() + .setName( + OdbDnsZoneName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_DNS_ZONE]") + .toString()) + .setDomain("domain-1326197564") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateOdbDnsZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + OdbDnsZone odbDnsZone = OdbDnsZone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + OdbDnsZone actualResponse = client.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateOdbDnsZoneRequest actualRequest = ((UpdateOdbDnsZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(odbDnsZone, actualRequest.getOdbDnsZone()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateOdbDnsZoneExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + OdbDnsZone odbDnsZone = OdbDnsZone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateOdbDnsZoneAsync(odbDnsZone, 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 deleteOdbDnsZoneTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java index 39c5052d3158..cccce1c42b16 100644 --- a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java +++ b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java @@ -2633,6 +2633,52 @@ private OracleDatabaseGrpc() {} return getCreateOdbDnsZoneMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest, + com.google.longrunning.Operation> + getUpdateOdbDnsZoneMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOdbDnsZone", + requestType = com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest, + com.google.longrunning.Operation> + getUpdateOdbDnsZoneMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest, + com.google.longrunning.Operation> + getUpdateOdbDnsZoneMethod; + if ((getUpdateOdbDnsZoneMethod = OracleDatabaseGrpc.getUpdateOdbDnsZoneMethod) == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getUpdateOdbDnsZoneMethod = OracleDatabaseGrpc.getUpdateOdbDnsZoneMethod) == null) { + OracleDatabaseGrpc.getUpdateOdbDnsZoneMethod = + getUpdateOdbDnsZoneMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOdbDnsZone")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier("UpdateOdbDnsZone")) + .build(); + } + } + } + return getUpdateOdbDnsZoneMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.DeleteOdbDnsZoneRequest, com.google.longrunning.Operation> @@ -6212,6 +6258,20 @@ default void createOdbDnsZone( getCreateOdbDnsZoneMethod(), responseObserver); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + default void updateOdbDnsZone( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateOdbDnsZoneMethod(), responseObserver); + } + /** * * @@ -7923,6 +7983,22 @@ public void createOdbDnsZone( responseObserver); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + public void updateOdbDnsZone( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOdbDnsZoneMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -9617,6 +9693,20 @@ public com.google.longrunning.Operation createOdbDnsZone( getChannel(), getCreateOdbDnsZoneMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + public com.google.longrunning.Operation updateOdbDnsZone( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateOdbDnsZoneMethod(), getCallOptions(), request); + } + /** * * @@ -11124,6 +11214,19 @@ public com.google.longrunning.Operation createOdbDnsZone( getChannel(), getCreateOdbDnsZoneMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + public com.google.longrunning.Operation updateOdbDnsZone( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOdbDnsZoneMethod(), getCallOptions(), request); + } + /** * * @@ -12625,6 +12728,19 @@ protected OracleDatabaseFutureStub build( getChannel().newCall(getCreateOdbDnsZoneMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateOdbDnsZone(com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOdbDnsZoneMethod(), getCallOptions()), request); + } + /** * * @@ -13475,60 +13591,61 @@ protected OracleDatabaseFutureStub build( private static final int METHODID_LIST_ODB_DNS_ZONES = 49; private static final int METHODID_GET_ODB_DNS_ZONE = 50; private static final int METHODID_CREATE_ODB_DNS_ZONE = 51; - private static final int METHODID_DELETE_ODB_DNS_ZONE = 52; - private static final int METHODID_LIST_EXADB_VM_CLUSTERS = 53; - private static final int METHODID_GET_EXADB_VM_CLUSTER = 54; - private static final int METHODID_CREATE_EXADB_VM_CLUSTER = 55; - private static final int METHODID_DELETE_EXADB_VM_CLUSTER = 56; - private static final int METHODID_UPDATE_EXADB_VM_CLUSTER = 57; - private static final int METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER = 58; - private static final int METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS = 59; - private static final int METHODID_GET_EXASCALE_DB_STORAGE_VAULT = 60; - private static final int METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT = 61; - private static final int METHODID_UPDATE_EXASCALE_DB_STORAGE_VAULT = 62; - private static final int METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT = 63; - private static final int METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES = 64; - private static final int METHODID_LIST_DB_SYSTEM_COMPUTE_PERFORMANCES = 65; - private static final int METHODID_LIST_DATABASES = 66; - private static final int METHODID_GET_DATABASE = 67; - private static final int METHODID_LIST_PLUGGABLE_DATABASES = 68; - private static final int METHODID_GET_PLUGGABLE_DATABASE = 69; - private static final int METHODID_LIST_DB_SYSTEMS = 70; - private static final int METHODID_GET_DB_SYSTEM = 71; - private static final int METHODID_CREATE_DB_SYSTEM = 72; - private static final int METHODID_UPDATE_DB_SYSTEM = 73; - private static final int METHODID_DELETE_DB_SYSTEM = 74; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENTS = 75; - private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT = 76; - private static final int METHODID_CREATE_GOLDENGATE_DEPLOYMENT = 77; - private static final int METHODID_UPDATE_GOLDENGATE_DEPLOYMENT = 78; - private static final int METHODID_DELETE_GOLDENGATE_DEPLOYMENT = 79; - private static final int METHODID_STOP_GOLDENGATE_DEPLOYMENT = 80; - private static final int METHODID_START_GOLDENGATE_DEPLOYMENT = 81; - private static final int METHODID_LIST_GOLDENGATE_CONNECTIONS = 82; - private static final int METHODID_GET_GOLDENGATE_CONNECTION = 83; - private static final int METHODID_CREATE_GOLDENGATE_CONNECTION = 84; - private static final int METHODID_UPDATE_GOLDENGATE_CONNECTION = 85; - private static final int METHODID_DELETE_GOLDENGATE_CONNECTION = 86; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS = 87; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES = 88; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS = 89; - private static final int METHODID_LIST_GOLDENGATE_CONNECTION_TYPES = 90; - private static final int METHODID_LIST_DB_VERSIONS = 91; - private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 92; - private static final int METHODID_LIST_GOLDENGATE_CONNECTION_ASSIGNMENTS = 93; - private static final int METHODID_GET_GOLDENGATE_CONNECTION_ASSIGNMENT = 94; - private static final int METHODID_CREATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 95; - private static final int METHODID_UPDATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 96; - private static final int METHODID_DELETE_GOLDENGATE_CONNECTION_ASSIGNMENT = 97; - private static final int METHODID_TEST_GOLDENGATE_CONNECTION_ASSIGNMENT = 98; - private static final int METHODID_LIST_DATABASE_CONNECTIONS = 99; - private static final int METHODID_GET_DATABASE_CONNECTION = 100; - private static final int METHODID_CREATE_DATABASE_CONNECTION = 101; - private static final int METHODID_UPDATE_DATABASE_CONNECTION = 102; - private static final int METHODID_DELETE_DATABASE_CONNECTION = 103; - private static final int METHODID_TEST_DATABASE_CONNECTION = 104; - private static final int METHODID_EXECUTE_SQL = 105; + private static final int METHODID_UPDATE_ODB_DNS_ZONE = 52; + private static final int METHODID_DELETE_ODB_DNS_ZONE = 53; + private static final int METHODID_LIST_EXADB_VM_CLUSTERS = 54; + private static final int METHODID_GET_EXADB_VM_CLUSTER = 55; + private static final int METHODID_CREATE_EXADB_VM_CLUSTER = 56; + private static final int METHODID_DELETE_EXADB_VM_CLUSTER = 57; + private static final int METHODID_UPDATE_EXADB_VM_CLUSTER = 58; + private static final int METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER = 59; + private static final int METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS = 60; + private static final int METHODID_GET_EXASCALE_DB_STORAGE_VAULT = 61; + private static final int METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT = 62; + private static final int METHODID_UPDATE_EXASCALE_DB_STORAGE_VAULT = 63; + private static final int METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT = 64; + private static final int METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES = 65; + private static final int METHODID_LIST_DB_SYSTEM_COMPUTE_PERFORMANCES = 66; + private static final int METHODID_LIST_DATABASES = 67; + private static final int METHODID_GET_DATABASE = 68; + private static final int METHODID_LIST_PLUGGABLE_DATABASES = 69; + private static final int METHODID_GET_PLUGGABLE_DATABASE = 70; + private static final int METHODID_LIST_DB_SYSTEMS = 71; + private static final int METHODID_GET_DB_SYSTEM = 72; + private static final int METHODID_CREATE_DB_SYSTEM = 73; + private static final int METHODID_UPDATE_DB_SYSTEM = 74; + private static final int METHODID_DELETE_DB_SYSTEM = 75; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENTS = 76; + private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT = 77; + private static final int METHODID_CREATE_GOLDENGATE_DEPLOYMENT = 78; + private static final int METHODID_UPDATE_GOLDENGATE_DEPLOYMENT = 79; + private static final int METHODID_DELETE_GOLDENGATE_DEPLOYMENT = 80; + private static final int METHODID_STOP_GOLDENGATE_DEPLOYMENT = 81; + private static final int METHODID_START_GOLDENGATE_DEPLOYMENT = 82; + private static final int METHODID_LIST_GOLDENGATE_CONNECTIONS = 83; + private static final int METHODID_GET_GOLDENGATE_CONNECTION = 84; + private static final int METHODID_CREATE_GOLDENGATE_CONNECTION = 85; + private static final int METHODID_UPDATE_GOLDENGATE_CONNECTION = 86; + private static final int METHODID_DELETE_GOLDENGATE_CONNECTION = 87; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS = 88; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES = 89; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS = 90; + private static final int METHODID_LIST_GOLDENGATE_CONNECTION_TYPES = 91; + private static final int METHODID_LIST_DB_VERSIONS = 92; + private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 93; + private static final int METHODID_LIST_GOLDENGATE_CONNECTION_ASSIGNMENTS = 94; + private static final int METHODID_GET_GOLDENGATE_CONNECTION_ASSIGNMENT = 95; + private static final int METHODID_CREATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 96; + private static final int METHODID_UPDATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 97; + private static final int METHODID_DELETE_GOLDENGATE_CONNECTION_ASSIGNMENT = 98; + private static final int METHODID_TEST_GOLDENGATE_CONNECTION_ASSIGNMENT = 99; + private static final int METHODID_LIST_DATABASE_CONNECTIONS = 100; + private static final int METHODID_GET_DATABASE_CONNECTION = 101; + private static final int METHODID_CREATE_DATABASE_CONNECTION = 102; + private static final int METHODID_UPDATE_DATABASE_CONNECTION = 103; + private static final int METHODID_DELETE_DATABASE_CONNECTION = 104; + private static final int METHODID_TEST_DATABASE_CONNECTION = 105; + private static final int METHODID_EXECUTE_SQL = 106; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -13858,6 +13975,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.oracledatabase.v1.CreateOdbDnsZoneRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_ODB_DNS_ZONE: + serviceImpl.updateOdbDnsZone( + (com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_ODB_DNS_ZONE: serviceImpl.deleteOdbDnsZone( (com.google.cloud.oracledatabase.v1.DeleteOdbDnsZoneRequest) request, @@ -14562,6 +14684,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.oracledatabase.v1.CreateOdbDnsZoneRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_ODB_DNS_ZONE))) + .addMethod( + getUpdateOdbDnsZoneMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ODB_DNS_ZONE))) .addMethod( getDeleteOdbDnsZoneMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -15035,6 +15163,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListOdbDnsZonesMethod()) .addMethod(getGetOdbDnsZoneMethod()) .addMethod(getCreateOdbDnsZoneMethod()) + .addMethod(getUpdateOdbDnsZoneMethod()) .addMethod(getDeleteOdbDnsZoneMethod()) .addMethod(getListExadbVmClustersMethod()) .addMethod(getGetExadbVmClusterMethod()) diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbDnsZoneProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbDnsZoneProto.java index 8417a076dd16..f8223e5836e2 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbDnsZoneProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbDnsZoneProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_GetOdbDnsZoneRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_GetOdbDnsZoneRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -80,15 +84,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "1google/cloud/oracledatabase/v1/odb_dns_zone.proto\022\036google.cloud.oracledatabase" + ".v1\032\037google/api/field_behavior.proto\032\033go" - + "ogle/api/field_info.proto\032\031google/api/re" - + "source.proto\032\037google/protobuf/timestamp.proto\"\306\004\n\n" + + "ogle/api/field_info.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\306\004\n\n" + "OdbDnsZone\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\025\n" + "\006domain\030\002 \001(\tB\005\342A\002\002\005\022L\n" - + "\006labels\030\003 \003(\0132" - + "6.google.cloud.oracledatabase.v1.OdbDnsZone.LabelsEntryB\004\342A\001\001\022E\n" - + "\005state\030\004 \001(\01620.g" - + "oogle.cloud.oracledatabase.v1.OdbDnsZone.StateB\004\342A\001\003\0225\n" + + "\006labels\030\003 \003(\01326.goog" + + "le.cloud.oracledatabase.v1.OdbDnsZone.LabelsEntryB\004\342A\001\001\022E\n" + + "\005state\030\004 \001(\01620.google." + + "cloud.oracledatabase.v1.OdbDnsZone.StateB\004\342A\001\003\0225\n" + "\013create_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\032-\n" + "\013LabelsEntry\022\013\n" @@ -96,18 +100,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"j\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\020\n" - + "\014PROVISIONING\020\001\022\r\n" + + "\014PROVISIONING\020\001\022\r" + + "\n" + "\tAVAILABLE\020\002\022\014\n" + "\010INACTIVE\020\003\022\017\n" + "\013TERMINATING\020\004\022\n\n" + "\006FAILED\020\005:\245\001\352A\241\001\n" - + "(oracledatabase.googleapis.com/OdbDnsZone\022\\project" - + "s/{project}/locations/{location}/odbNetw" - + "orks/{odb_network}/odbDnsZones/{odb_dns_zone}*\013odbDnsZones2\n" + + "(oracledatabase.googleapis.com/OdbDnsZone\022\\projects/{pro" + + "ject}/locations/{location}/odbNetworks/{" + + "odb_network}/odbDnsZones/{odb_dns_zone}*\013odbDnsZones2\n" + "odbDnsZone\"\345\001\n" + "\027CreateOdbDnsZoneRequest\022A\n" - + "\006parent\030\001 \001(\tB1\342A\001\002" - + "\372A*\022(oracledatabase.googleapis.com/OdbDnsZone\022\035\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(o" + + "racledatabase.googleapis.com/OdbDnsZone\022\035\n" + "\017odb_dns_zone_id\030\002 \001(\tB\004\342A\001\002\022F\n" + "\014odb_dns_zone\030\003" + " \001(\0132*.google.cloud.oracledatabase.v1.OdbDnsZoneB\004\342A\001\002\022 \n\n" @@ -118,8 +123,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\274\001\n" + "\026ListOdbDnsZonesRequest\022A\n" - + "\006parent\030\001 \001(\tB1\342A\001\002\372A*" - + "\022(oracledatabase.googleapis.com/OdbDnsZone\022\027\n" + + "\006parent\030\001 \001(" + + "\tB1\342A\001\002\372A*\022(oracledatabase.googleapis.com/OdbDnsZone\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" @@ -130,12 +135,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013unreachable\030\003 \003(\t\"W\n" + "\024GetOdbDnsZoneRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" - + "(oracledatabase.googleapis.com/OdbDnsZoneB\351\001\n" - + "\"com.google.cloud.oracledatabase.v1B\017OdbDnsZoneProtoP\001ZJcloud.googl" - + "e.com/go/oracledatabase/apiv1/oracledata" - + "basepb;oracledatabasepb\252\002\036Google.Cloud.O" - + "racleDatabase.V1\312\002\036Google\\Cloud\\OracleDa" - + "tabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "(oracledatabase.googleapis.com/OdbDnsZone\"\272\001\n" + + "\027UpdateOdbDnsZoneRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022F\n" + + "\014odb_dns_zone\030\002" + + " \001(\0132*.google.cloud.oracledatabase.v1.OdbDnsZoneB\004\342A\001\002\022 \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001B\351\001\n" + + "\"com.google.cloud.oracledatabase.v1B\017OdbDnsZ" + + "oneProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledata" + + "basepb\252\002\036Google.Cloud.OracleDatabase.V1\312" + + "\002\036Google\\Cloud\\OracleDatabase\\V1\352\002!Googl" + + "e::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -144,6 +156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_oracledatabase_v1_OdbDnsZone_descriptor = @@ -202,10 +215,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "OdbDnsZone", "RequestId", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequest.java new file mode 100644 index 000000000000..28693b4af65e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequest.java @@ -0,0 +1,1374 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/oracledatabase/v1/odb_dns_zone.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `OdbDnsZone.Update`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest} + */ +@com.google.protobuf.Generated +public final class UpdateOdbDnsZoneRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + UpdateOdbDnsZoneRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateOdbDnsZoneRequest"); + } + + // Use UpdateOdbDnsZoneRequest.newBuilder() to construct. + private UpdateOdbDnsZoneRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateOdbDnsZoneRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.class, + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int ODB_DNS_ZONE_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.OdbDnsZone odbDnsZone_; + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbDnsZone field is set. + */ + @java.lang.Override + public boolean hasOdbDnsZone() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbDnsZone. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbDnsZone getOdbDnsZone() { + return odbDnsZone_ == null + ? com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance() + : odbDnsZone_; + } + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder getOdbDnsZoneOrBuilder() { + return odbDnsZone_ == null + ? com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance() + : odbDnsZone_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores the second request. This prevents clients from
+   * accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores the second request. This prevents clients from
+   * accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getOdbDnsZone()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOdbDnsZone()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest other = + (com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasOdbDnsZone() != other.hasOdbDnsZone()) return false; + if (hasOdbDnsZone()) { + if (!getOdbDnsZone().equals(other.getOdbDnsZone())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasOdbDnsZone()) { + hash = (37 * hash) + ODB_DNS_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getOdbDnsZone().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request for `OdbDnsZone.Update`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.class, + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetOdbDnsZoneFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + odbDnsZone_ = null; + if (odbDnsZoneBuilder_ != null) { + odbDnsZoneBuilder_.dispose(); + odbDnsZoneBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest build() { + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest buildPartial() { + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest result = + new com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.odbDnsZone_ = odbDnsZoneBuilder_ == null ? odbDnsZone_ : odbDnsZoneBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest other) { + if (other == com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasOdbDnsZone()) { + mergeOdbDnsZone(other.getOdbDnsZone()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetOdbDnsZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private 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. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_; + } + + private com.google.cloud.oracledatabase.v1.OdbDnsZone odbDnsZone_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.OdbDnsZone, + com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder, + com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder> + odbDnsZoneBuilder_; + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbDnsZone field is set. + */ + public boolean hasOdbDnsZone() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbDnsZone. + */ + public com.google.cloud.oracledatabase.v1.OdbDnsZone getOdbDnsZone() { + if (odbDnsZoneBuilder_ == null) { + return odbDnsZone_ == null + ? com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance() + : odbDnsZone_; + } else { + return odbDnsZoneBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOdbDnsZone(com.google.cloud.oracledatabase.v1.OdbDnsZone value) { + if (odbDnsZoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + odbDnsZone_ = value; + } else { + odbDnsZoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOdbDnsZone( + com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder builderForValue) { + if (odbDnsZoneBuilder_ == null) { + odbDnsZone_ = builderForValue.build(); + } else { + odbDnsZoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOdbDnsZone(com.google.cloud.oracledatabase.v1.OdbDnsZone value) { + if (odbDnsZoneBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && odbDnsZone_ != null + && odbDnsZone_ != com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance()) { + getOdbDnsZoneBuilder().mergeFrom(value); + } else { + odbDnsZone_ = value; + } + } else { + odbDnsZoneBuilder_.mergeFrom(value); + } + if (odbDnsZone_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOdbDnsZone() { + bitField0_ = (bitField0_ & ~0x00000002); + odbDnsZone_ = null; + if (odbDnsZoneBuilder_ != null) { + odbDnsZoneBuilder_.dispose(); + odbDnsZoneBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder getOdbDnsZoneBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetOdbDnsZoneFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder getOdbDnsZoneOrBuilder() { + if (odbDnsZoneBuilder_ != null) { + return odbDnsZoneBuilder_.getMessageOrBuilder(); + } else { + return odbDnsZone_ == null + ? com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance() + : odbDnsZone_; + } + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.OdbDnsZone, + com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder, + com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder> + internalGetOdbDnsZoneFieldBuilder() { + if (odbDnsZoneBuilder_ == null) { + odbDnsZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.OdbDnsZone, + com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder, + com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder>( + getOdbDnsZone(), getParentForChildren(), isClean()); + odbDnsZone_ = null; + } + return odbDnsZoneBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + private static final com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest(); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOdbDnsZoneRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequestOrBuilder.java new file mode 100644 index 000000000000..c61ef23cb421 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequestOrBuilder.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/oracledatabase/v1/odb_dns_zone.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.oracledatabase.v1; + +@com.google.protobuf.Generated +public interface UpdateOdbDnsZoneRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbDnsZone field is set. + */ + boolean hasOdbDnsZone(); + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbDnsZone. + */ + com.google.cloud.oracledatabase.v1.OdbDnsZone getOdbDnsZone(); + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder getOdbDnsZoneOrBuilder(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores the second request. This prevents clients from
+   * accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores the second request. This prevents clients from
+   * accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java index 46a5ec6f1340..e4dbb77743a9 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java @@ -595,7 +595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",oracledatabase.googleapis.com/CloudVmCluster\"t\n" + "-DisableExadbVmClusterIdentityConnectorRequest\022C\n" + "\004name\030\001 \001(\tB5\342A\001\002\372A.\n" - + ",oracledatabase.googleapis.com/ExadbVmCluster2\311\323\001\n" + + ",oracledatabase.googleapis.com/ExadbVmCluster2\326\325\001\n" + "\016OracleDatabase\022\204\002\n" + "\037ListCloudExadataInfrastructures\022F.google." + "cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest\032G.google.cloud.or" @@ -901,375 +901,382 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tionMetadata\332A#parent,odb_dns_zone,odb_d" + "ns_zone_id\202\323\344\223\002M\"=/v1/{parent=projects/*" + "/locations/*/odbNetworks/*}/odbDnsZones:" - + "\014odb_dns_zone\022\345\001\n\020DeleteOdbDnsZone\0227.goo" - + "gle.cloud.oracledatabase.v1.DeleteOdbDns" + + "\014odb_dns_zone\022\212\002\n\020UpdateOdbDnsZone\0227.goo" + + "gle.cloud.oracledatabase.v1.UpdateOdbDns" + "ZoneRequest\032\035.google.longrunning.Operati" - + "on\"y\312A*\n\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\002?*=/v1/{name=projec" - + "ts/*/locations/*/odbNetworks/*/odbDnsZon" - + "es/*}\022\324\001\n\023ListExadbVmClusters\022:.google.c" - + "loud.oracledatabase.v1.ListExadbVmCluste" - + "rsRequest\032;.google.cloud.oracledatabase." - + "v1.ListExadbVmClustersResponse\"D\332A\006paren" - + "t\202\323\344\223\0025\0223/v1/{parent=projects/*/location" - + "s/*}/exadbVmClusters\022\301\001\n\021GetExadbVmClust" - + "er\0228.google.cloud.oracledatabase.v1.GetE" - + "xadbVmClusterRequest\032..google.cloud.orac" - + "ledatabase.v1.ExadbVmCluster\"B\332A\004name\202\323\344" - + "\223\0025\0223/v1/{name=projects/*/locations/*/ex" - + "adbVmClusters/*}\022\226\002\n\024CreateExadbVmCluste" - + "r\022;.google.cloud.oracledatabase.v1.Creat" - + "eExadbVmClusterRequest\032\035.google.longrunn" - + "ing.Operation\"\241\001\312A#\n\016ExadbVmCluster\022\021Ope" - + "rationMetadata\332A+parent,exadb_vm_cluster" - + ",exadb_vm_cluster_id\202\323\344\223\002G\"3/v1/{parent=" - + "projects/*/locations/*}/exadbVmClusters:" - + "\020exadb_vm_cluster\022\343\001\n\024DeleteExadbVmClust" - + "er\022;.google.cloud.oracledatabase.v1.Dele" - + "teExadbVmClusterRequest\032\035.google.longrun" - + "ning.Operation\"o\312A*\n\025google.protobuf.Emp" - + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\0025*3/v1/" - + "{name=projects/*/locations/*/exadbVmClus" - + "ters/*}\022\230\002\n\024UpdateExadbVmCluster\022;.googl" - + "e.cloud.oracledatabase.v1.UpdateExadbVmC" - + "lusterRequest\032\035.google.longrunning.Opera" - + "tion\"\243\001\312A#\n\016ExadbVmCluster\022\021OperationMet" - + "adata\332A\034exadb_vm_cluster,update_mask\202\323\344\223" - + "\002X2D/v1/{exadb_vm_cluster.name=projects/" - + "*/locations/*/exadbVmClusters/*}:\020exadb_" - + "vm_cluster\022\233\002\n\"RemoveVirtualMachineExadb" - + "VmCluster\022I.google.cloud.oracledatabase." - + "v1.RemoveVirtualMachineExadbVmClusterReq" - + "uest\032\035.google.longrunning.Operation\"\212\001\312A" - + "#\n\016ExadbVmCluster\022\021OperationMetadata\332A\016n" - + "ame,hostnames\202\323\344\223\002M\"H/v1/{name=projects/" - + "*/locations/*/exadbVmClusters/*}:removeV" - + "irtualMachine:\001*\022\364\001\n\033ListExascaleDbStora" - + "geVaults\022B.google.cloud.oracledatabase.v" - + "1.ListExascaleDbStorageVaultsRequest\032C.g" - + "oogle.cloud.oracledatabase.v1.ListExasca" - + "leDbStorageVaultsResponse\"L\332A\006parent\202\323\344\223" - + "\002=\022;/v1/{parent=projects/*/locations/*}/" - + "exascaleDbStorageVaults\022\341\001\n\031GetExascaleD" - + "bStorageVault\022@.google.cloud.oracledatab" - + "ase.v1.GetExascaleDbStorageVaultRequest\032" - + "6.google.cloud.oracledatabase.v1.Exascal" - + "eDbStorageVault\"J\332A\004name\202\323\344\223\002=\022;/v1/{nam" - + "e=projects/*/locations/*/exascaleDbStora" - + "geVaults/*}\022\321\002\n\034CreateExascaleDbStorageV" - + "ault\022C.google.cloud.oracledatabase.v1.Cr" - + "eateExascaleDbStorageVaultRequest\032\035.goog" - + "le.longrunning.Operation\"\314\001\312A+\n\026Exascale" - + "DbStorageVault\022\021OperationMetadata\332A=pare" - + "nt,exascale_db_storage_vault,exascale_db" - + "_storage_vault_id\202\323\344\223\002X\";/v1/{parent=pro" - + "jects/*/locations/*}/exascaleDbStorageVa" - + "ults:\031exascale_db_storage_vault\022\323\002\n\034Upda" - + "teExascaleDbStorageVault\022C.google.cloud." - + "oracledatabase.v1.UpdateExascaleDbStorag" - + "eVaultRequest\032\035.google.longrunning.Opera" - + "tion\"\316\001\312A+\n\026ExascaleDbStorageVault\022\021Oper" - + "ationMetadata\332A%exascale_db_storage_vaul" - + "t,update_mask\202\323\344\223\002r2U/v1/{exascale_db_st" - + "orage_vault.name=projects/*/locations/*/" - + "exascaleDbStorageVaults/*}:\031exascale_db_" - + "storage_vault\022\373\001\n\034DeleteExascaleDbStorag" - + "eVault\022C.google.cloud.oracledatabase.v1." - + "DeleteExascaleDbStorageVaultRequest\032\035.go" - + "ogle.longrunning.Operation\"w\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002=*;/v1/{name=projects/*/locations/*" - + "/exascaleDbStorageVaults/*}\022\204\002\n\037ListDbSy" - + "stemInitialStorageSizes\022F.google.cloud.o" - + "racledatabase.v1.ListDbSystemInitialStor" - + "ageSizesRequest\032G.google.cloud.oracledat" - + "abase.v1.ListDbSystemInitialStorageSizes" - + "Response\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=p" - + "rojects/*/locations/*}/dbSystemInitialSt" - + "orageSizes\022\204\002\n\037ListDbSystemComputePerfor" - + "mances\022F.google.cloud.oracledatabase.v1." - + "ListDbSystemComputePerformancesRequest\032G" + + "on\"\235\001\312A\037\n\nOdbDnsZone\022\021OperationMetadata\332" + + "A\030odb_dns_zone,update_mask\202\323\344\223\002Z2J/v1/{o" + + "db_dns_zone.name=projects/*/locations/*/" + + "odbNetworks/*/odbDnsZones/*}:\014odb_dns_zo" + + "ne\022\345\001\n\020DeleteOdbDnsZone\0227.google.cloud.o" + + "racledatabase.v1.DeleteOdbDnsZoneRequest" + + "\032\035.google.longrunning.Operation\"y\312A*\n\025go" + + "ogle.protobuf.Empty\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\002?*=/v1/{name=projects/*/locati" + + "ons/*/odbNetworks/*/odbDnsZones/*}\022\324\001\n\023L" + + "istExadbVmClusters\022:.google.cloud.oracle" + + "database.v1.ListExadbVmClustersRequest\032;" + + ".google.cloud.oracledatabase.v1.ListExad" + + "bVmClustersResponse\"D\332A\006parent\202\323\344\223\0025\0223/v" + + "1/{parent=projects/*/locations/*}/exadbV" + + "mClusters\022\301\001\n\021GetExadbVmCluster\0228.google" + + ".cloud.oracledatabase.v1.GetExadbVmClust" + + "erRequest\032..google.cloud.oracledatabase." + + "v1.ExadbVmCluster\"B\332A\004name\202\323\344\223\0025\0223/v1/{n" + + "ame=projects/*/locations/*/exadbVmCluste" + + "rs/*}\022\226\002\n\024CreateExadbVmCluster\022;.google." + + "cloud.oracledatabase.v1.CreateExadbVmClu" + + "sterRequest\032\035.google.longrunning.Operati" + + "on\"\241\001\312A#\n\016ExadbVmCluster\022\021OperationMetad" + + "ata\332A+parent,exadb_vm_cluster,exadb_vm_c" + + "luster_id\202\323\344\223\002G\"3/v1/{parent=projects/*/" + + "locations/*}/exadbVmClusters:\020exadb_vm_c" + + "luster\022\343\001\n\024DeleteExadbVmCluster\022;.google" + + ".cloud.oracledatabase.v1.DeleteExadbVmCl" + + "usterRequest\032\035.google.longrunning.Operat" + + "ion\"o\312A*\n\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\0025*3/v1/{name=proje" + + "cts/*/locations/*/exadbVmClusters/*}\022\230\002\n" + + "\024UpdateExadbVmCluster\022;.google.cloud.ora" + + "cledatabase.v1.UpdateExadbVmClusterReque" + + "st\032\035.google.longrunning.Operation\"\243\001\312A#\n" + + "\016ExadbVmCluster\022\021OperationMetadata\332A\034exa" + + "db_vm_cluster,update_mask\202\323\344\223\002X2D/v1/{ex" + + "adb_vm_cluster.name=projects/*/locations" + + "/*/exadbVmClusters/*}:\020exadb_vm_cluster\022" + + "\233\002\n\"RemoveVirtualMachineExadbVmCluster\022I" + + ".google.cloud.oracledatabase.v1.RemoveVi" + + "rtualMachineExadbVmClusterRequest\032\035.goog" + + "le.longrunning.Operation\"\212\001\312A#\n\016ExadbVmC" + + "luster\022\021OperationMetadata\332A\016name,hostnam" + + "es\202\323\344\223\002M\"H/v1/{name=projects/*/locations" + + "/*/exadbVmClusters/*}:removeVirtualMachi" + + "ne:\001*\022\364\001\n\033ListExascaleDbStorageVaults\022B." + + "google.cloud.oracledatabase.v1.ListExasc" + + "aleDbStorageVaultsRequest\032C.google.cloud" + + ".oracledatabase.v1.ListExascaleDbStorage" + + "VaultsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{pa" + + "rent=projects/*/locations/*}/exascaleDbS" + + "torageVaults\022\341\001\n\031GetExascaleDbStorageVau" + + "lt\022@.google.cloud.oracledatabase.v1.GetE" + + "xascaleDbStorageVaultRequest\0326.google.cl" + + "oud.oracledatabase.v1.ExascaleDbStorageV" + + "ault\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/" + + "*/locations/*/exascaleDbStorageVaults/*}" + + "\022\321\002\n\034CreateExascaleDbStorageVault\022C.goog" + + "le.cloud.oracledatabase.v1.CreateExascal" + + "eDbStorageVaultRequest\032\035.google.longrunn" + + "ing.Operation\"\314\001\312A+\n\026ExascaleDbStorageVa" + + "ult\022\021OperationMetadata\332A=parent,exascale" + + "_db_storage_vault,exascale_db_storage_va" + + "ult_id\202\323\344\223\002X\";/v1/{parent=projects/*/loc" + + "ations/*}/exascaleDbStorageVaults:\031exasc" + + "ale_db_storage_vault\022\323\002\n\034UpdateExascaleD" + + "bStorageVault\022C.google.cloud.oracledatab" + + "ase.v1.UpdateExascaleDbStorageVaultReque" + + "st\032\035.google.longrunning.Operation\"\316\001\312A+\n" + + "\026ExascaleDbStorageVault\022\021OperationMetada" + + "ta\332A%exascale_db_storage_vault,update_ma" + + "sk\202\323\344\223\002r2U/v1/{exascale_db_storage_vault" + + ".name=projects/*/locations/*/exascaleDbS" + + "torageVaults/*}:\031exascale_db_storage_vau" + + "lt\022\373\001\n\034DeleteExascaleDbStorageVault\022C.go" + + "ogle.cloud.oracledatabase.v1.DeleteExasc" + + "aleDbStorageVaultRequest\032\035.google.longru" + + "nning.Operation\"w\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002=*;/v1" + + "/{name=projects/*/locations/*/exascaleDb" + + "StorageVaults/*}\022\204\002\n\037ListDbSystemInitial" + + "StorageSizes\022F.google.cloud.oracledataba" + + "se.v1.ListDbSystemInitialStorageSizesReq" + + "uest\032G.google.cloud.oracledatabase.v1.Li" + + "stDbSystemInitialStorageSizesResponse\"P\332" + + "A\006parent\202\323\344\223\002A\022?/v1/{parent=projects/*/l" + + "ocations/*}/dbSystemInitialStorageSizes\022" + + "\204\002\n\037ListDbSystemComputePerformances\022F.go" + + "ogle.cloud.oracledatabase.v1.ListDbSyste" + + "mComputePerformancesRequest\032G.google.clo" + + "ud.oracledatabase.v1.ListDbSystemCompute" + + "PerformancesResponse\"P\332A\006parent\202\323\344\223\002A\022?/" + + "v1/{parent=projects/*/locations/*}/dbSys" + + "temComputePerformances\022\274\001\n\rListDatabases" + + "\0224.google.cloud.oracledatabase.v1.ListDa" + + "tabasesRequest\0325.google.cloud.oracledata" + + "base.v1.ListDatabasesResponse\">\332A\006parent" + + "\202\323\344\223\002/\022-/v1/{parent=projects/*/locations" + + "/*}/databases\022\251\001\n\013GetDatabase\0222.google.c" + + "loud.oracledatabase.v1.GetDatabaseReques" + + "t\032(.google.cloud.oracledatabase.v1.Datab" + + "ase\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*" + + "/locations/*/databases/*}\022\340\001\n\026ListPlugga" + + "bleDatabases\022=.google.cloud.oracledataba" + + "se.v1.ListPluggableDatabasesRequest\032>.go" + + "ogle.cloud.oracledatabase.v1.ListPluggab" + + "leDatabasesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v" + + "1/{parent=projects/*/locations/*}/plugga" + + "bleDatabases\022\315\001\n\024GetPluggableDatabase\022;." + + "google.cloud.oracledatabase.v1.GetPlugga" + + "bleDatabaseRequest\0321.google.cloud.oracle" + + "database.v1.PluggableDatabase\"E\332A\004name\202\323" + + "\344\223\0028\0226/v1/{name=projects/*/locations/*/p" + + "luggableDatabases/*}\022\274\001\n\rListDbSystems\0224" + ".google.cloud.oracledatabase.v1.ListDbSy" - + "stemComputePerformancesResponse\"P\332A\006pare" - + "nt\202\323\344\223\002A\022?/v1/{parent=projects/*/locatio" - + "ns/*}/dbSystemComputePerformances\022\274\001\n\rLi" - + "stDatabases\0224.google.cloud.oracledatabas" - + "e.v1.ListDatabasesRequest\0325.google.cloud" - + ".oracledatabase.v1.ListDatabasesResponse" - + "\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/" - + "*/locations/*}/databases\022\251\001\n\013GetDatabase" - + "\0222.google.cloud.oracledatabase.v1.GetDat" - + "abaseRequest\032(.google.cloud.oracledataba" - + "se.v1.Database\"<\332A\004name\202\323\344\223\002/\022-/v1/{name" - + "=projects/*/locations/*/databases/*}\022\340\001\n" - + "\026ListPluggableDatabases\022=.google.cloud.o" - + "racledatabase.v1.ListPluggableDatabasesR" - + "equest\032>.google.cloud.oracledatabase.v1." - + "ListPluggableDatabasesResponse\"G\332A\006paren" - + "t\202\323\344\223\0028\0226/v1/{parent=projects/*/location" - + "s/*}/pluggableDatabases\022\315\001\n\024GetPluggable" - + "Database\022;.google.cloud.oracledatabase.v" - + "1.GetPluggableDatabaseRequest\0321.google.c" - + "loud.oracledatabase.v1.PluggableDatabase" - + "\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/lo" - + "cations/*/pluggableDatabases/*}\022\274\001\n\rList" - + "DbSystems\0224.google.cloud.oracledatabase." - + "v1.ListDbSystemsRequest\0325.google.cloud.o" - + "racledatabase.v1.ListDbSystemsResponse\">" - + "\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/" - + "locations/*}/dbSystems\022\251\001\n\013GetDbSystem\0222" - + ".google.cloud.oracledatabase.v1.GetDbSys" - + "temRequest\032(.google.cloud.oracledatabase" - + ".v1.DbSystem\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=p" - + "rojects/*/locations/*/dbSystems/*}\022\351\001\n\016C" - + "reateDbSystem\0225.google.cloud.oracledatab" - + "ase.v1.CreateDbSystemRequest\032\035.google.lo" - + "ngrunning.Operation\"\200\001\312A\035\n\010DbSystem\022\021Ope" - + "rationMetadata\332A\035parent,db_system,db_sys" - + "tem_id\202\323\344\223\002:\"-/v1/{parent=projects/*/loc" - + "ations/*}/dbSystems:\tdb_system\022\353\001\n\016Updat" - + "eDbSystem\0225.google.cloud.oracledatabase." - + "v1.UpdateDbSystemRequest\032\035.google.longru" - + "nning.Operation\"\202\001\312A\035\n\010DbSystem\022\021Operati" - + "onMetadata\332A\025db_system,update_mask\202\323\344\223\002D" - + "27/v1/{db_system.name=projects/*/locatio" - + "ns/*/dbSystems/*}:\tdb_system\022\321\001\n\016DeleteD" - + "bSystem\0225.google.cloud.oracledatabase.v1" - + ".DeleteDbSystemRequest\032\035.google.longrunn" - + "ing.Operation\"i\312A*\n\025google.protobuf.Empt" - + "y\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1/{" - + "name=projects/*/locations/*/dbSystems/*}" - + "\022\354\001\n\031ListGoldengateDeployments\022@.google." - + "cloud.oracledatabase.v1.ListGoldengateDe" - + "ploymentsRequest\032A.google.cloud.oracleda" - + "tabase.v1.ListGoldengateDeploymentsRespo" - + "nse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=projec" - + "ts/*/locations/*}/goldengateDeployments\022" - + "\331\001\n\027GetGoldengateDeployment\022>.google.clo" - + "ud.oracledatabase.v1.GetGoldengateDeploy" - + "mentRequest\0324.google.cloud.oracledatabas" - + "e.v1.GoldengateDeployment\"H\332A\004name\202\323\344\223\002;" - + "\0229/v1/{name=projects/*/locations/*/golde" - + "ngateDeployments/*}\022\275\002\n\032CreateGoldengate" - + "Deployment\022A.google.cloud.oracledatabase" - + ".v1.CreateGoldengateDeploymentRequest\032\035." - + "google.longrunning.Operation\"\274\001\312A)\n\024Gold" - + "engateDeployment\022\021OperationMetadata\332A5pa" - + "rent,goldengate_deployment,goldengate_de" - + "ployment_id\202\323\344\223\002R\"9/v1/{parent=projects/" - + "*/locations/*}/goldengateDeployments:\025go" - + "ldengate_deployment\022\277\002\n\032UpdateGoldengate" - + "Deployment\022A.google.cloud.oracledatabase" - + ".v1.UpdateGoldengateDeploymentRequest\032\035." - + "google.longrunning.Operation\"\276\001\312A)\n\024Gold" - + "engateDeployment\022\021OperationMetadata\332A!go" - + "ldengate_deployment,update_mask\202\323\344\223\002h2O/" - + "v1/{goldengate_deployment.name=projects/" - + "*/locations/*/goldengateDeployments/*}:\025" - + "goldengate_deployment\022\365\001\n\032DeleteGoldenga" - + "teDeployment\022A.google.cloud.oracledataba" - + "se.v1.DeleteGoldengateDeploymentRequest\032" - + "\035.google.longrunning.Operation\"u\312A*\n\025goo" - + "gle.protobuf.Empty\022\021OperationMetadata\332A\004" - + "name\202\323\344\223\002;*9/v1/{name=projects/*/locatio" - + "ns/*/goldengateDeployments/*}\022\370\001\n\030StopGo" - + "ldengateDeployment\022?.google.cloud.oracle" - + "database.v1.StopGoldengateDeploymentRequ" - + "est\032\035.google.longrunning.Operation\"|\312A)\n" - + "\024GoldengateDeployment\022\021OperationMetadata" - + "\332A\004name\202\323\344\223\002C\">/v1/{name=projects/*/loca" - + "tions/*/goldengateDeployments/*}:stop:\001*", - "\022\373\001\n\031StartGoldengateDeployment\022@.google." - + "cloud.oracledatabase.v1.StartGoldengateD" - + "eploymentRequest\032\035.google.longrunning.Op" - + "eration\"}\312A)\n\024GoldengateDeployment\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\002D\"?/v1/{name=pr" - + "ojects/*/locations/*/goldengateDeploymen" - + "ts/*}:start:\001*\022\354\001\n\031ListGoldengateConnect" - + "ions\022@.google.cloud.oracledatabase.v1.Li" - + "stGoldengateConnectionsRequest\032A.google." - + "cloud.oracledatabase.v1.ListGoldengateCo" - + "nnectionsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/" - + "{parent=projects/*/locations/*}/goldenga" - + "teConnections\022\331\001\n\027GetGoldengateConnectio" - + "n\022>.google.cloud.oracledatabase.v1.GetGo" - + "ldengateConnectionRequest\0324.google.cloud" - + ".oracledatabase.v1.GoldengateConnection\"" - + "H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects/*/loc" - + "ations/*/goldengateConnections/*}\022\275\002\n\032Cr" - + "eateGoldengateConnection\022A.google.cloud." - + "oracledatabase.v1.CreateGoldengateConnec" - + "tionRequest\032\035.google.longrunning.Operati" - + "on\"\274\001\312A)\n\024GoldengateConnection\022\021Operatio" - + "nMetadata\332A5parent,goldengate_connection" - + ",goldengate_connection_id\202\323\344\223\002R\"9/v1/{pa" - + "rent=projects/*/locations/*}/goldengateC" - + "onnections:\025goldengate_connection\022\277\002\n\032Up" - + "dateGoldengateConnection\022A.google.cloud." - + "oracledatabase.v1.UpdateGoldengateConnec" - + "tionRequest\032\035.google.longrunning.Operati" - + "on\"\276\001\312A)\n\024GoldengateConnection\022\021Operatio" - + "nMetadata\332A!goldengate_connection,update" - + "_mask\202\323\344\223\002h2O/v1/{goldengate_connection." - + "name=projects/*/locations/*/goldengateCo" - + "nnections/*}:\025goldengate_connection\022\365\001\n\032" - + "DeleteGoldengateConnection\022A.google.clou" - + "d.oracledatabase.v1.DeleteGoldengateConn" - + "ectionRequest\032\035.google.longrunning.Opera" - + "tion\"u\312A*\n\025google.protobuf.Empty\022\021Operat" - + "ionMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=proj" - + "ects/*/locations/*/goldengateConnections" - + "/*}\022\210\002\n ListGoldengateDeploymentVersions" - + "\022G.google.cloud.oracledatabase.v1.ListGo" - + "ldengateDeploymentVersionsRequest\032H.goog" + + "stemsRequest\0325.google.cloud.oracledataba" + + "se.v1.ListDbSystemsResponse\">\332A\006parent\202\323" + + "\344\223\002/\022-/v1/{parent=projects/*/locations/*" + + "}/dbSystems\022\251\001\n\013GetDbSystem\0222.google.clo" + + "ud.oracledatabase.v1.GetDbSystemRequest\032" + + "(.google.cloud.oracledatabase.v1.DbSyste" + + "m\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/l" + + "ocations/*/dbSystems/*}\022\351\001\n\016CreateDbSyst" + + "em\0225.google.cloud.oracledatabase.v1.Crea" + + "teDbSystemRequest\032\035.google.longrunning.O" + + "peration\"\200\001\312A\035\n\010DbSystem\022\021OperationMetad" + + "ata\332A\035parent,db_system,db_system_id\202\323\344\223\002" + + ":\"-/v1/{parent=projects/*/locations/*}/d" + + "bSystems:\tdb_system\022\353\001\n\016UpdateDbSystem\0225" + + ".google.cloud.oracledatabase.v1.UpdateDb" + + "SystemRequest\032\035.google.longrunning.Opera" + + "tion\"\202\001\312A\035\n\010DbSystem\022\021OperationMetadata\332" + + "A\025db_system,update_mask\202\323\344\223\002D27/v1/{db_s" + + "ystem.name=projects/*/locations/*/dbSyst" + + "ems/*}:\tdb_system\022\321\001\n\016DeleteDbSystem\0225.g" + + "oogle.cloud.oracledatabase.v1.DeleteDbSy" + + "stemRequest\032\035.google.longrunning.Operati" + + "on\"i\312A*\n\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\332A\004name\202\323\344\223\002/*-/v1/{name=projec" + + "ts/*/locations/*/dbSystems/*}\022\354\001\n\031ListGo" + + "ldengateDeployments\022@.google.cloud.oracl" + + "edatabase.v1.ListGoldengateDeploymentsRe" + + "quest\032A.google.cloud.oracledatabase.v1.L" + + "istGoldengateDeploymentsResponse\"J\332A\006par" + + "ent\202\323\344\223\002;\0229/v1/{parent=projects/*/locati" + + "ons/*}/goldengateDeployments\022\331\001\n\027GetGold" + + "engateDeployment\022>.google.cloud.oracleda" + + "tabase.v1.GetGoldengateDeploymentRequest" + + "\0324.google.cloud.oracledatabase.v1.Golden" + + "gateDeployment\"H\332A\004name\202\323\344\223\002;\0229/v1/{name" + + "=projects/*/locations/*/goldengateDeploy" + + "ments/*}\022\275\002\n\032CreateGoldengateDeployment\022" + + "A.google.cloud.oracledatabase.v1.CreateG" + + "oldengateDeploymentRequest\032\035.google.long" + + "running.Operation\"\274\001\312A)\n\024GoldengateDeplo" + + "yment\022\021OperationMetadata\332A5parent,golden" + + "gate_deployment,goldengate_deployment_id" + + "\202\323\344\223\002R\"9/v1/{parent=projects/*/locations" + + "/*}/goldengateDeployments:\025goldengate_de" + + "ployment\022\277\002\n\032UpdateGoldengateDeployment\022" + + "A.google.cloud.oracledatabase.v1.UpdateG" + + "oldengateDeploymentRequest\032\035.google.long" + + "running.Operation\"\276\001\312A)\n\024GoldengateDeplo" + + "yment\022\021OperationMetadata\332A!goldengate_de" + + "ployment,update_mask\202\323\344\223\002h2O/v1/{goldeng" + + "ate_deployment.name=projects/*/locations" + + "/*/goldengateDeployments/*}:\025goldengate_" + + "deployment\022\365\001\n\032DeleteGoldengateDeploymen" + + "t\022A.google.cloud.oracledatabase.v1.Delet" + + "eGoldengateDeploymentRequest\032\035.google.lo" + + "ngrunning.Operation\"u\312A*\n\025google.protobu" + + "f.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002;*" + + "9/v1/{name=projects/*/locations/*/golden", + "gateDeployments/*}\022\370\001\n\030StopGoldengateDep" + + "loyment\022?.google.cloud.oracledatabase.v1" + + ".StopGoldengateDeploymentRequest\032\035.googl" + + "e.longrunning.Operation\"|\312A)\n\024Goldengate" + + "Deployment\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\002C\">/v1/{name=projects/*/locations/*/gol" + + "dengateDeployments/*}:stop:\001*\022\373\001\n\031StartG" + + "oldengateDeployment\022@.google.cloud.oracl" + + "edatabase.v1.StartGoldengateDeploymentRe" + + "quest\032\035.google.longrunning.Operation\"}\312A" + + ")\n\024GoldengateDeployment\022\021OperationMetada" + + "ta\332A\004name\202\323\344\223\002D\"?/v1/{name=projects/*/lo" + + "cations/*/goldengateDeployments/*}:start" + + ":\001*\022\354\001\n\031ListGoldengateConnections\022@.goog" + "le.cloud.oracledatabase.v1.ListGoldengat" - + "eDeploymentVersionsResponse\"Q\332A\006parent\202\323" - + "\344\223\002B\022@/v1/{parent=projects/*/locations/*" - + "}/goldengateDeploymentVersions\022\374\001\n\035ListG" - + "oldengateDeploymentTypes\022D.google.cloud." - + "oracledatabase.v1.ListGoldengateDeployme" - + "ntTypesRequest\032E.google.cloud.oracledata" - + "base.v1.ListGoldengateDeploymentTypesRes" - + "ponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=proj" - + "ects/*/locations/*}/goldengateDeployment" - + "Types\022\230\002\n$ListGoldengateDeploymentEnviro" - + "nments\022K.google.cloud.oracledatabase.v1." - + "ListGoldengateDeploymentEnvironmentsRequ" - + "est\032L.google.cloud.oracledatabase.v1.Lis" - + "tGoldengateDeploymentEnvironmentsRespons" - + "e\"U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=projects" - + "/*/locations/*}/goldengateDeploymentEnvi" - + "ronments\022\374\001\n\035ListGoldengateConnectionTyp" - + "es\022D.google.cloud.oracledatabase.v1.List" - + "GoldengateConnectionTypesRequest\032E.googl" + + "eConnectionsRequest\032A.google.cloud.oracl" + + "edatabase.v1.ListGoldengateConnectionsRe" + + "sponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=pro" + + "jects/*/locations/*}/goldengateConnectio" + + "ns\022\331\001\n\027GetGoldengateConnection\022>.google." + + "cloud.oracledatabase.v1.GetGoldengateCon" + + "nectionRequest\0324.google.cloud.oracledata" + + "base.v1.GoldengateConnection\"H\332A\004name\202\323\344" + + "\223\002;\0229/v1/{name=projects/*/locations/*/go" + + "ldengateConnections/*}\022\275\002\n\032CreateGoldeng" + + "ateConnection\022A.google.cloud.oracledatab" + + "ase.v1.CreateGoldengateConnectionRequest" + + "\032\035.google.longrunning.Operation\"\274\001\312A)\n\024G" + + "oldengateConnection\022\021OperationMetadata\332A" + + "5parent,goldengate_connection,goldengate" + + "_connection_id\202\323\344\223\002R\"9/v1/{parent=projec" + + "ts/*/locations/*}/goldengateConnections:" + + "\025goldengate_connection\022\277\002\n\032UpdateGoldeng" + + "ateConnection\022A.google.cloud.oracledatab" + + "ase.v1.UpdateGoldengateConnectionRequest" + + "\032\035.google.longrunning.Operation\"\276\001\312A)\n\024G" + + "oldengateConnection\022\021OperationMetadata\332A" + + "!goldengate_connection,update_mask\202\323\344\223\002h" + + "2O/v1/{goldengate_connection.name=projec" + + "ts/*/locations/*/goldengateConnections/*" + + "}:\025goldengate_connection\022\365\001\n\032DeleteGolde" + + "ngateConnection\022A.google.cloud.oracledat" + + "abase.v1.DeleteGoldengateConnectionReque" + + "st\032\035.google.longrunning.Operation\"u\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\002;*9/v1/{name=projects/*/loca" + + "tions/*/goldengateConnections/*}\022\210\002\n Lis" + + "tGoldengateDeploymentVersions\022G.google.c" + + "loud.oracledatabase.v1.ListGoldengateDep" + + "loymentVersionsRequest\032H.google.cloud.or" + + "acledatabase.v1.ListGoldengateDeployment" + + "VersionsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1/{" + + "parent=projects/*/locations/*}/goldengat" + + "eDeploymentVersions\022\374\001\n\035ListGoldengateDe" + + "ploymentTypes\022D.google.cloud.oracledatab" + + "ase.v1.ListGoldengateDeploymentTypesRequ" + + "est\032E.google.cloud.oracledatabase.v1.Lis" + + "tGoldengateDeploymentTypesResponse\"N\332A\006p" + + "arent\202\323\344\223\002?\022=/v1/{parent=projects/*/loca" + + "tions/*}/goldengateDeploymentTypes\022\230\002\n$L" + + "istGoldengateDeploymentEnvironments\022K.go" + + "ogle.cloud.oracledatabase.v1.ListGoldeng" + + "ateDeploymentEnvironmentsRequest\032L.googl" + "e.cloud.oracledatabase.v1.ListGoldengate" - + "ConnectionTypesResponse\"N\332A\006parent\202\323\344\223\002?" - + "\022=/v1/{parent=projects/*/locations/*}/go" - + "ldengateConnectionTypes\022\300\001\n\016ListDbVersio" - + "ns\0225.google.cloud.oracledatabase.v1.List" - + "DbVersionsRequest\0326.google.cloud.oracled" - + "atabase.v1.ListDbVersionsResponse\"?\332A\006pa" - + "rent\202\323\344\223\0020\022./v1/{parent=projects/*/locat" - + "ions/*}/dbVersions\022\354\001\n\031ListDatabaseChara" - + "cterSets\022@.google.cloud.oracledatabase.v" - + "1.ListDatabaseCharacterSetsRequest\032A.goo" - + "gle.cloud.oracledatabase.v1.ListDatabase" - + "CharacterSetsResponse\"J\332A\006parent\202\323\344\223\002;\0229" - + "/v1/{parent=projects/*/locations/*}/data" - + "baseCharacterSets\022\224\002\n#ListGoldengateConn" - + "ectionAssignments\022J.google.cloud.oracled" - + "atabase.v1.ListGoldengateConnectionAssig" - + "nmentsRequest\032K.google.cloud.oracledatab" - + "ase.v1.ListGoldengateConnectionAssignmen" - + "tsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{parent" - + "=projects/*/locations/*}/goldengateConne" - + "ctionAssignments\022\201\002\n!GetGoldengateConnec" - + "tionAssignment\022H.google.cloud.oracledata" - + "base.v1.GetGoldengateConnectionAssignmen" - + "tRequest\032>.google.cloud.oracledatabase.v" - + "1.GoldengateConnectionAssignment\"R\332A\004nam" - + "e\202\323\344\223\002E\022C/v1/{name=projects/*/locations/" - + "*/goldengateConnectionAssignments/*}\022\206\003\n" - + "$CreateGoldengateConnectionAssignment\022K." - + "google.cloud.oracledatabase.v1.CreateGol" - + "dengateConnectionAssignmentRequest\032\035.goo" - + "gle.longrunning.Operation\"\361\001\312A3\n\036Goldeng" - + "ateConnectionAssignment\022\021OperationMetada" - + "ta\332AKparent,goldengate_connection_assign" - + "ment,goldengate_connection_assignment_id" - + "\202\323\344\223\002g\"C/v1/{parent=projects/*/locations" - + "/*}/goldengateConnectionAssignments: gol" - + "dengate_connection_assignment\022\211\003\n$Update" - + "GoldengateConnectionAssignment\022K.google." - + "cloud.oracledatabase.v1.UpdateGoldengate" - + "ConnectionAssignmentRequest\032\035.google.lon" - + "grunning.Operation\"\364\001\312A3\n\036GoldengateConn" - + "ectionAssignment\022\021OperationMetadata\332A,go" - + "ldengate_connection_assignment,update_ma" - + "sk\202\323\344\223\002\210\0012d/v1/{goldengate_connection_as" - + "signment.name=projects/*/locations/*/gol" - + "dengateConnectionAssignments/*}: goldeng" - + "ate_connection_assignment\022\223\002\n$DeleteGold" + + "DeploymentEnvironmentsResponse\"U\332A\006paren" + + "t\202\323\344\223\002F\022D/v1/{parent=projects/*/location" + + "s/*}/goldengateDeploymentEnvironments\022\374\001" + + "\n\035ListGoldengateConnectionTypes\022D.google" + + ".cloud.oracledatabase.v1.ListGoldengateC" + + "onnectionTypesRequest\032E.google.cloud.ora" + + "cledatabase.v1.ListGoldengateConnectionT" + + "ypesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{pare" + + "nt=projects/*/locations/*}/goldengateCon" + + "nectionTypes\022\300\001\n\016ListDbVersions\0225.google" + + ".cloud.oracledatabase.v1.ListDbVersionsR" + + "equest\0326.google.cloud.oracledatabase.v1." + + "ListDbVersionsResponse\"?\332A\006parent\202\323\344\223\0020\022" + + "./v1/{parent=projects/*/locations/*}/dbV" + + "ersions\022\354\001\n\031ListDatabaseCharacterSets\022@." + + "google.cloud.oracledatabase.v1.ListDatab" + + "aseCharacterSetsRequest\032A.google.cloud.o" + + "racledatabase.v1.ListDatabaseCharacterSe" + + "tsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent" + + "=projects/*/locations/*}/databaseCharact" + + "erSets\022\224\002\n#ListGoldengateConnectionAssig" + + "nments\022J.google.cloud.oracledatabase.v1." + + "ListGoldengateConnectionAssignmentsReque" + + "st\032K.google.cloud.oracledatabase.v1.List" + + "GoldengateConnectionAssignmentsResponse\"" + + "T\332A\006parent\202\323\344\223\002E\022C/v1/{parent=projects/*" + + "/locations/*}/goldengateConnectionAssign" + + "ments\022\201\002\n!GetGoldengateConnectionAssignm" + + "ent\022H.google.cloud.oracledatabase.v1.Get" + + "GoldengateConnectionAssignmentRequest\032>." + + "google.cloud.oracledatabase.v1.Goldengat" + + "eConnectionAssignment\"R\332A\004name\202\323\344\223\002E\022C/v" + + "1/{name=projects/*/locations/*/goldengat" + + "eConnectionAssignments/*}\022\206\003\n$CreateGold" + "engateConnectionAssignment\022K.google.clou" - + "d.oracledatabase.v1.DeleteGoldengateConn" + + "d.oracledatabase.v1.CreateGoldengateConn" + "ectionAssignmentRequest\032\035.google.longrun" - + "ning.Operation\"\177\312A*\n\025google.protobuf.Emp" - + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002E*C/v1/" - + "{name=projects/*/locations/*/goldengateC" - + "onnectionAssignments/*}\022\227\002\n\"TestGoldenga" - + "teConnectionAssignment\022I.google.cloud.or" - + "acledatabase.v1.TestGoldengateConnection" - + "AssignmentRequest\032J.google.cloud.oracled" - + "atabase.v1.TestGoldengateConnectionAssig" - + "nmentResponse\"Z\332A\004name\202\323\344\223\002M\"H/v1/{name=" - + "projects/*/locations/*/goldengateConnect" - + "ionAssignments/*}:test:\001*\022\344\001\n\027ListDataba" - + "seConnections\022>.google.cloud.oracledatab" - + "ase.v1.ListDatabaseConnectionsRequest\032?." - + "google.cloud.oracledatabase.v1.ListDatab" - + "aseConnectionsResponse\"H\332A\006parent\202\323\344\223\0029\022" - + "7/v1/{parent=projects/*/locations/*}/dat" - + "abaseConnections\022\321\001\n\025GetDatabaseConnecti" - + "on\022<.google.cloud.oracledatabase.v1.GetD" - + "atabaseConnectionRequest\0322.google.cloud." - + "oracledatabase.v1.DatabaseConnection\"F\332A" - + "\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locati" - + "ons/*/databaseConnections/*}\022\257\002\n\030CreateD" - + "atabaseConnection\022?.google.cloud.oracled" - + "atabase.v1.CreateDatabaseConnectionReque" - + "st\032\035.google.longrunning.Operation\"\262\001\312A\'\n" - + "\022DatabaseConnection\022\021OperationMetadata\332A" - + "1parent,database_connection,database_con" - + "nection_id\202\323\344\223\002N\"7/v1/{parent=projects/*" - + "/locations/*}/databaseConnections:\023datab" - + "ase_connection\022\261\002\n\030UpdateDatabaseConnect" - + "ion\022?.google.cloud.oracledatabase.v1.Upd" - + "ateDatabaseConnectionRequest\032\035.google.lo" - + "ngrunning.Operation\"\264\001\312A\'\n\022DatabaseConne" - + "ction\022\021OperationMetadata\332A\037database_conn" - + "ection,update_mask\202\323\344\223\002b2K/v1/{database_" - + "connection.name=projects/*/locations/*/d" - + "atabaseConnections/*}:\023database_connecti" - + "on\022\357\001\n\030DeleteDatabaseConnection\022?.google" - + ".cloud.oracledatabase.v1.DeleteDatabaseC" - + "onnectionRequest\032\035.google.longrunning.Op" - + "eration\"s\312A*\n\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0029*7/v1/{name=p" - + "rojects/*/locations/*/databaseConnection" - + "s/*}\022\347\001\n\026TestDatabaseConnection\022=.google" - + ".cloud.oracledatabase.v1.TestDatabaseCon" - + "nectionRequest\032>.google.cloud.oracledata" - + "base.v1.TestDatabaseConnectionResponse\"N" - + "\332A\004name\202\323\344\223\002A\".google.cloud.oracledatabase.v1.List" + + "DatabaseConnectionsRequest\032?.google.clou" + + "d.oracledatabase.v1.ListDatabaseConnecti" + + "onsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{paren" + + "t=projects/*/locations/*}/databaseConnec" + + "tions\022\321\001\n\025GetDatabaseConnection\022<.google" + + ".cloud.oracledatabase.v1.GetDatabaseConn" + + "ectionRequest\0322.google.cloud.oracledatab" + + "ase.v1.DatabaseConnection\"F\332A\004name\202\323\344\223\0029" + + "\0227/v1/{name=projects/*/locations/*/datab" + + "aseConnections/*}\022\257\002\n\030CreateDatabaseConn" + + "ection\022?.google.cloud.oracledatabase.v1." + + "CreateDatabaseConnectionRequest\032\035.google" + + ".longrunning.Operation\"\262\001\312A\'\n\022DatabaseCo" + + "nnection\022\021OperationMetadata\332A1parent,dat" + + "abase_connection,database_connection_id\202" + + "\323\344\223\002N\"7/v1/{parent=projects/*/locations/" + + "*}/databaseConnections:\023database_connect" + + "ion\022\261\002\n\030UpdateDatabaseConnection\022?.googl" + + "e.cloud.oracledatabase.v1.UpdateDatabase" + + "ConnectionRequest\032\035.google.longrunning.O" + + "peration\"\264\001\312A\'\n\022DatabaseConnection\022\021Oper" + + "ationMetadata\332A\037database_connection,upda" + + "te_mask\202\323\344\223\002b2K/v1/{database_connection." + + "name=projects/*/locations/*/databaseConn" + + "ections/*}:\023database_connection\022\357\001\n\030Dele" + + "teDatabaseConnection\022?.google.cloud.orac" + + "ledatabase.v1.DeleteDatabaseConnectionRe" + + "quest\032\035.google.longrunning.Operation\"s\312A" + + "*\n\025google.protobuf.Empty\022\021OperationMetad" + + "ata\332A\004name\202\323\344\223\0029*7/v1/{name=projects/*/l" + + "ocations/*/databaseConnections/*}\022\347\001\n\026Te" + + "stDatabaseConnection\022=.google.cloud.orac" + + "ledatabase.v1.TestDatabaseConnectionRequ" + + "est\032>.google.cloud.oracledatabase.v1.Tes" + + "tDatabaseConnectionResponse\"N\332A\004name\202\323\344\223" + + "\002A\" future = + oracleDatabaseClient.updateOdbDnsZoneCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZoneLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZoneLRO.java new file mode 100644 index 000000000000..7348d38044ec --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZoneLRO.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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.OdbDnsZone; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOdbDnsZoneLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateOdbDnsZoneLRO(); + } + + public static void asyncUpdateOdbDnsZoneLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateOdbDnsZoneRequest request = + UpdateOdbDnsZoneRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setOdbDnsZone(OdbDnsZone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.updateOdbDnsZoneOperationCallable().futureCall(request); + // Do something. + OdbDnsZone response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZone.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZone.java new file mode 100644 index 000000000000..dd40c35a174a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZone.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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_sync] +import com.google.cloud.oracledatabase.v1.OdbDnsZone; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOdbDnsZone { + + public static void main(String[] args) throws Exception { + syncUpdateOdbDnsZone(); + } + + public static void syncUpdateOdbDnsZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateOdbDnsZoneRequest request = + UpdateOdbDnsZoneRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setOdbDnsZone(OdbDnsZone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OdbDnsZone response = oracleDatabaseClient.updateOdbDnsZoneAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZoneOdbdnszoneFieldmask.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZoneOdbdnszoneFieldmask.java new file mode 100644 index 000000000000..277190f1fe74 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZoneOdbdnszoneFieldmask.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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_OdbdnszoneFieldmask_sync] +import com.google.cloud.oracledatabase.v1.OdbDnsZone; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOdbDnsZoneOdbdnszoneFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateOdbDnsZoneOdbdnszoneFieldmask(); + } + + public static void syncUpdateOdbDnsZoneOdbdnszoneFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + OdbDnsZone odbDnsZone = OdbDnsZone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + OdbDnsZone response = + oracleDatabaseClient.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_OdbdnszoneFieldmask_sync] diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 100a1dc333c2..5884c90d2a00 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-orchestration-airflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.102.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-orchestration-airflow/latest/overview [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-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.103.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-orgpolicy/README.md b/java-orgpolicy/README.md index fde001eef2d0..5952a2eed2e1 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-orgpolicy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.102.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview [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-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.103.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-os-config/README.md b/java-os-config/README.md index e7504cdd4b96..ff43bece03bc 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-os-config' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.104.0' +implementation 'com.google.cloud:google-cloud-os-config:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-config/latest/overview [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-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.105.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-os-login/README.md b/java-os-login/README.md index 11a50e7ac95c..4b45991198c1 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-os-login' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.101.0' +implementation 'com.google.cloud:google-cloud-os-login:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-login/latest/overview [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-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.102.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-parallelstore/README.md b/java-parallelstore/README.md index 49d1f2c76e82..20e0051fbb86 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.65.0 + 0.66.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-parallelstore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.65.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.66.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/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-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.66.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-parametermanager/README.md b/java-parametermanager/README.md index c803a19cbe51..d6c2d1667a08 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parametermanager - 0.46.0 + 0.47.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-parametermanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.46.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.47.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/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-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.47.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-phishingprotection/README.md b/java-phishingprotection/README.md index b7de4ad29ced..3f64d4590ae4 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.133.0 + 0.134.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-phishingprotection' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.133.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.134.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.133.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.134.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-phishingprotection/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-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.133.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.134.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-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index ab59fec8e240..be01f968992d 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-policy-troubleshooter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.101.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/overview [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-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.102.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-policysimulator/README.md b/java-policysimulator/README.md index e96997ec433c..aabac6d95a79 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.81.0 + 0.82.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-policysimulator' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.81.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.82.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policysimulator/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-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.82.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-private-catalog/README.md b/java-private-catalog/README.md index 0217249e7523..b439e2ab3e12 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.104.0 + 0.105.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-private-catalog' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.104.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.105.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-private-catalog/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-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.105.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-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index 684a0051c6e6..ed3b7ad2cec6 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.56.0 + 0.57.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-privilegedaccessmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.56.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.57.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/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-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.57.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-productregistry/README.md b/java-productregistry/README.md index c61db22a1bea..456741dc54b9 100644 --- a/java-productregistry/README.md +++ b/java-productregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-productregistry - 0.8.0 + 0.9.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-productregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-productregistry:0.8.0' +implementation 'com.google.cloud:google-cloud-productregistry:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-productregistry" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-productregistry" % "0.9.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-productregistry/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-productregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-productregistry/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-productregistry/0.9.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-profiler/README.md b/java-profiler/README.md index a935af7575f3..1c72489a1c33 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-profiler' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.102.0' +implementation 'com.google.cloud:google-cloud-profiler:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-profiler/latest/overview [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-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.103.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-publicca/README.md b/java-publicca/README.md index 53b07d4a03fd..c35893719c4d 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.99.0 + 0.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-publicca' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.99.0' +implementation 'com.google.cloud:google-cloud-publicca:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-publicca/latest/overview [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-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.100.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-pubsub/README.md b/java-pubsub/README.md index ae38ceda2668..3b3595f69780 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.160.0 + 1.161.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.160.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.161.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.160.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.161.0" ``` ## Authentication @@ -398,7 +398,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/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-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.160.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.161.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-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 67eb10f86046..bb6225e3367e 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.85.0 + 0.86.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-rapidmigrationassessment' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.85.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.86.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-rapidmigrationassessment/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-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.86.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-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 7f999bb17e21..f72972f6c32a 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.99.0 + 3.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-recaptchaenterprise' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.99.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recaptchaenterprise/latest/overview [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-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.100.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-recommendations-ai/README.md b/java-recommendations-ai/README.md index a427e5042fbc..b8bd55a8c658 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.109.0 + 0.110.0 ``` @@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-recommendations-ai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.109.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.110.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.109.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.110.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommendations-ai/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-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.109.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.110.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-recommender/README.md b/java-recommender/README.md index 36026b2a0138..0b8f4f801cea 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-recommender' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.104.0' +implementation 'com.google.cloud:google-cloud-recommender:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommender/latest/overview [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-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.105.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-redis-cluster/README.md b/java-redis-cluster/README.md index 64ce52a1012f..61ea7ef2b2d1 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.74.0 + 0.75.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-redis-cluster' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.74.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.75.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis-cluster/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-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.75.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-redis/README.md b/java-redis/README.md index c2f2e27a545e..35aaa58d9100 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.105.0 + 2.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-redis' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.105.0' +implementation 'com.google.cloud:google-cloud-redis:2.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis/latest/overview [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-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.106.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-resourcemanager/README.md b/java-resourcemanager/README.md index 25a6c4b57a6e..f0ad53792e8f 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.104.0 + 1.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-resourcemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.104.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.105.0" ``` ## Authentication @@ -323,7 +323,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-resourcemanager/latest/overview [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-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.105.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-retail/README.md b/java-retail/README.md index da68076d1282..108ec5cdd337 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-retail' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.104.0' +implementation 'com.google.cloud:google-cloud-retail:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-retail/latest/overview [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-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.105.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-run/README.md b/java-run/README.md index 9ffd2b28e88f..382aa782c203 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-run' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.102.0' +implementation 'com.google.cloud:google-cloud-run:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-run/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-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.103.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-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index 6de8f7f3e577..dc88eb9c41b0 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-saasservicemgmt - 0.32.0 + 0.33.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-saasservicemgmt' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.32.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.33.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/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-saasservicemgmt.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.33.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-scheduler/README.md b/java-scheduler/README.md index 915e7dacc0e4..642eb008bb0f 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-scheduler' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.102.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-scheduler/latest/overview [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-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.103.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-secretmanager/README.md b/java-secretmanager/README.md index d2819c02e23d..97e5601c13d3 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-secretmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.102.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-secretmanager/latest/overview [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-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.103.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-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClient.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClient.java new file mode 100644 index 000000000000..63dff0ae86a8 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClient.java @@ -0,0 +1,1625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1; + +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.cloud.secretmanager.v1.stub.SecretOperationsServiceStub; +import com.google.cloud.secretmanager.v1.stub.SecretOperationsServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Secret Operations Service + * + *

Manages backups of secrets. Implements a REST model with the following objects: + * + *

    + *
  • [Backup][google.cloud.secretmanager.v1.Backup] + *
+ * + *

Note: `SecretOperationsService` is a regional service and must be called using regional + * endpoints (`secretmanager.{location}.rep.googleapis.com`). + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create()) {
+ *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+ *   Backup response = secretOperationsServiceClient.getBackup(name);
+ * }
+ * }
+ * + *

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

ListBackups

Lists Backups in a given project and location.

+ *

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

+ *
    + *
  • listBackups(ListBackupsRequest request) + *

+ *

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

+ *
    + *
  • listBackups(LocationName parent) + *

  • listBackups(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.

+ *
    + *
  • listBackupsPagedCallable() + *

  • listBackupsCallable() + *

+ *

GetBackup

Gets details of a single Backup.

+ *

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

+ *
    + *
  • getBackup(GetBackupRequest request) + *

+ *

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

+ *
    + *
  • getBackup(BackupName name) + *

  • getBackup(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.

+ *
    + *
  • getBackupCallable() + *

+ *

CreateBackup

Creates a new Backup in a given project and location.

+ *

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

+ *
    + *
  • createBackupAsync(CreateBackupRequest request) + *

+ *

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

+ *
    + *
  • createBackupAsync(LocationName parent, Backup backup, String backupId) + *

  • createBackupAsync(String parent, Backup backup, String backupId) + *

+ *

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

+ *
    + *
  • createBackupOperationCallable() + *

  • createBackupCallable() + *

+ *

UpdateBackup

Updates the parameters of a single Backup.

+ *

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

+ *
    + *
  • updateBackupAsync(UpdateBackupRequest request) + *

+ *

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

+ *
    + *
  • updateBackupAsync(Backup backup, 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.

+ *
    + *
  • updateBackupOperationCallable() + *

  • updateBackupCallable() + *

+ *

DeleteBackup

Deletes a single Backup.

+ *

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

+ *
    + *
  • deleteBackupAsync(DeleteBackupRequest request) + *

+ *

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

+ *
    + *
  • deleteBackupAsync(BackupName name) + *

  • deleteBackupAsync(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.

+ *
    + *
  • deleteBackupOperationCallable() + *

  • deleteBackupCallable() + *

+ *

RestoreBackup

Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration process, and the result of the LRO is the newly created Secret.

+ *

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

+ *
    + *
  • restoreBackupAsync(RestoreBackupRequest request) + *

+ *

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

+ *
    + *
  • restoreBackupAsync(BackupName name, LocationName destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(BackupName name, ProjectName destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(BackupName name, String destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(String name, LocationName destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(String name, ProjectName destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(String name, String destinationSecretParent, String destinationSecretId) + *

+ *

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

+ *
    + *
  • restoreBackupOperationCallable() + *

  • restoreBackupCallable() + *

+ *
+ * + *

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 + * SecretOperationsServiceSettings 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
+ * SecretOperationsServiceSettings secretOperationsServiceSettings =
+ *     SecretOperationsServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create(secretOperationsServiceSettings);
+ * }
+ * + *

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
+ * SecretOperationsServiceSettings secretOperationsServiceSettings =
+ *     SecretOperationsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create(secretOperationsServiceSettings);
+ * }
+ * + *

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
+ * SecretOperationsServiceSettings secretOperationsServiceSettings =
+ *     SecretOperationsServiceSettings.newHttpJsonBuilder().build();
+ * SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create(secretOperationsServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class SecretOperationsServiceClient implements BackgroundResource { + private final @Nullable SecretOperationsServiceSettings settings; + private final SecretOperationsServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of SecretOperationsServiceClient with default settings. */ + public static final SecretOperationsServiceClient create() throws IOException { + return create(SecretOperationsServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SecretOperationsServiceClient, 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 SecretOperationsServiceClient create(SecretOperationsServiceSettings settings) + throws IOException { + return new SecretOperationsServiceClient(settings); + } + + /** + * Constructs an instance of SecretOperationsServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(SecretOperationsServiceSettings). + */ + public static final SecretOperationsServiceClient create(SecretOperationsServiceStub stub) { + return new SecretOperationsServiceClient(stub); + } + + /** + * Constructs an instance of SecretOperationsServiceClient, 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 SecretOperationsServiceClient(SecretOperationsServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((SecretOperationsServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected SecretOperationsServiceClient(SecretOperationsServiceStub 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 @Nullable SecretOperationsServiceSettings getSettings() { + return settings; + } + + public SecretOperationsServiceStub 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. + /** + * Lists Backups in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Backup element : secretOperationsServiceClient.listBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location associated with the + * [Backups][google.cloud.secretmanager.v1.Backup], in the format + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(@Nullable LocationName parent) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Backup element : secretOperationsServiceClient.listBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location associated with the + * [Backups][google.cloud.secretmanager.v1.Backup], in the format + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(String parent) { + ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Backup element : secretOperationsServiceClient.listBackups(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 ListBackupsPagedResponse listBackups(ListBackupsRequest request) { + return listBackupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.listBackupsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Backup element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBackupsPagedCallable() { + return stub.listBackupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListBackupsResponse response =
+   *         secretOperationsServiceClient.listBackupsCallable().call(request);
+   *     for (Backup element : response.getBackupsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listBackupsCallable() { + return stub.listBackupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   Backup response = secretOperationsServiceClient.getBackup(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup], + * in the format `projects/{project}/locations/{location}/backups/{backup}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(@Nullable BackupName name) { + GetBackupRequest request = + GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   Backup response = secretOperationsServiceClient.getBackup(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup], + * in the format `projects/{project}/locations/{location}/backups/{backup}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(String name) { + GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   GetBackupRequest request =
+   *       GetBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   Backup response = secretOperationsServiceClient.getBackup(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 Backup getBackup(GetBackupRequest request) { + return getBackupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   GetBackupRequest request =
+   *       GetBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.getBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBackupCallable() { + return stub.getBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Backup backup = Backup.newBuilder().build();
+   *   String backupId = "backupId2121930365";
+   *   Backup response =
+   *       secretOperationsServiceClient.createBackupAsync(parent, backup, backupId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location where the + * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the format + * `projects/{project}/locations/{location}`. + * @param backup Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to create. + * @param backupId Required. The ID to use for the backup, which will become the final component + * of the backup's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBackupAsync( + @Nullable LocationName parent, Backup backup, String backupId) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBackup(backup) + .setBackupId(backupId) + .build(); + return createBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Backup backup = Backup.newBuilder().build();
+   *   String backupId = "backupId2121930365";
+   *   Backup response =
+   *       secretOperationsServiceClient.createBackupAsync(parent, backup, backupId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location where the + * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the format + * `projects/{project}/locations/{location}`. + * @param backup Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to create. + * @param backupId Required. The ID to use for the backup, which will become the final component + * of the backup's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBackupAsync( + String parent, Backup backup, String backupId) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(parent) + .setBackup(backup) + .setBackupId(backupId) + .build(); + return createBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   Backup response = secretOperationsServiceClient.createBackupAsync(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 createBackupAsync( + CreateBackupRequest request) { + return createBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       secretOperationsServiceClient.createBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createBackupOperationCallable() { + return stub.createBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a 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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.createBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBackupCallable() { + return stub.createBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   Backup backup = Backup.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Backup response = secretOperationsServiceClient.updateBackupAsync(backup, updateMask).get();
+   * }
+   * }
+ * + * @param backup Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with + * updated fields. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update. The fields specified + * in the `update_mask` are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then all fields + * present in the request will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBackupAsync( + Backup backup, FieldMask updateMask) { + UpdateBackupRequest request = + UpdateBackupRequest.newBuilder().setBackup(backup).setUpdateMask(updateMask).build(); + return updateBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   Backup response = secretOperationsServiceClient.updateBackupAsync(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 updateBackupAsync( + UpdateBackupRequest request) { + return updateBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       secretOperationsServiceClient.updateBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateBackupOperationCallable() { + return stub.updateBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.updateBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBackupCallable() { + return stub.updateBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   secretOperationsServiceClient.deleteBackupAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to delete, in the format `projects/{project}/locations/{location}/backups/{backup}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   secretOperationsServiceClient.deleteBackupAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to delete, in the format `projects/{project}/locations/{location}/backups/{backup}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(String name) { + DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   secretOperationsServiceClient.deleteBackupAsync(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 deleteBackupAsync( + DeleteBackupRequest request) { + return deleteBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       secretOperationsServiceClient.deleteBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteBackupOperationCallable() { + return stub.deleteBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.deleteBackupCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBackupCallable() { + return stub.deleteBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + @Nullable BackupName name, + @Nullable LocationName destinationSecretParent, + String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationSecretParent( + destinationSecretParent == null ? null : destinationSecretParent.toString()) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   ProjectName destinationSecretParent = ProjectName.of("[PROJECT]");
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + @Nullable BackupName name, + @Nullable ProjectName destinationSecretParent, + String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationSecretParent( + destinationSecretParent == null ? null : destinationSecretParent.toString()) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   String destinationSecretParent = ProjectName.of("[PROJECT]").toString();
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + @Nullable BackupName name, String destinationSecretParent, String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationSecretParent(destinationSecretParent) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + String name, @Nullable LocationName destinationSecretParent, String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name) + .setDestinationSecretParent( + destinationSecretParent == null ? null : destinationSecretParent.toString()) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   ProjectName destinationSecretParent = ProjectName.of("[PROJECT]");
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + String name, @Nullable ProjectName destinationSecretParent, String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name) + .setDestinationSecretParent( + destinationSecretParent == null ? null : destinationSecretParent.toString()) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   String destinationSecretParent = ProjectName.of("[PROJECT]").toString();
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + String name, String destinationSecretParent, String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name) + .setDestinationSecretParent(destinationSecretParent) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   RestoreBackupRequest request =
+   *       RestoreBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDestinationSecretId("destinationSecretId171779609")
+   *           .setKmsKeyName(
+   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
+   *                   .toString())
+   *           .build();
+   *   Secret response = secretOperationsServiceClient.restoreBackupAsync(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 restoreBackupAsync( + RestoreBackupRequest request) { + return restoreBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   RestoreBackupRequest request =
+   *       RestoreBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDestinationSecretId("destinationSecretId171779609")
+   *           .setKmsKeyName(
+   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       secretOperationsServiceClient.restoreBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Secret response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + restoreBackupOperationCallable() { + return stub.restoreBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

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 (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   RestoreBackupRequest request =
+   *       RestoreBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDestinationSecretId("destinationSecretId171779609")
+   *           .setKmsKeyName(
+   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.restoreBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable restoreBackupCallable() { + return stub.restoreBackupCallable(); + } + + @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 ListBackupsPagedResponse + extends AbstractPagedListResponse< + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, + ListBackupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBackupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListBackupsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListBackupsPagedResponse(ListBackupsPage page) { + super(page, ListBackupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBackupsPage + extends AbstractPage { + + private ListBackupsPage( + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { + super(context, response); + } + + private static ListBackupsPage createEmptyPage() { + return new ListBackupsPage(null, null); + } + + @Override + protected ListBackupsPage createPage( + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { + return new ListBackupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBackupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, + ListBackupsFixedSizeCollection> { + + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBackupsFixedSizeCollection createEmptyCollection() { + return new ListBackupsFixedSizeCollection(null, 0); + } + + @Override + protected ListBackupsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListBackupsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceSettings.java new file mode 100644 index 000000000000..5e0202816dbf --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceSettings.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. + */ + +package com.google.cloud.secretmanager.v1; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +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.cloud.secretmanager.v1.stub.SecretOperationsServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SecretOperationsServiceClient}. + * + *

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

    + *
  • The default service address (secretmanager.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 getBackup: + * + *

{@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
+ * SecretOperationsServiceSettings.Builder secretOperationsServiceSettingsBuilder =
+ *     SecretOperationsServiceSettings.newBuilder();
+ * secretOperationsServiceSettingsBuilder
+ *     .getBackupSettings()
+ *     .setRetrySettings(
+ *         secretOperationsServiceSettingsBuilder
+ *             .getBackupSettings()
+ *             .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());
+ * SecretOperationsServiceSettings secretOperationsServiceSettings =
+ *     secretOperationsServiceSettingsBuilder.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 createBackup: + * + *

{@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
+ * SecretOperationsServiceSettings.Builder secretOperationsServiceSettingsBuilder =
+ *     SecretOperationsServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * secretOperationsServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +public class SecretOperationsServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listBackups. */ + public PagedCallSettings + listBackupsSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).listBackupsSettings(); + } + + /** Returns the object with the settings used for calls to getBackup. */ + public UnaryCallSettings getBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).getBackupSettings(); + } + + /** Returns the object with the settings used for calls to createBackup. */ + public UnaryCallSettings createBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).createBackupSettings(); + } + + /** Returns the object with the settings used for calls to createBackup. */ + public OperationCallSettings + createBackupOperationSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()) + .createBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateBackup. */ + public UnaryCallSettings updateBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).updateBackupSettings(); + } + + /** Returns the object with the settings used for calls to updateBackup. */ + public OperationCallSettings + updateBackupOperationSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()) + .updateBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public UnaryCallSettings deleteBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).deleteBackupSettings(); + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public OperationCallSettings + deleteBackupOperationSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()) + .deleteBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to restoreBackup. */ + public UnaryCallSettings restoreBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).restoreBackupSettings(); + } + + /** Returns the object with the settings used for calls to restoreBackup. */ + public OperationCallSettings + restoreBackupOperationSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()) + .restoreBackupOperationSettings(); + } + + public static final SecretOperationsServiceSettings create( + SecretOperationsServiceStubSettings stub) throws IOException { + return new SecretOperationsServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SecretOperationsServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SecretOperationsServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SecretOperationsServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SecretOperationsServiceStubSettings.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(@Nullable 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 SecretOperationsServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SecretOperationsServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(SecretOperationsServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SecretOperationsServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SecretOperationsServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SecretOperationsServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SecretOperationsServiceStubSettings.newHttpJsonBuilder()); + } + + public SecretOperationsServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SecretOperationsServiceStubSettings.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 listBackups. */ + public PagedCallSettings.Builder< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + listBackupsSettings() { + return getStubSettingsBuilder().listBackupsSettings(); + } + + /** Returns the builder for the settings used for calls to getBackup. */ + public UnaryCallSettings.Builder getBackupSettings() { + return getStubSettingsBuilder().getBackupSettings(); + } + + /** Returns the builder for the settings used for calls to createBackup. */ + public UnaryCallSettings.Builder createBackupSettings() { + return getStubSettingsBuilder().createBackupSettings(); + } + + /** Returns the builder for the settings used for calls to createBackup. */ + public OperationCallSettings.Builder + createBackupOperationSettings() { + return getStubSettingsBuilder().createBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateBackup. */ + public UnaryCallSettings.Builder updateBackupSettings() { + return getStubSettingsBuilder().updateBackupSettings(); + } + + /** Returns the builder for the settings used for calls to updateBackup. */ + public OperationCallSettings.Builder + updateBackupOperationSettings() { + return getStubSettingsBuilder().updateBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public UnaryCallSettings.Builder deleteBackupSettings() { + return getStubSettingsBuilder().deleteBackupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public OperationCallSettings.Builder + deleteBackupOperationSettings() { + return getStubSettingsBuilder().deleteBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to restoreBackup. */ + public UnaryCallSettings.Builder restoreBackupSettings() { + return getStubSettingsBuilder().restoreBackupSettings(); + } + + /** Returns the builder for the settings used for calls to restoreBackup. */ + public OperationCallSettings.Builder + restoreBackupOperationSettings() { + return getStubSettingsBuilder().restoreBackupOperationSettings(); + } + + @Override + public SecretOperationsServiceSettings build() throws IOException { + return new SecretOperationsServiceSettings(this); + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json index bf49bafdf61e..e1c507531f65 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json @@ -5,6 +5,33 @@ "protoPackage": "google.cloud.secretmanager.v1", "libraryPackage": "com.google.cloud.secretmanager.v1", "services": { + "SecretOperationsService": { + "clients": { + "grpc": { + "libraryClient": "SecretOperationsServiceClient", + "rpcs": { + "CreateBackup": { + "methods": ["createBackupAsync", "createBackupAsync", "createBackupAsync", "createBackupOperationCallable", "createBackupCallable"] + }, + "DeleteBackup": { + "methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] + }, + "GetBackup": { + "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] + }, + "ListBackups": { + "methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"] + }, + "RestoreBackup": { + "methods": ["restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupOperationCallable", "restoreBackupCallable"] + }, + "UpdateBackup": { + "methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"] + } + } + } + } + }, "SecretManagerService": { "clients": { "grpc": { diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java index d9387970760c..ddbbbf96440b 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java @@ -19,6 +19,34 @@ * *

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

======================= SecretOperationsServiceClient ======================= + * + *

Service Description: Secret Operations Service + * + *

Manages backups of secrets. Implements a REST model with the following objects: + * + *

    + *
  • [Backup][google.cloud.secretmanager.v1.Backup] + *
+ * + *

Note: `SecretOperationsService` is a regional service and must be called using regional + * endpoints (`secretmanager.{location}.rep.googleapis.com`). + * + *

Sample for SecretOperationsServiceClient: + * + *

{@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 (SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create()) {
+ *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+ *   Backup response = secretOperationsServiceClient.getBackup(name);
+ * }
+ * }
+ * *

======================= SecretManagerServiceClient ======================= * *

Service Description: Secret Manager Service diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceCallableFactory.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceCallableFactory.java new file mode 100644 index 000000000000..006206585d74 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceCallableFactory.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.secretmanager.v1.stub; + +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SecretOperationsService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcSecretOperationsServiceCallableFactory 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-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceStub.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceStub.java new file mode 100644 index 000000000000..8a2bc57db2bb --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceStub.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. + */ + +package com.google.cloud.secretmanager.v1.stub; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +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.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SecretOperationsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcSecretOperationsServiceStub extends SecretOperationsServiceStub { + private static final MethodDescriptor + listBackupsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/ListBackups") + .setRequestMarshaller(ProtoUtils.marshaller(ListBackupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBackupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.secretmanager.v1.SecretOperationsService/GetBackup") + .setRequestMarshaller(ProtoUtils.marshaller(GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Backup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/CreateBackup") + .setRequestMarshaller(ProtoUtils.marshaller(CreateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/UpdateBackup") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/DeleteBackup") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + restoreBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/RestoreBackup") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable listBackupsCallable; + private final UnaryCallable + listBackupsPagedCallable; + private final UnaryCallable getBackupCallable; + private final UnaryCallable createBackupCallable; + private final OperationCallable + createBackupOperationCallable; + private final UnaryCallable updateBackupCallable; + private final OperationCallable + updateBackupOperationCallable; + private final UnaryCallable deleteBackupCallable; + private final OperationCallable + deleteBackupOperationCallable; + private final UnaryCallable restoreBackupCallable; + private final OperationCallable + restoreBackupOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSecretOperationsServiceStub create( + SecretOperationsServiceStubSettings settings) throws IOException { + return new GrpcSecretOperationsServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSecretOperationsServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSecretOperationsServiceStub( + SecretOperationsServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSecretOperationsServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSecretOperationsServiceStub( + SecretOperationsServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSecretOperationsServiceStub, 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 GrpcSecretOperationsServiceStub( + SecretOperationsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSecretOperationsServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSecretOperationsServiceStub, 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 GrpcSecretOperationsServiceStub( + SecretOperationsServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listBackupsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBackupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("backup.name", String.valueOf(request.getBackup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings restoreBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.listBackupsCallable = + callableFactory.createUnaryCallable( + listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.listBackupsPagedCallable = + callableFactory.createPagedCallable( + listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.getBackupCallable = + callableFactory.createUnaryCallable( + getBackupTransportSettings, settings.getBackupSettings(), clientContext); + this.createBackupCallable = + callableFactory.createUnaryCallable( + createBackupTransportSettings, settings.createBackupSettings(), clientContext); + this.createBackupOperationCallable = + callableFactory.createOperationCallable( + createBackupTransportSettings, + settings.createBackupOperationSettings(), + clientContext, + operationsStub); + this.updateBackupCallable = + callableFactory.createUnaryCallable( + updateBackupTransportSettings, settings.updateBackupSettings(), clientContext); + this.updateBackupOperationCallable = + callableFactory.createOperationCallable( + updateBackupTransportSettings, + settings.updateBackupOperationSettings(), + clientContext, + operationsStub); + this.deleteBackupCallable = + callableFactory.createUnaryCallable( + deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext); + this.deleteBackupOperationCallable = + callableFactory.createOperationCallable( + deleteBackupTransportSettings, + settings.deleteBackupOperationSettings(), + clientContext, + operationsStub); + this.restoreBackupCallable = + callableFactory.createUnaryCallable( + restoreBackupTransportSettings, settings.restoreBackupSettings(), clientContext); + this.restoreBackupOperationCallable = + callableFactory.createOperationCallable( + restoreBackupTransportSettings, + settings.restoreBackupOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listBackupsCallable() { + return listBackupsCallable; + } + + @Override + public UnaryCallable listBackupsPagedCallable() { + return listBackupsPagedCallable; + } + + @Override + public UnaryCallable getBackupCallable() { + return getBackupCallable; + } + + @Override + public UnaryCallable createBackupCallable() { + return createBackupCallable; + } + + @Override + public OperationCallable + createBackupOperationCallable() { + return createBackupOperationCallable; + } + + @Override + public UnaryCallable updateBackupCallable() { + return updateBackupCallable; + } + + @Override + public OperationCallable + updateBackupOperationCallable() { + return updateBackupOperationCallable; + } + + @Override + public UnaryCallable deleteBackupCallable() { + return deleteBackupCallable; + } + + @Override + public OperationCallable + deleteBackupOperationCallable() { + return deleteBackupOperationCallable; + } + + @Override + public UnaryCallable restoreBackupCallable() { + return restoreBackupCallable; + } + + @Override + public OperationCallable + restoreBackupOperationCallable() { + return restoreBackupOperationCallable; + } + + @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-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceCallableFactory.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceCallableFactory.java new file mode 100644 index 000000000000..967d82526ca5 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceCallableFactory.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.cloud.secretmanager.v1.stub; + +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SecretOperationsService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonSecretOperationsServiceCallableFactory + 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-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceStub.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceStub.java new file mode 100644 index 000000000000..670edfe8e32d --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceStub.java @@ -0,0 +1,631 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1.stub; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.HttpRule; +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.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.common.collect.ImmutableMap; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SecretOperationsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonSecretOperationsServiceStub extends SecretOperationsServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(Secret.getDescriptor()) + .add(Backup.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listBackupsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/ListBackups") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/backups", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListBackupsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.secretmanager.v1.SecretOperationsService/GetBackup") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/backups/*}", + 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(Backup.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/CreateBackup") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/backups", + 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, "backupId", request.getBackupId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("backup", request.getBackup(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateBackupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/UpdateBackup") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{backup.name=projects/*/locations/*/backups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "backup.name", request.getBackup().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("backup", request.getBackup(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateBackupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/DeleteBackup") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/backups/*}", + 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, "etag", request.getEtag()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteBackupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + restoreBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/RestoreBackup") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/backups/*}:restore", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RestoreBackupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable listBackupsCallable; + private final UnaryCallable + listBackupsPagedCallable; + private final UnaryCallable getBackupCallable; + private final UnaryCallable createBackupCallable; + private final OperationCallable + createBackupOperationCallable; + private final UnaryCallable updateBackupCallable; + private final OperationCallable + updateBackupOperationCallable; + private final UnaryCallable deleteBackupCallable; + private final OperationCallable + deleteBackupOperationCallable; + private final UnaryCallable restoreBackupCallable; + private final OperationCallable + restoreBackupOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSecretOperationsServiceStub create( + SecretOperationsServiceStubSettings settings) throws IOException { + return new HttpJsonSecretOperationsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSecretOperationsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSecretOperationsServiceStub( + SecretOperationsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSecretOperationsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSecretOperationsServiceStub( + SecretOperationsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSecretOperationsServiceStub, 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 HttpJsonSecretOperationsServiceStub( + SecretOperationsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonSecretOperationsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSecretOperationsServiceStub, 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 HttpJsonSecretOperationsServiceStub( + SecretOperationsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings listBackupsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBackupsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("backup.name", String.valueOf(request.getBackup().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings restoreBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.listBackupsCallable = + callableFactory.createUnaryCallable( + listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.listBackupsPagedCallable = + callableFactory.createPagedCallable( + listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.getBackupCallable = + callableFactory.createUnaryCallable( + getBackupTransportSettings, settings.getBackupSettings(), clientContext); + this.createBackupCallable = + callableFactory.createUnaryCallable( + createBackupTransportSettings, settings.createBackupSettings(), clientContext); + this.createBackupOperationCallable = + callableFactory.createOperationCallable( + createBackupTransportSettings, + settings.createBackupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateBackupCallable = + callableFactory.createUnaryCallable( + updateBackupTransportSettings, settings.updateBackupSettings(), clientContext); + this.updateBackupOperationCallable = + callableFactory.createOperationCallable( + updateBackupTransportSettings, + settings.updateBackupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteBackupCallable = + callableFactory.createUnaryCallable( + deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext); + this.deleteBackupOperationCallable = + callableFactory.createOperationCallable( + deleteBackupTransportSettings, + settings.deleteBackupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.restoreBackupCallable = + callableFactory.createUnaryCallable( + restoreBackupTransportSettings, settings.restoreBackupSettings(), clientContext); + this.restoreBackupOperationCallable = + callableFactory.createOperationCallable( + restoreBackupTransportSettings, + settings.restoreBackupOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listBackupsMethodDescriptor); + methodDescriptors.add(getBackupMethodDescriptor); + methodDescriptors.add(createBackupMethodDescriptor); + methodDescriptors.add(updateBackupMethodDescriptor); + methodDescriptors.add(deleteBackupMethodDescriptor); + methodDescriptors.add(restoreBackupMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable listBackupsCallable() { + return listBackupsCallable; + } + + @Override + public UnaryCallable listBackupsPagedCallable() { + return listBackupsPagedCallable; + } + + @Override + public UnaryCallable getBackupCallable() { + return getBackupCallable; + } + + @Override + public UnaryCallable createBackupCallable() { + return createBackupCallable; + } + + @Override + public OperationCallable + createBackupOperationCallable() { + return createBackupOperationCallable; + } + + @Override + public UnaryCallable updateBackupCallable() { + return updateBackupCallable; + } + + @Override + public OperationCallable + updateBackupOperationCallable() { + return updateBackupOperationCallable; + } + + @Override + public UnaryCallable deleteBackupCallable() { + return deleteBackupCallable; + } + + @Override + public OperationCallable + deleteBackupOperationCallable() { + return deleteBackupOperationCallable; + } + + @Override + public UnaryCallable restoreBackupCallable() { + return restoreBackupCallable; + } + + @Override + public OperationCallable + restoreBackupOperationCallable() { + return restoreBackupOperationCallable; + } + + @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-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStub.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStub.java new file mode 100644 index 000000000000..f0be8fb91c97 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStub.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1.stub; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +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.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SecretOperationsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class SecretOperationsServiceStub implements BackgroundResource { + + public @Nullable OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable listBackupsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()"); + } + + public UnaryCallable listBackupsCallable() { + throw new UnsupportedOperationException("Not implemented: listBackupsCallable()"); + } + + public UnaryCallable getBackupCallable() { + throw new UnsupportedOperationException("Not implemented: getBackupCallable()"); + } + + public OperationCallable + createBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createBackupOperationCallable()"); + } + + public UnaryCallable createBackupCallable() { + throw new UnsupportedOperationException("Not implemented: createBackupCallable()"); + } + + public OperationCallable + updateBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateBackupOperationCallable()"); + } + + public UnaryCallable updateBackupCallable() { + throw new UnsupportedOperationException("Not implemented: updateBackupCallable()"); + } + + public OperationCallable + deleteBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBackupOperationCallable()"); + } + + public UnaryCallable deleteBackupCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()"); + } + + public OperationCallable + restoreBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: restoreBackupOperationCallable()"); + } + + public UnaryCallable restoreBackupCallable() { + throw new UnsupportedOperationException("Not implemented: restoreBackupCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStubSettings.java new file mode 100644 index 000000000000..11494ba87b21 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStubSettings.java @@ -0,0 +1,745 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1.stub; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +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.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +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.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SecretOperationsServiceStub}. + * + *

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

    + *
  • The default service address (secretmanager.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 getBackup: + * + *

{@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
+ * SecretOperationsServiceStubSettings.Builder secretOperationsServiceSettingsBuilder =
+ *     SecretOperationsServiceStubSettings.newBuilder();
+ * secretOperationsServiceSettingsBuilder
+ *     .getBackupSettings()
+ *     .setRetrySettings(
+ *         secretOperationsServiceSettingsBuilder
+ *             .getBackupSettings()
+ *             .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());
+ * SecretOperationsServiceStubSettings secretOperationsServiceSettings =
+ *     secretOperationsServiceSettingsBuilder.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 createBackup: + * + *

{@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
+ * SecretOperationsServiceStubSettings.Builder secretOperationsServiceSettingsBuilder =
+ *     SecretOperationsServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * secretOperationsServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class SecretOperationsServiceStubSettings + 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 PagedCallSettings + listBackupsSettings; + private final UnaryCallSettings getBackupSettings; + private final UnaryCallSettings createBackupSettings; + private final OperationCallSettings + createBackupOperationSettings; + private final UnaryCallSettings updateBackupSettings; + private final OperationCallSettings + updateBackupOperationSettings; + private final UnaryCallSettings deleteBackupSettings; + private final OperationCallSettings + deleteBackupOperationSettings; + private final UnaryCallSettings restoreBackupSettings; + private final OperationCallSettings + restoreBackupOperationSettings; + + private static final PagedListDescriptor + LIST_BACKUPS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBackupsRequest injectToken(ListBackupsRequest payload, String token) { + return ListBackupsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBackupsRequest injectPageSize(ListBackupsRequest payload, int pageSize) { + return ListBackupsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBackupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBackupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBackupsResponse payload) { + return payload.getBackupsList(); + } + }; + + private static final PagedListResponseFactory< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + LIST_BACKUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBackupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BACKUPS_PAGE_STR_DESC, request, context); + return ListBackupsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listBackups. */ + public PagedCallSettings + listBackupsSettings() { + return listBackupsSettings; + } + + /** Returns the object with the settings used for calls to getBackup. */ + public UnaryCallSettings getBackupSettings() { + return getBackupSettings; + } + + /** Returns the object with the settings used for calls to createBackup. */ + public UnaryCallSettings createBackupSettings() { + return createBackupSettings; + } + + /** Returns the object with the settings used for calls to createBackup. */ + public OperationCallSettings + createBackupOperationSettings() { + return createBackupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateBackup. */ + public UnaryCallSettings updateBackupSettings() { + return updateBackupSettings; + } + + /** Returns the object with the settings used for calls to updateBackup. */ + public OperationCallSettings + updateBackupOperationSettings() { + return updateBackupOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public UnaryCallSettings deleteBackupSettings() { + return deleteBackupSettings; + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public OperationCallSettings + deleteBackupOperationSettings() { + return deleteBackupOperationSettings; + } + + /** Returns the object with the settings used for calls to restoreBackup. */ + public UnaryCallSettings restoreBackupSettings() { + return restoreBackupSettings; + } + + /** Returns the object with the settings used for calls to restoreBackup. */ + public OperationCallSettings + restoreBackupOperationSettings() { + return restoreBackupOperationSettings; + } + + public SecretOperationsServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSecretOperationsServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSecretOperationsServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "secretmanager"; + } + + /** 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 "secretmanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "secretmanager.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(SecretOperationsServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SecretOperationsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SecretOperationsServiceStubSettings.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(@Nullable 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 SecretOperationsServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listBackupsSettings = settingsBuilder.listBackupsSettings().build(); + getBackupSettings = settingsBuilder.getBackupSettings().build(); + createBackupSettings = settingsBuilder.createBackupSettings().build(); + createBackupOperationSettings = settingsBuilder.createBackupOperationSettings().build(); + updateBackupSettings = settingsBuilder.updateBackupSettings().build(); + updateBackupOperationSettings = settingsBuilder.updateBackupOperationSettings().build(); + deleteBackupSettings = settingsBuilder.deleteBackupSettings().build(); + deleteBackupOperationSettings = settingsBuilder.deleteBackupOperationSettings().build(); + restoreBackupSettings = settingsBuilder.restoreBackupSettings().build(); + restoreBackupOperationSettings = settingsBuilder.restoreBackupOperationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-secretmanager") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for SecretOperationsServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + listBackupsSettings; + private final UnaryCallSettings.Builder getBackupSettings; + private final UnaryCallSettings.Builder createBackupSettings; + private final OperationCallSettings.Builder + createBackupOperationSettings; + private final UnaryCallSettings.Builder updateBackupSettings; + private final OperationCallSettings.Builder + updateBackupOperationSettings; + private final UnaryCallSettings.Builder deleteBackupSettings; + private final OperationCallSettings.Builder + deleteBackupOperationSettings; + private final UnaryCallSettings.Builder restoreBackupSettings; + private final OperationCallSettings.Builder + restoreBackupOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_0_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() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT); + getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBackupOperationSettings = OperationCallSettings.newBuilder(); + updateBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBackupOperationSettings = OperationCallSettings.newBuilder(); + deleteBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBackupOperationSettings = OperationCallSettings.newBuilder(); + restoreBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreBackupOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listBackupsSettings, + getBackupSettings, + createBackupSettings, + updateBackupSettings, + deleteBackupSettings, + restoreBackupSettings); + initDefaults(this); + } + + protected Builder(SecretOperationsServiceStubSettings settings) { + super(settings); + + listBackupsSettings = settings.listBackupsSettings.toBuilder(); + getBackupSettings = settings.getBackupSettings.toBuilder(); + createBackupSettings = settings.createBackupSettings.toBuilder(); + createBackupOperationSettings = settings.createBackupOperationSettings.toBuilder(); + updateBackupSettings = settings.updateBackupSettings.toBuilder(); + updateBackupOperationSettings = settings.updateBackupOperationSettings.toBuilder(); + deleteBackupSettings = settings.deleteBackupSettings.toBuilder(); + deleteBackupOperationSettings = settings.deleteBackupOperationSettings.toBuilder(); + restoreBackupSettings = settings.restoreBackupSettings.toBuilder(); + restoreBackupOperationSettings = settings.restoreBackupOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listBackupsSettings, + getBackupSettings, + createBackupSettings, + updateBackupSettings, + deleteBackupSettings, + restoreBackupSettings); + } + + 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 + .listBackupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .restoreBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Backup.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 + .updateBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Backup.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 + .deleteBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_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())); + + builder + .restoreBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Secret.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 listBackups. */ + public PagedCallSettings.Builder< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + listBackupsSettings() { + return listBackupsSettings; + } + + /** Returns the builder for the settings used for calls to getBackup. */ + public UnaryCallSettings.Builder getBackupSettings() { + return getBackupSettings; + } + + /** Returns the builder for the settings used for calls to createBackup. */ + public UnaryCallSettings.Builder createBackupSettings() { + return createBackupSettings; + } + + /** Returns the builder for the settings used for calls to createBackup. */ + public OperationCallSettings.Builder + createBackupOperationSettings() { + return createBackupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateBackup. */ + public UnaryCallSettings.Builder updateBackupSettings() { + return updateBackupSettings; + } + + /** Returns the builder for the settings used for calls to updateBackup. */ + public OperationCallSettings.Builder + updateBackupOperationSettings() { + return updateBackupOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public UnaryCallSettings.Builder deleteBackupSettings() { + return deleteBackupSettings; + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public OperationCallSettings.Builder + deleteBackupOperationSettings() { + return deleteBackupOperationSettings; + } + + /** Returns the builder for the settings used for calls to restoreBackup. */ + public UnaryCallSettings.Builder restoreBackupSettings() { + return restoreBackupSettings; + } + + /** Returns the builder for the settings used for calls to restoreBackup. */ + public OperationCallSettings.Builder + restoreBackupOperationSettings() { + return restoreBackupOperationSettings; + } + + @Override + public SecretOperationsServiceStubSettings build() throws IOException { + return new SecretOperationsServiceStubSettings(this); + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json index a3f5fb8be0be..19f3409dee8d 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json +++ b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json @@ -530,6 +530,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.Backup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.Backup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.Backup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials", "queryAllDeclaredConstructors": true, @@ -548,6 +575,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.CreateBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.CreateBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.CreateSecretRequest", "queryAllDeclaredConstructors": true, @@ -602,6 +647,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.DeleteBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.DeleteBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.DeleteSecretRequest", "queryAllDeclaredConstructors": true, @@ -692,6 +755,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.GetBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.GetBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.GetSecretRequest", "queryAllDeclaredConstructors": true, @@ -728,6 +809,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.ListBackupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.ListBackupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.ListBackupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.ListBackupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.ListSecretVersionsRequest", "queryAllDeclaredConstructors": true, @@ -800,6 +917,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.OperationMetadata$Progress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.OperationMetadata$Progress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.Replication", "queryAllDeclaredConstructors": true, @@ -944,6 +1097,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.RestoreBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.RestoreBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.RotateSecretRequest", "queryAllDeclaredConstructors": true, @@ -1034,6 +1205,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.Secret$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.SecretPayload", "queryAllDeclaredConstructors": true, @@ -1097,6 +1277,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.UpdateBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.UpdateBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.UpdateSecretRequest", "queryAllDeclaredConstructors": true, @@ -1376,6 +1574,150 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsService.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsService.java new file mode 100644 index 000000000000..555abb552df1 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsService.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.secretmanager.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSecretOperationsService implements MockGrpcService { + private final MockSecretOperationsServiceImpl serviceImpl; + + public MockSecretOperationsService() { + serviceImpl = new MockSecretOperationsServiceImpl(); + } + + @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-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsServiceImpl.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsServiceImpl.java new file mode 100644 index 000000000000..6ec9c7f5bb4d --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsServiceImpl.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceGrpc.SecretOperationsServiceImplBase; +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 MockSecretOperationsServiceImpl extends SecretOperationsServiceImplBase { + private List requests; + private Queue responses; + + public MockSecretOperationsServiceImpl() { + 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 listBackups( + ListBackupsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBackupsResponse) { + requests.add(request); + responseObserver.onNext(((ListBackupsResponse) 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 ListBackups, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBackupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBackup(GetBackupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Backup) { + requests.add(request); + responseObserver.onNext(((Backup) 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 GetBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Backup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBackup( + CreateBackupRequest 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 CreateBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBackup( + UpdateBackupRequest 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 UpdateBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBackup( + DeleteBackupRequest 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 DeleteBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void restoreBackup( + RestoreBackupRequest 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 RestoreBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientHttpJsonTest.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..f7079d02aa91 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientHttpJsonTest.java @@ -0,0 +1,973 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.secretmanager.v1.stub.HttpJsonSecretOperationsServiceStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.ResourcePolicyMember; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +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 SecretOperationsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SecretOperationsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSecretOperationsServiceStub.getMethodDescriptors(), + SecretOperationsServiceSettings.getDefaultEndpoint()); + SecretOperationsServiceSettings settings = + SecretOperationsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SecretOperationsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SecretOperationsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().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 listBackupsExceptionTest() 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.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().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 listBackupsExceptionTest2() 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.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(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 getBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + + Backup actualResponse = client.getBackup(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 getBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).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 createBackupExceptionTest() 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]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).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 createBackupExceptionTest2() 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"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Backup backup = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Backup actualResponse = client.updateBackupAsync(backup, updateMask).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 updateBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Backup backup = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupAsync(backup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + client.deleteBackupAsync(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 deleteBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + + client.deleteBackupAsync(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 deleteBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest2() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest3() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest4() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest5() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupExceptionTest5() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest6() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupExceptionTest6() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientTest.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientTest.java new file mode 100644 index 000000000000..9c517bb1f28d --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientTest.java @@ -0,0 +1,922 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +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.iam.v1.ResourcePolicyMember; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +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 SecretOperationsServiceClientTest { + private static MockSecretOperationsService mockSecretOperationsService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SecretOperationsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSecretOperationsService = new MockSecretOperationsService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSecretOperationsService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SecretOperationsServiceSettings settings = + SecretOperationsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SecretOperationsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockSecretOperationsService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockSecretOperationsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockSecretOperationsService.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockSecretOperationsService.addResponse(expectedResponse); + + String name = "name3373707"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).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 createBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String parent = "parent-995424086"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).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 updateBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Backup actualResponse = client.updateBackupAsync(backup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBackupRequest actualRequest = ((UpdateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupAsync(backup, 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 deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.deleteBackupAsync(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 deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + client.deleteBackupAsync(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 restoreBackupTest() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationSecretParent.toString(), actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupTest2() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationSecretParent.toString(), actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupTest3() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(destinationSecretParent, actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupTest4() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String name = "name3373707"; + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationSecretParent.toString(), actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupTest5() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String name = "name3373707"; + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationSecretParent.toString(), actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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 restoreBackupTest6() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String name = "name3373707"; + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(destinationSecretParent, actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest6() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).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()); + } + } +} diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceGrpc.java b/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceGrpc.java new file mode 100644 index 000000000000..1a5402d00f20 --- /dev/null +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceGrpc.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. + */ +package com.google.cloud.secretmanager.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Secret Operations Service
+ * Manages backups of secrets. Implements a REST model with the following
+ * objects:
+ * * [Backup][google.cloud.secretmanager.v1.Backup]
+ * Note: `SecretOperationsService` is a regional service and must be called
+ * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class SecretOperationsServiceGrpc { + + private SecretOperationsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.secretmanager.v1.SecretOperationsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListBackupsRequest, + com.google.cloud.secretmanager.v1.ListBackupsResponse> + getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.secretmanager.v1.ListBackupsRequest.class, + responseType = com.google.cloud.secretmanager.v1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListBackupsRequest, + com.google.cloud.secretmanager.v1.ListBackupsResponse> + getListBackupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListBackupsRequest, + com.google.cloud.secretmanager.v1.ListBackupsResponse> + getListBackupsMethod; + if ((getListBackupsMethod = SecretOperationsServiceGrpc.getListBackupsMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getListBackupsMethod = SecretOperationsServiceGrpc.getListBackupsMethod) == null) { + SecretOperationsServiceGrpc.getListBackupsMethod = + getListBackupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListBackupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListBackupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetBackupRequest, + com.google.cloud.secretmanager.v1.Backup> + getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.secretmanager.v1.GetBackupRequest.class, + responseType = com.google.cloud.secretmanager.v1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetBackupRequest, + com.google.cloud.secretmanager.v1.Backup> + getGetBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetBackupRequest, + com.google.cloud.secretmanager.v1.Backup> + getGetBackupMethod; + if ((getGetBackupMethod = SecretOperationsServiceGrpc.getGetBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getGetBackupMethod = SecretOperationsServiceGrpc.getGetBackupMethod) == null) { + SecretOperationsServiceGrpc.getGetBackupMethod = + getGetBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.GetBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.secretmanager.v1.CreateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + if ((getCreateBackupMethod = SecretOperationsServiceGrpc.getCreateBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getCreateBackupMethod = SecretOperationsServiceGrpc.getCreateBackupMethod) == null) { + SecretOperationsServiceGrpc.getCreateBackupMethod = + getCreateBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.CreateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("CreateBackup")) + .build(); + } + } + } + return getCreateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.secretmanager.v1.UpdateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + if ((getUpdateBackupMethod = SecretOperationsServiceGrpc.getUpdateBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getUpdateBackupMethod = SecretOperationsServiceGrpc.getUpdateBackupMethod) == null) { + SecretOperationsServiceGrpc.getUpdateBackupMethod = + getUpdateBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.UpdateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.secretmanager.v1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + if ((getDeleteBackupMethod = SecretOperationsServiceGrpc.getDeleteBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getDeleteBackupMethod = SecretOperationsServiceGrpc.getDeleteBackupMethod) == null) { + SecretOperationsServiceGrpc.getDeleteBackupMethod = + getDeleteBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.DeleteBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.RestoreBackupRequest, com.google.longrunning.Operation> + getRestoreBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreBackup", + requestType = com.google.cloud.secretmanager.v1.RestoreBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.RestoreBackupRequest, com.google.longrunning.Operation> + getRestoreBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.RestoreBackupRequest, + com.google.longrunning.Operation> + getRestoreBackupMethod; + if ((getRestoreBackupMethod = SecretOperationsServiceGrpc.getRestoreBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getRestoreBackupMethod = SecretOperationsServiceGrpc.getRestoreBackupMethod) == null) { + SecretOperationsServiceGrpc.getRestoreBackupMethod = + getRestoreBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.RestoreBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("RestoreBackup")) + .build(); + } + } + } + return getRestoreBackupMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SecretOperationsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretOperationsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceStub(channel, callOptions); + } + }; + return SecretOperationsServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SecretOperationsServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretOperationsServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceBlockingV2Stub(channel, callOptions); + } + }; + return SecretOperationsServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecretOperationsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretOperationsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceBlockingStub(channel, callOptions); + } + }; + return SecretOperationsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SecretOperationsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretOperationsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceFutureStub(channel, callOptions); + } + }; + return SecretOperationsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + default void listBackups( + com.google.cloud.secretmanager.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + default void getBackup( + com.google.cloud.secretmanager.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + default void createBackup( + com.google.cloud.secretmanager.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + default void updateBackup( + com.google.cloud.secretmanager.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + default void deleteBackup( + com.google.cloud.secretmanager.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + default void restoreBackup( + com.google.cloud.secretmanager.v1.RestoreBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreBackupMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public abstract static class SecretOperationsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SecretOperationsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public static final class SecretOperationsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SecretOperationsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretOperationsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + public void listBackups( + com.google.cloud.secretmanager.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + public void getBackup( + com.google.cloud.secretmanager.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + public void createBackup( + com.google.cloud.secretmanager.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + public void updateBackup( + com.google.cloud.secretmanager.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + public void deleteBackup( + com.google.cloud.secretmanager.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + public void restoreBackup( + com.google.cloud.secretmanager.v1.RestoreBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreBackupMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public static final class SecretOperationsServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SecretOperationsServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretOperationsServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.ListBackupsResponse listBackups( + com.google.cloud.secretmanager.v1.ListBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Backup getBackup( + com.google.cloud.secretmanager.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createBackup( + com.google.cloud.secretmanager.v1.CreateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup( + com.google.cloud.secretmanager.v1.UpdateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.secretmanager.v1.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + public com.google.longrunning.Operation restoreBackup( + com.google.cloud.secretmanager.v1.RestoreBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRestoreBackupMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public static final class SecretOperationsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SecretOperationsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretOperationsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.ListBackupsResponse listBackups( + com.google.cloud.secretmanager.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Backup getBackup( + com.google.cloud.secretmanager.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createBackup( + com.google.cloud.secretmanager.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup( + com.google.cloud.secretmanager.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.secretmanager.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + public com.google.longrunning.Operation restoreBackup( + com.google.cloud.secretmanager.v1.RestoreBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreBackupMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public static final class SecretOperationsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SecretOperationsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretOperationsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.ListBackupsResponse> + listBackups(com.google.cloud.secretmanager.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.Backup> + getBackup(com.google.cloud.secretmanager.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBackup(com.google.cloud.secretmanager.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateBackup(com.google.cloud.secretmanager.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBackup(com.google.cloud.secretmanager.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreBackup(com.google.cloud.secretmanager.v1.RestoreBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreBackupMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_BACKUPS = 0; + private static final int METHODID_GET_BACKUP = 1; + private static final int METHODID_CREATE_BACKUP = 2; + private static final int METHODID_UPDATE_BACKUP = 3; + private static final int METHODID_DELETE_BACKUP = 4; + private static final int METHODID_RESTORE_BACKUP = 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_LIST_BACKUPS: + serviceImpl.listBackups( + (com.google.cloud.secretmanager.v1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup( + (com.google.cloud.secretmanager.v1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup( + (com.google.cloud.secretmanager.v1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup( + (com.google.cloud.secretmanager.v1.UpdateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup( + (com.google.cloud.secretmanager.v1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_BACKUP: + serviceImpl.restoreBackup( + (com.google.cloud.secretmanager.v1.RestoreBackupRequest) 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( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.ListBackupsRequest, + com.google.cloud.secretmanager.v1.ListBackupsResponse>( + service, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.GetBackupRequest, + com.google.cloud.secretmanager.v1.Backup>(service, METHODID_GET_BACKUP))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.CreateBackupRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.UpdateBackupRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.DeleteBackupRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_BACKUP))) + .addMethod( + getRestoreBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.RestoreBackupRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_BACKUP))) + .build(); + } + + private abstract static class SecretOperationsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecretOperationsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecretOperationsService"); + } + } + + private static final class SecretOperationsServiceFileDescriptorSupplier + extends SecretOperationsServiceBaseDescriptorSupplier { + SecretOperationsServiceFileDescriptorSupplier() {} + } + + private static final class SecretOperationsServiceMethodDescriptorSupplier + extends SecretOperationsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SecretOperationsServiceMethodDescriptorSupplier(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 (SecretOperationsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecretOperationsServiceFileDescriptorSupplier()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getRestoreBackupMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Backup.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Backup.java new file mode 100644 index 000000000000..6198dea68520 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Backup.java @@ -0,0 +1,2828 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * A Backup of a Secret.
+ * Backups are regional resources.
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.Backup} + */ +@com.google.protobuf.Generated +public final class Backup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Backup) + BackupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Backup"); + } + + // Use Backup.newBuilder() to construct. + private Backup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Backup() { + name_ = ""; + sourceSecret_ = ""; + state_ = 0; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.Backup.class, + com.google.cloud.secretmanager.v1.Backup.Builder.class); + } + + /** + * + * + *
+   * Enum representing the state of the
+   * [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * Protobuf enum {@code google.cloud.secretmanager.v1.Backup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Backup state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The backup is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The backup is active and can be used.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The backup is being updated.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The backup creation or update failed.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Backup state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The backup is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * The backup is active and can be used.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The backup is being updated.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
+     * The backup creation or update failed.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_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 CREATING; + case 2: + return ACTIVE; + case 3: + return UPDATING; + case 4: + return FAILED; + 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.secretmanager.v1.Backup.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.secretmanager.v1.Backup.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of the backup.
+   * Format: `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * 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 the backup.
+   * Format: `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * 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 SOURCE_SECRET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceSecret_ = ""; + + /** + * + * + *
+   * Required. Immutable. Resource name of the
+   * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+   * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+   * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+   * is immutable after creation. Formats:
+   * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+   * secrets)
+   * - `projects/{project}/secrets/{secret}` (for global secrets)
+   * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSecret. + */ + @java.lang.Override + public java.lang.String getSourceSecret() { + java.lang.Object ref = sourceSecret_; + 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(); + sourceSecret_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. Resource name of the
+   * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+   * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+   * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+   * is immutable after creation. Formats:
+   * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+   * secrets)
+   * - `projects/{project}/secrets/{secret}` (for global secrets)
+   * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceSecretBytes() { + java.lang.Object ref = sourceSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 SOURCE_SECRET_CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp sourceSecretCreateTime_; + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sourceSecretCreateTime field is set. + */ + @java.lang.Override + public boolean hasSourceSecretCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sourceSecretCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSourceSecretCreateTime() { + return sourceSecretCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : sourceSecretCreateTime_; + } + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSourceSecretCreateTimeOrBuilder() { + return sourceSecretCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : sourceSecretCreateTime_; + } + + public static final int VERSION_COUNT_FIELD_NUMBER = 6; + private int versionCount_ = 0; + + /** + * + * + *
+   * Output only. Number of non-destroyed secret versions contained in this
+   * backup.
+   * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The versionCount. + */ + @java.lang.Override + public int getVersionCount() { + return versionCount_; + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + + /** + * + * + *
+   * Output only. Current state of the Backup.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.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. Current state of the Backup.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup.State getState() { + com.google.cloud.secretmanager.v1.Backup.State result = + com.google.cloud.secretmanager.v1.Backup.State.forNumber(state_); + return result == null ? com.google.cloud.secretmanager.v1.Backup.State.UNRECOGNIZED : result; + } + + public static final int ETAG_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. Used for optimistic concurrency control as a way to help prevent
+   * simultaneous updates of a backup from overwriting each other.
+   * 
+ * + * string etag = 11 [(.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. Used for optimistic concurrency control as a way to help prevent
+   * simultaneous updates of a backup from overwriting each other.
+   * 
+ * + * string etag = 11 [(.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; + } + } + + 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(sourceSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, sourceSecret_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getSourceSecretCreateTime()); + } + if (versionCount_ != 0) { + output.writeInt32(6, versionCount_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (state_ != com.google.cloud.secretmanager.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, etag_); + } + 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(sourceSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sourceSecret_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSourceSecretCreateTime()); + } + if (versionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, versionCount_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + } + if (state_ != com.google.cloud.secretmanager.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, etag_); + } + 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.secretmanager.v1.Backup)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.Backup other = (com.google.cloud.secretmanager.v1.Backup) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSourceSecret().equals(other.getSourceSecret())) 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 (hasSourceSecretCreateTime() != other.hasSourceSecretCreateTime()) return false; + if (hasSourceSecretCreateTime()) { + if (!getSourceSecretCreateTime().equals(other.getSourceSecretCreateTime())) return false; + } + if (getVersionCount() != other.getVersionCount()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (!getEtag().equals(other.getEtag())) 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) + SOURCE_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getSourceSecret().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 (hasSourceSecretCreateTime()) { + hash = (37 * hash) + SOURCE_SECRET_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSourceSecretCreateTime().hashCode(); + } + hash = (37 * hash) + VERSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVersionCount(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.Backup 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.secretmanager.v1.Backup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.Backup 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.secretmanager.v1.Backup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.Backup 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.secretmanager.v1.Backup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.Backup 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.secretmanager.v1.Backup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.Backup 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.secretmanager.v1.Backup 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 Backup of a Secret.
+   * Backups are regional resources.
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.Backup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Backup) + com.google.cloud.secretmanager.v1.BackupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.Backup.class, + com.google.cloud.secretmanager.v1.Backup.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.Backup.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(); + internalGetSourceSecretCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sourceSecret_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + sourceSecretCreateTime_ = null; + if (sourceSecretCreateTimeBuilder_ != null) { + sourceSecretCreateTimeBuilder_.dispose(); + sourceSecretCreateTimeBuilder_ = null; + } + versionCount_ = 0; + internalGetMutableLabels().clear(); + state_ = 0; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.Backup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup build() { + com.google.cloud.secretmanager.v1.Backup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup buildPartial() { + com.google.cloud.secretmanager.v1.Backup result = + new com.google.cloud.secretmanager.v1.Backup(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.Backup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceSecret_ = sourceSecret_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sourceSecretCreateTime_ = + sourceSecretCreateTimeBuilder_ == null + ? sourceSecretCreateTime_ + : sourceSecretCreateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.versionCount_ = versionCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.Backup) { + return mergeFrom((com.google.cloud.secretmanager.v1.Backup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.Backup other) { + if (other == com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceSecret().isEmpty()) { + sourceSecret_ = other.sourceSecret_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasSourceSecretCreateTime()) { + mergeSourceSecretCreateTime(other.getSourceSecretCreateTime()); + } + if (other.getVersionCount() != 0) { + setVersionCount(other.getVersionCount()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000100; + 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: + { + sourceSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetSourceSecretCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + versionCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 90: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 90 + 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 the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * 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 the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * 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 the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * 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 the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * 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 the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * 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 sourceSecret_ = ""; + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSecret. + */ + public java.lang.String getSourceSecret() { + java.lang.Object ref = sourceSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSecret. + */ + public com.google.protobuf.ByteString getSourceSecretBytes() { + java.lang.Object ref = sourceSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The sourceSecret to set. + * @return This builder for chaining. + */ + public Builder setSourceSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSourceSecret() { + sourceSecret_ = getDefaultInstance().getSourceSecret(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sourceSecret to set. + * @return This builder for chaining. + */ + public Builder setSourceSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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.protobuf.Timestamp sourceSecretCreateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + sourceSecretCreateTimeBuilder_; + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sourceSecretCreateTime field is set. + */ + public boolean hasSourceSecretCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sourceSecretCreateTime. + */ + public com.google.protobuf.Timestamp getSourceSecretCreateTime() { + if (sourceSecretCreateTimeBuilder_ == null) { + return sourceSecretCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : sourceSecretCreateTime_; + } else { + return sourceSecretCreateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSourceSecretCreateTime(com.google.protobuf.Timestamp value) { + if (sourceSecretCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceSecretCreateTime_ = value; + } else { + sourceSecretCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSourceSecretCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (sourceSecretCreateTimeBuilder_ == null) { + sourceSecretCreateTime_ = builderForValue.build(); + } else { + sourceSecretCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSourceSecretCreateTime(com.google.protobuf.Timestamp value) { + if (sourceSecretCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && sourceSecretCreateTime_ != null + && sourceSecretCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSourceSecretCreateTimeBuilder().mergeFrom(value); + } else { + sourceSecretCreateTime_ = value; + } + } else { + sourceSecretCreateTimeBuilder_.mergeFrom(value); + } + if (sourceSecretCreateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSourceSecretCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + sourceSecretCreateTime_ = null; + if (sourceSecretCreateTimeBuilder_ != null) { + sourceSecretCreateTimeBuilder_.dispose(); + sourceSecretCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getSourceSecretCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetSourceSecretCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSourceSecretCreateTimeOrBuilder() { + if (sourceSecretCreateTimeBuilder_ != null) { + return sourceSecretCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return sourceSecretCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : sourceSecretCreateTime_; + } + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetSourceSecretCreateTimeFieldBuilder() { + if (sourceSecretCreateTimeBuilder_ == null) { + sourceSecretCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSourceSecretCreateTime(), getParentForChildren(), isClean()); + sourceSecretCreateTime_ = null; + } + return sourceSecretCreateTimeBuilder_; + } + + private int versionCount_; + + /** + * + * + *
+     * Output only. Number of non-destroyed secret versions contained in this
+     * backup.
+     * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The versionCount. + */ + @java.lang.Override + public int getVersionCount() { + return versionCount_; + } + + /** + * + * + *
+     * Output only. Number of non-destroyed secret versions contained in this
+     * backup.
+     * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The versionCount to set. + * @return This builder for chaining. + */ + public Builder setVersionCount(int value) { + + versionCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Number of non-destroyed secret versions contained in this
+     * backup.
+     * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVersionCount() { + bitField0_ = (bitField0_ & ~0x00000020); + versionCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.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. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup.State getState() { + com.google.cloud.secretmanager.v1.Backup.State result = + com.google.cloud.secretmanager.v1.Backup.State.forNumber(state_); + return result == null ? com.google.cloud.secretmanager.v1.Backup.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.secretmanager.v1.Backup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.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. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.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. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Backup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Backup) + private static final com.google.cloud.secretmanager.v1.Backup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Backup(); + } + + public static com.google.cloud.secretmanager.v1.Backup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Backup 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.secretmanager.v1.Backup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupName.java new file mode 100644 index 000000000000..e44751e458d4 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class BackupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BACKUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/backups/{backup}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String backup; + + @Deprecated + protected BackupName() { + project = null; + location = null; + backup = null; + } + + private BackupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + backup = Preconditions.checkNotNull(builder.getBackup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackup() { + return backup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BackupName of(String project, String location, String backup) { + return newBuilder().setProject(project).setLocation(location).setBackup(backup).build(); + } + + public static String format(String project, String location, String backup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackup(backup) + .build() + .toString(); + } + + public static @Nullable BackupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BACKUP.validatedMatch( + formattedString, "BackupName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("backup")); + } + + 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<@Nullable BackupName> values) { + List list = new ArrayList<>(values.size()); + for (BackupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BACKUP.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 (backup != null) { + fieldMapBuilder.put("backup", backup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BACKUP.instantiate( + "project", project, "location", location, "backup", backup); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BackupName that = ((BackupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.backup, that.backup); + } + 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(backup); + return h; + } + + /** Builder for projects/{project}/locations/{location}/backups/{backup}. */ + public static class Builder { + private String project; + private String location; + private String backup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackup() { + return backup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBackup(String backup) { + this.backup = backup; + return this; + } + + private Builder(BackupName backupName) { + this.project = backupName.project; + this.location = backupName.location; + this.backup = backupName.backup; + } + + public BackupName build() { + return new BackupName(this); + } + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupOrBuilder.java new file mode 100644 index 000000000000..be20c9661bcd --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupOrBuilder.java @@ -0,0 +1,364 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface BackupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Backup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the backup.
+   * Format: `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of the backup.
+   * Format: `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Resource name of the
+   * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+   * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+   * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+   * is immutable after creation. Formats:
+   * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+   * secrets)
+   * - `projects/{project}/secrets/{secret}` (for global secrets)
+   * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSecret. + */ + java.lang.String getSourceSecret(); + + /** + * + * + *
+   * Required. Immutable. Resource name of the
+   * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+   * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+   * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+   * is immutable after creation. Formats:
+   * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+   * secrets)
+   * - `projects/{project}/secrets/{secret}` (for global secrets)
+   * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSecret. + */ + com.google.protobuf.ByteString getSourceSecretBytes(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sourceSecretCreateTime field is set. + */ + boolean hasSourceSecretCreateTime(); + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sourceSecretCreateTime. + */ + com.google.protobuf.Timestamp getSourceSecretCreateTime(); + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getSourceSecretCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Number of non-destroyed secret versions contained in this
+   * backup.
+   * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The versionCount. + */ + int getVersionCount(); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Current state of the Backup.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. Current state of the Backup.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.secretmanager.v1.Backup.State getState(); + + /** + * + * + *
+   * Optional. Used for optimistic concurrency control as a way to help prevent
+   * simultaneous updates of a backup from overwriting each other.
+   * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. Used for optimistic concurrency control as a way to help prevent
+   * simultaneous updates of a backup from overwriting each other.
+   * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequest.java new file mode 100644 index 000000000000..5d86c5ed3693 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequest.java @@ -0,0 +1,1150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.CreateBackup][google.cloud.secretmanager.v1.SecretOperationsService.CreateBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.CreateBackupRequest} + */ +@com.google.protobuf.Generated +public final class CreateBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CreateBackupRequest) + CreateBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateBackupRequest"); + } + + // Use CreateBackupRequest.newBuilder() to construct. + private CreateBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateBackupRequest() { + parent_ = ""; + backupId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.CreateBackupRequest.class, + com.google.cloud.secretmanager.v1.CreateBackupRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource name of the location where the
+   * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+   * format `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the location where the
+   * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+   * 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 BACKUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the backup, which will become the final
+   * component of the backup's resource name.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + @java.lang.Override + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + 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(); + backupId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the backup, which will become the final
+   * component of the backup's resource name.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_FIELD_NUMBER = 3; + private com.google.cloud.secretmanager.v1.Backup backup_; + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + @java.lang.Override + public boolean hasBackup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getBackup() { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder() { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + + 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(backupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, backupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBackup()); + } + 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(backupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, backupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBackup()); + } + 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.secretmanager.v1.CreateBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.CreateBackupRequest other = + (com.google.cloud.secretmanager.v1.CreateBackupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getBackupId().equals(other.getBackupId())) return false; + if (hasBackup() != other.hasBackup()) return false; + if (hasBackup()) { + if (!getBackup().equals(other.getBackup())) 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) + BACKUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getBackupId().hashCode(); + if (hasBackup()) { + hash = (37 * hash) + BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getBackup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest 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.secretmanager.v1.CreateBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest 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.secretmanager.v1.CreateBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest 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.secretmanager.v1.CreateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest 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.secretmanager.v1.CreateBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest 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.secretmanager.v1.CreateBackupRequest 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
+   * [SecretOperationsService.CreateBackup][google.cloud.secretmanager.v1.SecretOperationsService.CreateBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.CreateBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CreateBackupRequest) + com.google.cloud.secretmanager.v1.CreateBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.CreateBackupRequest.class, + com.google.cloud.secretmanager.v1.CreateBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.CreateBackupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + backupId_ = ""; + backup_ = null; + if (backupBuilder_ != null) { + backupBuilder_.dispose(); + backupBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CreateBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.CreateBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CreateBackupRequest build() { + com.google.cloud.secretmanager.v1.CreateBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CreateBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.CreateBackupRequest result = + new com.google.cloud.secretmanager.v1.CreateBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.CreateBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backupId_ = backupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.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.secretmanager.v1.CreateBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.CreateBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.CreateBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.CreateBackupRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBackupId().isEmpty()) { + backupId_ = other.backupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBackup()) { + mergeBackup(other.getBackup()); + } + 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: + { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetBackupFieldBuilder().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 parent_ = ""; + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * 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 java.lang.Object backupId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackupId() { + backupId_ = getDefaultInstance().getBackupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.secretmanager.v1.Backup backup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + backupBuilder_; + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + public boolean hasBackup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + public com.google.cloud.secretmanager.v1.Backup getBackup() { + if (backupBuilder_ == null) { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } else { + return backupBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackup(com.google.cloud.secretmanager.v1.Backup value) { + if (backupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backup_ = value; + } else { + backupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackup(com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupBuilder_ == null) { + backup_ = builderForValue.build(); + } else { + backupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackup(com.google.cloud.secretmanager.v1.Backup value) { + if (backupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && backup_ != null + && backup_ != com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()) { + getBackupBuilder().mergeFrom(value); + } else { + backup_ = value; + } + } else { + backupBuilder_.mergeFrom(value); + } + if (backup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackup() { + bitField0_ = (bitField0_ & ~0x00000004); + backup_ = null; + if (backupBuilder_ != null) { + backupBuilder_.dispose(); + backupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.secretmanager.v1.Backup.Builder getBackupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBackupFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder() { + if (backupBuilder_ != null) { + return backupBuilder_.getMessageOrBuilder(); + } else { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + internalGetBackupFieldBuilder() { + if (backupBuilder_ == null) { + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); + backup_ = null; + } + return backupBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CreateBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CreateBackupRequest) + private static final com.google.cloud.secretmanager.v1.CreateBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CreateBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackupRequest 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.secretmanager.v1.CreateBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequestOrBuilder.java new file mode 100644 index 000000000000..d5c3e0f4f9af --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface CreateBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CreateBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location where the
+   * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+   * format `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource name of the location where the
+   * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+   * 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 ID to use for the backup, which will become the final
+   * component of the backup's resource name.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + java.lang.String getBackupId(); + + /** + * + * + *
+   * Required. The ID to use for the backup, which will become the final
+   * component of the backup's resource name.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + com.google.protobuf.ByteString getBackupIdBytes(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + boolean hasBackup(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + com.google.cloud.secretmanager.v1.Backup getBackup(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CryptoKeyName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CryptoKeyName.java new file mode 100644 index 000000000000..ec324dc14a4c --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CryptoKeyName.java @@ -0,0 +1,264 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class CryptoKeyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String keyRing; + private final String cryptoKey; + + @Deprecated + protected CryptoKeyName() { + project = null; + location = null; + keyRing = null; + cryptoKey = null; + } + + private CryptoKeyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + keyRing = Preconditions.checkNotNull(builder.getKeyRing()); + cryptoKey = Preconditions.checkNotNull(builder.getCryptoKey()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CryptoKeyName of( + String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build(); + } + + public static String format(String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build() + .toString(); + } + + public static @Nullable CryptoKeyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.validatedMatch( + formattedString, "CryptoKeyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("key_ring"), + matchMap.get("crypto_key")); + } + + 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<@Nullable CryptoKeyName> values) { + List list = new ArrayList<>(values.size()); + for (CryptoKeyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.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 (keyRing != null) { + fieldMapBuilder.put("key_ring", keyRing); + } + if (cryptoKey != null) { + fieldMapBuilder.put("crypto_key", cryptoKey); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.instantiate( + "project", project, "location", location, "key_ring", keyRing, "crypto_key", cryptoKey); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CryptoKeyName that = ((CryptoKeyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.keyRing, that.keyRing) + && Objects.equals(this.cryptoKey, that.cryptoKey); + } + 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(keyRing); + h *= 1000003; + h ^= Objects.hashCode(cryptoKey); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + */ + public static class Builder { + private String project; + private String location; + private String keyRing; + private String cryptoKey; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setKeyRing(String keyRing) { + this.keyRing = keyRing; + return this; + } + + public Builder setCryptoKey(String cryptoKey) { + this.cryptoKey = cryptoKey; + return this; + } + + private Builder(CryptoKeyName cryptoKeyName) { + this.project = cryptoKeyName.project; + this.location = cryptoKeyName.location; + this.keyRing = cryptoKeyName.keyRing; + this.cryptoKey = cryptoKeyName.cryptoKey; + } + + public CryptoKeyName build() { + return new CryptoKeyName(this); + } + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequest.java new file mode 100644 index 000000000000..6c1e1fde7991 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequest.java @@ -0,0 +1,823 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.DeleteBackup][google.cloud.secretmanager.v1.SecretOperationsService.DeleteBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.DeleteBackupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.DeleteBackupRequest) + DeleteBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteBackupRequest"); + } + + // Use DeleteBackupRequest.newBuilder() to construct. + private DeleteBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteBackupRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.DeleteBackupRequest.class, + com.google.cloud.secretmanager.v1.DeleteBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * 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 resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * 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. If set, the request will only succeed if it matches the etag of
+   * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * 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. If set, the request will only succeed if it matches the etag of
+   * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * 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; + } + } + + 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_); + } + 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_); + } + 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.secretmanager.v1.DeleteBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.DeleteBackupRequest other = + (com.google.cloud.secretmanager.v1.DeleteBackupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest 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.secretmanager.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest 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.secretmanager.v1.DeleteBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest 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.secretmanager.v1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest 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.secretmanager.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest 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.secretmanager.v1.DeleteBackupRequest 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
+   * [SecretOperationsService.DeleteBackup][google.cloud.secretmanager.v1.SecretOperationsService.DeleteBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.DeleteBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.DeleteBackupRequest) + com.google.cloud.secretmanager.v1.DeleteBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.DeleteBackupRequest.class, + com.google.cloud.secretmanager.v1.DeleteBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.DeleteBackupRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.DeleteBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.DeleteBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.DeleteBackupRequest build() { + com.google.cloud.secretmanager.v1.DeleteBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.DeleteBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.DeleteBackupRequest result = + new com.google.cloud.secretmanager.v1.DeleteBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.DeleteBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.DeleteBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.DeleteBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.DeleteBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.DeleteBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.DeleteBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.DeleteBackupRequest) + private static final com.google.cloud.secretmanager.v1.DeleteBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.DeleteBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupRequest 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.secretmanager.v1.DeleteBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..019951251776 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface DeleteBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set, the request will only succeed if it matches the etag of
+   * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. If set, the request will only succeed if it matches the etag of
+   * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequest.java new file mode 100644 index 000000000000..64f890f42a30 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequest.java @@ -0,0 +1,626 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.GetBackup][google.cloud.secretmanager.v1.SecretOperationsService.GetBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.GetBackupRequest} + */ +@com.google.protobuf.Generated +public final class GetBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.GetBackupRequest) + GetBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetBackupRequest"); + } + + // Use GetBackupRequest.newBuilder() to construct. + private GetBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetBackupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.GetBackupRequest.class, + com.google.cloud.secretmanager.v1.GetBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * 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 resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * 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.secretmanager.v1.GetBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.GetBackupRequest other = + (com.google.cloud.secretmanager.v1.GetBackupRequest) 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.secretmanager.v1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest 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.secretmanager.v1.GetBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest 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.secretmanager.v1.GetBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest 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.secretmanager.v1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest 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.secretmanager.v1.GetBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest 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.secretmanager.v1.GetBackupRequest 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
+   * [SecretOperationsService.GetBackup][google.cloud.secretmanager.v1.SecretOperationsService.GetBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.GetBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.GetBackupRequest) + com.google.cloud.secretmanager.v1.GetBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.GetBackupRequest.class, + com.google.cloud.secretmanager.v1.GetBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.GetBackupRequest.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.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.GetBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.GetBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.GetBackupRequest build() { + com.google.cloud.secretmanager.v1.GetBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.GetBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.GetBackupRequest result = + new com.google.cloud.secretmanager.v1.GetBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.GetBackupRequest 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.secretmanager.v1.GetBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.GetBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.GetBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.GetBackupRequest.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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * 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.secretmanager.v1.GetBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.GetBackupRequest) + private static final com.google.cloud.secretmanager.v1.GetBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.GetBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupRequest 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.secretmanager.v1.GetBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..840702f1ba7a --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface GetBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * 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-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequest.java new file mode 100644 index 000000000000..e35ddda79cc9 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequest.java @@ -0,0 +1,1305 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.ListBackupsRequest} + */ +@com.google.protobuf.Generated +public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListBackupsRequest) + ListBackupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListBackupsRequest"); + } + + // Use ListBackupsRequest.newBuilder() to construct. + private ListBackupsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBackupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.ListBackupsRequest.class, + com.google.cloud.secretmanager.v1.ListBackupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource name of the location associated with the
+   * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the location associated with the
+   * [Backups][google.cloud.secretmanager.v1.Backup], in the 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. Maximum number of backups to return. The service may return fewer
+   * than this value. If unspecified, at most 50 backups 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 token identifying a page of results the server should return.
+   * 
+ * + * 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.
+   * 
+ * + * 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. Filter expression to restrict the returned
+   * [Backups][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * 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. Filter expression to restrict the returned
+   * [Backups][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * 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. Field specification for sorting the results in the response.
+   * 
+ * + * 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. Field specification for sorting the results in the response.
+   * 
+ * + * 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.secretmanager.v1.ListBackupsRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.ListBackupsRequest other = + (com.google.cloud.secretmanager.v1.ListBackupsRequest) 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.secretmanager.v1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest 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.secretmanager.v1.ListBackupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest 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.secretmanager.v1.ListBackupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest 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.secretmanager.v1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest 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.secretmanager.v1.ListBackupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest 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.secretmanager.v1.ListBackupsRequest 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
+   * [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.ListBackupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListBackupsRequest) + com.google.cloud.secretmanager.v1.ListBackupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.ListBackupsRequest.class, + com.google.cloud.secretmanager.v1.ListBackupsRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.ListBackupsRequest.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.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.ListBackupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsRequest build() { + com.google.cloud.secretmanager.v1.ListBackupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsRequest buildPartial() { + com.google.cloud.secretmanager.v1.ListBackupsRequest result = + new com.google.cloud.secretmanager.v1.ListBackupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.ListBackupsRequest 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.secretmanager.v1.ListBackupsRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.ListBackupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListBackupsRequest other) { + if (other == com.google.cloud.secretmanager.v1.ListBackupsRequest.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 resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the 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. Maximum number of backups to return. The service may return fewer
+     * than this value. If unspecified, at most 50 backups 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. Maximum number of backups to return. The service may return fewer
+     * than this value. If unspecified, at most 50 backups 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. Maximum number of backups to return. The service may return fewer
+     * than this value. If unspecified, at most 50 backups 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 token identifying a page of results the server should return.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * 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. Field specification for sorting the results in the response.
+     * 
+ * + * 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. Field specification for sorting the results in the response.
+     * 
+ * + * 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. Field specification for sorting the results in the response.
+     * 
+ * + * 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. Field specification for sorting the results in the response.
+     * 
+ * + * 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. Field specification for sorting the results in the response.
+     * 
+ * + * 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.secretmanager.v1.ListBackupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListBackupsRequest) + private static final com.google.cloud.secretmanager.v1.ListBackupsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListBackupsRequest(); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsRequest 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.secretmanager.v1.ListBackupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequestOrBuilder.java new file mode 100644 index 000000000000..b3900548ba07 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface ListBackupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListBackupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location associated with the
+   * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource name of the location associated with the
+   * [Backups][google.cloud.secretmanager.v1.Backup], in the 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. Maximum number of backups to return. The service may return fewer
+   * than this value. If unspecified, at most 50 backups 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 token identifying a page of results the server should return.
+   * 
+ * + * 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.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter expression to restrict the returned
+   * [Backups][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter expression to restrict the returned
+   * [Backups][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Field specification for sorting the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Field specification for sorting the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponse.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponse.java new file mode 100644 index 000000000000..37c7f6ec2837 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponse.java @@ -0,0 +1,1440 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Response message for
+ * [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.ListBackupsResponse} + */ +@com.google.protobuf.Generated +public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListBackupsResponse) + ListBackupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListBackupsResponse"); + } + + // Use ListBackupsResponse.newBuilder() to construct. + private ListBackupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBackupsResponse() { + backups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.ListBackupsResponse.class, + com.google.cloud.secretmanager.v1.ListBackupsResponse.Builder.class); + } + + public static final int BACKUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List backups_; + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List getBackupsList() { + return backups_; + } + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List + getBackupsOrBuilderList() { + return backups_; + } + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public int getBackupsCount() { + return backups_.size(); + } + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getBackups(int index) { + return backups_.get(index); + } + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + return backups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < backups_.size(); i++) { + output.writeMessage(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(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 < backups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.secretmanager.v1.ListBackupsResponse)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.ListBackupsResponse other = + (com.google.cloud.secretmanager.v1.ListBackupsResponse) obj; + + if (!getBackupsList().equals(other.getBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) 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 (getBackupsCount() > 0) { + hash = (37 * hash) + BACKUPS_FIELD_NUMBER; + hash = (53 * hash) + getBackupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse 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.secretmanager.v1.ListBackupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse 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.secretmanager.v1.ListBackupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse 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.secretmanager.v1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse 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.secretmanager.v1.ListBackupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse 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.secretmanager.v1.ListBackupsResponse 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
+   * [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.ListBackupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListBackupsResponse) + com.google.cloud.secretmanager.v1.ListBackupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.ListBackupsResponse.class, + com.google.cloud.secretmanager.v1.ListBackupsResponse.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.ListBackupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + } else { + backups_ = null; + backupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsResponse getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.ListBackupsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsResponse build() { + com.google.cloud.secretmanager.v1.ListBackupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsResponse buildPartial() { + com.google.cloud.secretmanager.v1.ListBackupsResponse result = + new com.google.cloud.secretmanager.v1.ListBackupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.secretmanager.v1.ListBackupsResponse result) { + if (backupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backups_ = java.util.Collections.unmodifiableList(backups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backups_ = backups_; + } else { + result.backups_ = backupsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.ListBackupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.ListBackupsResponse) { + return mergeFrom((com.google.cloud.secretmanager.v1.ListBackupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListBackupsResponse other) { + if (other == com.google.cloud.secretmanager.v1.ListBackupsResponse.getDefaultInstance()) + return this; + if (backupsBuilder_ == null) { + if (!other.backups_.isEmpty()) { + if (backups_.isEmpty()) { + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackupsIsMutable(); + backups_.addAll(other.backups_); + } + onChanged(); + } + } else { + if (!other.backups_.isEmpty()) { + if (backupsBuilder_.isEmpty()) { + backupsBuilder_.dispose(); + backupsBuilder_ = null; + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + backupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBackupsFieldBuilder() + : null; + } else { + backupsBuilder_.addAllMessages(other.backups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.secretmanager.v1.Backup m = + input.readMessage( + com.google.cloud.secretmanager.v1.Backup.parser(), extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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.util.List backups_ = + java.util.Collections.emptyList(); + + private void ensureBackupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backups_ = new java.util.ArrayList(backups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + backupsBuilder_; + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public java.util.List getBackupsList() { + if (backupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backups_); + } else { + return backupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public int getBackupsCount() { + if (backupsBuilder_ == null) { + return backups_.size(); + } else { + return backupsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.Backup getBackups(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder setBackups(int index, com.google.cloud.secretmanager.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.set(index, value); + onChanged(); + } else { + backupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder setBackups( + int index, com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.set(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.secretmanager.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(value); + onChanged(); + } else { + backupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addBackups(int index, com.google.cloud.secretmanager.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(index, value); + onChanged(); + } else { + backupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addBackups( + int index, com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addAllBackups( + java.lang.Iterable values) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_); + onChanged(); + } else { + backupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder clearBackups() { + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder removeBackups(int index) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.remove(index); + onChanged(); + } else { + backupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.Backup.Builder getBackupsBuilder(int index) { + return internalGetBackupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public java.util.List + getBackupsOrBuilderList() { + if (backupsBuilder_ != null) { + return backupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backups_); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.Backup.Builder addBackupsBuilder() { + return internalGetBackupsFieldBuilder() + .addBuilder(com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.Backup.Builder addBackupsBuilder(int index) { + return internalGetBackupsFieldBuilder() + .addBuilder(index, com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public java.util.List + getBackupsBuilderList() { + return internalGetBackupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + internalGetBackupsFieldBuilder() { + if (backupsBuilder_ == null) { + backupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder>( + backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backups_ = null; + } + return backupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListBackupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListBackupsResponse) + private static final com.google.cloud.secretmanager.v1.ListBackupsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListBackupsResponse(); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsResponse 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.secretmanager.v1.ListBackupsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponseOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponseOrBuilder.java new file mode 100644 index 000000000000..1df3fe9746be --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponseOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface ListBackupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListBackupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + java.util.List getBackupsList(); + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + com.google.cloud.secretmanager.v1.Backup getBackups(int index); + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + int getBackupsCount(); + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + java.util.List + getBackupsOrBuilderList(); + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadata.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadata.java new file mode 100644 index 000000000000..1acf1f25f4b0 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadata.java @@ -0,0 +1,2940 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.OperationMetadata} + */ +@com.google.protobuf.Generated +public final class OperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OperationMetadata"); + } + + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.OperationMetadata.class, + com.google.cloud.secretmanager.v1.OperationMetadata.Builder.class); + } + + public interface ProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.OperationMetadata.Progress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Provides the total number of secret versions to be processed
+     * by the operation.
+     * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalVersionCount. + */ + int getTotalVersionCount(); + + /** + * + * + *
+     * Output only. Number of secret versions that have been successfully
+     * processed so far.
+     * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The completedVersionCount. + */ + int getCompletedVersionCount(); + + /** + * + * + *
+     * Output only. Number of secret versions that failed to process.
+     * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedVersionCount. + */ + int getFailedVersionCount(); + } + + /** + * + * + *
+   * Represents progress information for operations involving multiple secret
+   * versions.
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.OperationMetadata.Progress} + */ + public static final class Progress extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.OperationMetadata.Progress) + ProgressOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Progress"); + } + + // Use Progress.newBuilder() to construct. + private Progress(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Progress() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.class, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder.class); + } + + public static final int TOTAL_VERSION_COUNT_FIELD_NUMBER = 1; + private int totalVersionCount_ = 0; + + /** + * + * + *
+     * Output only. Provides the total number of secret versions to be processed
+     * by the operation.
+     * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalVersionCount. + */ + @java.lang.Override + public int getTotalVersionCount() { + return totalVersionCount_; + } + + public static final int COMPLETED_VERSION_COUNT_FIELD_NUMBER = 2; + private int completedVersionCount_ = 0; + + /** + * + * + *
+     * Output only. Number of secret versions that have been successfully
+     * processed so far.
+     * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The completedVersionCount. + */ + @java.lang.Override + public int getCompletedVersionCount() { + return completedVersionCount_; + } + + public static final int FAILED_VERSION_COUNT_FIELD_NUMBER = 3; + private int failedVersionCount_ = 0; + + /** + * + * + *
+     * Output only. Number of secret versions that failed to process.
+     * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedVersionCount. + */ + @java.lang.Override + public int getFailedVersionCount() { + return failedVersionCount_; + } + + 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 (totalVersionCount_ != 0) { + output.writeInt32(1, totalVersionCount_); + } + if (completedVersionCount_ != 0) { + output.writeInt32(2, completedVersionCount_); + } + if (failedVersionCount_ != 0) { + output.writeInt32(3, failedVersionCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (totalVersionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalVersionCount_); + } + if (completedVersionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, completedVersionCount_); + } + if (failedVersionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, failedVersionCount_); + } + 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.secretmanager.v1.OperationMetadata.Progress)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.OperationMetadata.Progress other = + (com.google.cloud.secretmanager.v1.OperationMetadata.Progress) obj; + + if (getTotalVersionCount() != other.getTotalVersionCount()) return false; + if (getCompletedVersionCount() != other.getCompletedVersionCount()) return false; + if (getFailedVersionCount() != other.getFailedVersionCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOTAL_VERSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalVersionCount(); + hash = (37 * hash) + COMPLETED_VERSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCompletedVersionCount(); + hash = (37 * hash) + FAILED_VERSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getFailedVersionCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress 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.secretmanager.v1.OperationMetadata.Progress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress 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.secretmanager.v1.OperationMetadata.Progress parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress 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.secretmanager.v1.OperationMetadata.Progress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress 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.secretmanager.v1.OperationMetadata.Progress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress 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.secretmanager.v1.OperationMetadata.Progress 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 progress information for operations involving multiple secret
+     * versions.
+     * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.OperationMetadata.Progress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.OperationMetadata.Progress) + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.class, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.OperationMetadata.Progress.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalVersionCount_ = 0; + completedVersionCount_ = 0; + failedVersionCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress + getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress build() { + com.google.cloud.secretmanager.v1.OperationMetadata.Progress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress buildPartial() { + com.google.cloud.secretmanager.v1.OperationMetadata.Progress result = + new com.google.cloud.secretmanager.v1.OperationMetadata.Progress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalVersionCount_ = totalVersionCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.completedVersionCount_ = completedVersionCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failedVersionCount_ = failedVersionCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.OperationMetadata.Progress) { + return mergeFrom((com.google.cloud.secretmanager.v1.OperationMetadata.Progress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.OperationMetadata.Progress other) { + if (other + == com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance()) + return this; + if (other.getTotalVersionCount() != 0) { + setTotalVersionCount(other.getTotalVersionCount()); + } + if (other.getCompletedVersionCount() != 0) { + setCompletedVersionCount(other.getCompletedVersionCount()); + } + if (other.getFailedVersionCount() != 0) { + setFailedVersionCount(other.getFailedVersionCount()); + } + 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: + { + totalVersionCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + completedVersionCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedVersionCount_ = input.readInt32(); + 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 int totalVersionCount_; + + /** + * + * + *
+       * Output only. Provides the total number of secret versions to be processed
+       * by the operation.
+       * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalVersionCount. + */ + @java.lang.Override + public int getTotalVersionCount() { + return totalVersionCount_; + } + + /** + * + * + *
+       * Output only. Provides the total number of secret versions to be processed
+       * by the operation.
+       * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The totalVersionCount to set. + * @return This builder for chaining. + */ + public Builder setTotalVersionCount(int value) { + + totalVersionCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Provides the total number of secret versions to be processed
+       * by the operation.
+       * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTotalVersionCount() { + bitField0_ = (bitField0_ & ~0x00000001); + totalVersionCount_ = 0; + onChanged(); + return this; + } + + private int completedVersionCount_; + + /** + * + * + *
+       * Output only. Number of secret versions that have been successfully
+       * processed so far.
+       * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completedVersionCount. + */ + @java.lang.Override + public int getCompletedVersionCount() { + return completedVersionCount_; + } + + /** + * + * + *
+       * Output only. Number of secret versions that have been successfully
+       * processed so far.
+       * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The completedVersionCount to set. + * @return This builder for chaining. + */ + public Builder setCompletedVersionCount(int value) { + + completedVersionCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of secret versions that have been successfully
+       * processed so far.
+       * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCompletedVersionCount() { + bitField0_ = (bitField0_ & ~0x00000002); + completedVersionCount_ = 0; + onChanged(); + return this; + } + + private int failedVersionCount_; + + /** + * + * + *
+       * Output only. Number of secret versions that failed to process.
+       * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedVersionCount. + */ + @java.lang.Override + public int getFailedVersionCount() { + return failedVersionCount_; + } + + /** + * + * + *
+       * Output only. Number of secret versions that failed to process.
+       * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The failedVersionCount to set. + * @return This builder for chaining. + */ + public Builder setFailedVersionCount(int value) { + + failedVersionCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of secret versions that failed to process.
+       * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFailedVersionCount() { + bitField0_ = (bitField0_ & ~0x00000004); + failedVersionCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.OperationMetadata.Progress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.OperationMetadata.Progress) + private static final com.google.cloud.secretmanager.v1.OperationMetadata.Progress + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.OperationMetadata.Progress(); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress 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.secretmanager.v1.OperationMetadata.Progress + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object 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(); + target_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object verb_ = ""; + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + 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(); + verb_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + 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(); + statusMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_ = false; + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + 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(); + apiVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_FIELD_NUMBER = 8; + private com.google.cloud.secretmanager.v1.OperationMetadata.Progress progress_; + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + @java.lang.Override + public boolean hasProgress() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress getProgress() { + return progress_ == null + ? com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance() + : progress_; + } + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder + getProgressOrBuilder() { + return progress_ == null + ? com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance() + : progress_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, apiVersion_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getProgress()); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, apiVersion_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getProgress()); + } + 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.secretmanager.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.OperationMetadata other = + (com.google.cloud.secretmanager.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (hasProgress() != other.hasProgress()) return false; + if (hasProgress()) { + if (!getProgress().equals(other.getProgress())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + if (hasProgress()) { + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getProgress().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata 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.secretmanager.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata 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.secretmanager.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata 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.secretmanager.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata 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.secretmanager.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata 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.secretmanager.v1.OperationMetadata 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 metadata of the long-running operation.
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.OperationMetadata) + com.google.cloud.secretmanager.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.OperationMetadata.class, + com.google.cloud.secretmanager.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.OperationMetadata.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(); + internalGetEndTimeFieldBuilder(); + internalGetProgressFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata build() { + com.google.cloud.secretmanager.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata buildPartial() { + com.google.cloud.secretmanager.v1.OperationMetadata result = + new com.google.cloud.secretmanager.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.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.secretmanager.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.secretmanager.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.OperationMetadata other) { + if (other == com.google.cloud.secretmanager.v1.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetProgressFieldBuilder().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 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. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.secretmanager.v1.OperationMetadata.Progress progress_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.OperationMetadata.Progress, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder, + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder> + progressBuilder_; + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + public boolean hasProgress() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null + ? com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance() + : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress(com.google.cloud.secretmanager.v1.OperationMetadata.Progress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + } else { + progressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProgress( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress value) { + if (progressBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && progress_ != null + && progress_ + != com.google.cloud.secretmanager.v1.OperationMetadata.Progress + .getDefaultInstance()) { + getProgressBuilder().mergeFrom(value); + } else { + progress_ = value; + } + } else { + progressBuilder_.mergeFrom(value); + } + if (progress_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProgress() { + bitField0_ = (bitField0_ & ~0x00000080); + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder + getProgressBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetProgressFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder + getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null + ? com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance() + : progress_; + } + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.OperationMetadata.Progress, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder, + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder> + internalGetProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.OperationMetadata.Progress, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder, + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); + progress_ = null; + } + return progressBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.OperationMetadata) + private static final com.google.cloud.secretmanager.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.OperationMetadata(); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata 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.secretmanager.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadataOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..9ca438912d38 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,276 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString getApiVersionBytes(); + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + boolean hasProgress(); + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + com.google.cloud.secretmanager.v1.OperationMetadata.Progress getProgress(); + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder getProgressOrBuilder(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationsServiceProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationsServiceProto.java new file mode 100644 index 000000000000..1b4ce5f3d65b --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationsServiceProto.java @@ -0,0 +1,363 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public final class OperationsServiceProto extends com.google.protobuf.GeneratedFile { + private OperationsServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OperationsServiceProto"); + } + + 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_secretmanager_v1_ListBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Backup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_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/secretmanager/v1/operations_service.proto\022\035google.cloud.secretman" + + "ager.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032-google/cloud/secretmanager/v1/resour" + + "ces.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\263\001\n" + + "\022ListBackupsRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#secretmanager.googleapis.com/Backup\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\201\001\n" + + "\023ListBackupsResponse\0226\n" + + "\007backups\030\001 \003(\0132%.google.cloud.secretmanager.v1.Backup\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"N\n" + + "\020GetBackupRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#secretmanager.googleapis.com/Backup\"\251\001\n" + + "\023CreateBackupRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#secretmanager.googleapis.com/Backup\022\027\n" + + "\tbackup_id\030\002 \001(\tB\004\342A\001\002\022;\n" + + "\006backup\030\003" + + " \001(\0132%.google.cloud.secretmanager.v1.BackupB\004\342A\001\002\"\211\001\n" + + "\023UpdateBackupRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022;\n" + + "\006backup\030\002 " + + "\001(\0132%.google.cloud.secretmanager.v1.BackupB\004\342A\001\002\"e\n" + + "\023DeleteBackupRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#secretmanager.googleapis.com/Backup\022\022\n" + + "\004etag\030\002 \001(\tB\004\342A\001\001\"\212\002\n" + + "\024RestoreBackupRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#secretmanager.googleapis.com/Backup\022O\n" + + "\031destination_secret_parent\030\002 \001(" + + "\tB,\342A\001\002\372A%\022#secretmanager.googleapis.com/Secret\022#\n" + + "\025destination_secret_id\030\003 \001(\tB\004\342A\001\002\022@\n" + + "\014kms_key_name\030\004 \001(\tB*\342A\001\001\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\"\324\003\n" + + "\021OperationMetadata\0225\n" + + "\013create_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" + + "\010end_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + + "\006target\030\003 \001(\tB\004\342A\001\003\022\022\n" + + "\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n" + + "\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n" + + "\026requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n" + + "\013api_version\030\007 \001(\tB\004\342A\001\003\022Q\n" + + "\010progress\030\010 \001(\01329.google.cloud." + + "secretmanager.v1.OperationMetadata.ProgressB\004\342A\001\003\032x\n" + + "\010Progress\022!\n" + + "\023total_version_count\030\001 \001(\005B\004\342A\001\003\022%\n" + + "\027completed_version_count\030\002 \001(\005B\004\342A\001\003\022\"\n" + + "\024failed_version_count\030\003 \001(\005B\004\342A\001\003\"\311\005\n" + + "\006Backup\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022D\n\r" + + "source_secret\030\002 \001(\tB-\342A\002\002\005\372A%\n" + + "#secretmanager.googleapis.com/Secret\0225\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022C\n" + + "\031source_secret_create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\033\n\r" + + "version_count\030\006 \001(\005B\004\342A\001\003\022G\n" + + "\006labels\030\007" + + " \003(\01321.google.cloud.secretmanager.v1.Backup.LabelsEntryB\004\342A\001\001\022@\n" + + "\005state\030\010" + + " \001(\0162+.google.cloud.secretmanager.v1.Backup.StateB\004\342A\001\003\022\022\n" + + "\004etag\030\013 \001(\tB\004\342A\001\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"R\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010UPDATING\020\003\022\n" + + "\n" + + "\006FAILED\020\004:s\352Ap\n" + + "#secretmanager.googleapis.com/Backup\0228projects/{project}/locatio" + + "ns/{location}/backups/{backup}*\007backups2\006backup2\335\n\n" + + "\027SecretOperationsService\022\262\001\n" + + "\013ListBackups\0221.google.cloud.secretmanager" + + ".v1.ListBackupsRequest\0322.google.cloud.se" + + "cretmanager.v1.ListBackupsResponse\"<\332A\006p" + + "arent\202\323\344\223\002-\022+/v1/{parent=projects/*/locations/*}/backups\022\237\001\n" + + "\tGetBackup\022/.google.cloud.secretmanager.v1.GetBackupRequest\032" + + "%.google.cloud.secretmanager.v1.Backup\":" + + "\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/backups/*}\022\326\001\n" + + "\014CreateBackup\0222.google.cloud.secretmanager.v1.CreateBackup" + + "Request\032\035.google.longrunning.Operation\"s\312A\033\n" + + "\006Backup\022\021OperationMetadata\332A\027parent," + + "backup,backup_id\202\323\344\223\0025\"+/v1/{parent=projects/*/locations/*}/backups:\006backup\022\330\001\n" + + "\014UpdateBackup\0222.google.cloud.secretmanage" + + "r.v1.UpdateBackupRequest\032\035.google.longrunning.Operation\"u\312A\033\n" + + "\006Backup\022\021OperationM" + + "etadata\332A\022backup,update_mask\202\323\344\223\002<22/v1/" + + "{backup.name=projects/*/locations/*/backups/*}:\006backup\022\312\001\n" + + "\014DeleteBackup\0222.google" + + ".cloud.secretmanager.v1.DeleteBackupRequest\032\035.google.longrunning.Operation\"g\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/backups/*}\022\227\002\n\r" + + "RestoreBackup\0223.google.cloud.secretmanager.v1.RestoreBac" + + "kupRequest\032\035.google.longrunning.Operation\"\261\001\312A9\n" + + "$google.cloud.secretmanager.v1.Secret\022\021OperationMetadata\332A4name,destinat" + + "ion_secret_parent,destination_secret_id\202" + + "\323\344\223\0028\"3/v1/{name=projects/*/locations/*/" + + "backups/*}:restore:\001*\032P\312A\034secretmanager." + + "googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\352\002\n" + + "!com.google.cloud.secretmanager.v1B\026OperationsService" + + "ProtoP\001ZGcloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb" + + "\242\002\003GSM\252\002\035Google.Cloud.SecretManager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002" + + " Google::Cloud::SecretManager::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{proje" + + "ct}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\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.secretmanager.v1.ResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { + "Backups", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor, + new java.lang.String[] { + "Parent", "BackupId", "Backup", + }); + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Backup", + }); + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor, + new java.lang.String[] { + "Name", "DestinationSecretParent", "DestinationSecretId", "KmsKeyName", + }); + internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_secretmanager_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + "Progress", + }); + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor = + internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor.getNestedType(0); + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor, + new java.lang.String[] { + "TotalVersionCount", "CompletedVersionCount", "FailedVersionCount", + }); + internal_static_google_cloud_secretmanager_v1_Backup_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_secretmanager_v1_Backup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Backup_descriptor, + new java.lang.String[] { + "Name", + "SourceSecret", + "CreateTime", + "UpdateTime", + "SourceSecretCreateTime", + "VersionCount", + "Labels", + "State", + "Etag", + }); + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_secretmanager_v1_Backup_descriptor.getNestedType(0); + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + 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.secretmanager.v1.ResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.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.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + 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-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java index 7cd0123239db..05d237eda2c3 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java @@ -139,7 +139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032*google/iam/v1/resour" + "ce_policy_member.proto\032\036google/protobuf/" - + "duration.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\200\014\n" + + "duration.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\211\r\n" + "\006Secret\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022F\n" + "\013replication\030\002" @@ -170,7 +170,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013secret_type\030\021" + " \001(\01620.google.cloud.secretmanager.v1.Secret.SecretTypeB\005\342A\002\005\001\022@\n\r" + "policy_member\030\022" - + " \001(\0132#.google.iam.v1.ResourcePolicyMemberB\004\342A\001\003\032-\n" + + " \001(\0132#.google.iam.v1.ResourcePolicyMemberB\004\342A\001\003\022@\n" + + "\005state\030\023 \001(\0162+.goog" + + "le.cloud.secretmanager.v1.Secret.StateB\004\342A\001\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\0325\n" @@ -181,9 +183,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" - + "\005value\030\002 \001(\t:\0028\001\"\215\001\n\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"E\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\020\n" + + "\014STATE_ACTIVE\020\001\022\023\n" + + "\017STATE_RESTORING\020\002\"\215\001\n\n" + "SecretType\022\033\n" + "\027SECRET_TYPE_UNSPECIFIED\020\000\022\034\n" + "\030CLOUD_SQL_DB_CREDENTIALS\020\001\022\016\n\n" @@ -191,9 +196,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013CERTIFICATE\020\003\022\030\n" + "\024OTHER_DB_CREDENTIALS\020\004\022\t\n" + "\005OTHER\0202:\231\001\352A\225\001\n" - + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secre" - + "t}\0228projects/{project}/locations/{location}/secrets/{secret}*\007secrets2\006secretB\014\n" - + "\n" + + "#secretmanager.googleapis.com/Secret\022#projects/{projec" + + "t}/secrets/{secret}\0228projects/{project}/" + + "locations/{location}/secrets/{secret}*\007secrets2\006secretB\014\n\n" + "expiration\"\312\006\n\r" + "SecretVersion\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\0225\n" @@ -201,59 +206,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0226\n" + "\014destroy_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022G\n" - + "\005state\030\004" - + " \001(\01622.google.cloud.secretmanager.v1.SecretVersion.StateB\004\342A\001\003\022L\n" - + "\022replication_status\030\005" - + " \001(\01320.google.cloud.secretmanager.v1.ReplicationStatus\022\022\n" + + "\005state\030\004 \001(\01622.googl" + + "e.cloud.secretmanager.v1.SecretVersion.StateB\004\342A\001\003\022L\n" + + "\022replication_status\030\005 \001(\01320" + + ".google.cloud.secretmanager.v1.ReplicationStatus\022\022\n" + "\004etag\030\006 \001(\tB\004\342A\001\003\022/\n" + "!client_specified_payload_checksum\030\007 \001(\010B\004\342A\001\003\022@\n" + "\026scheduled_destroy_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022i\n" - + "\033customer_managed_encryption\030\t " - + "\001(\0132>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003\"H\n" + + "\033customer_managed_encryption\030\t \001(\0132>.google.cloud.secr" + + "etmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003\"H\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\022\r\n" + "\tDESTROYED\020\003:\342\001\352A\336\001\n" - + "*secretmanager.googleapis.com/SecretVersion\022=" - + "projects/{project}/secrets/{secret}/versions/{secret_version}\022Rprojects/{project" - + "}/locations/{location}/secrets/{secret}/" - + "versions/{secret_version}*\016secretVersions2\r" + + "*secretmanager.googleapis.com/SecretVersion\022=projects/{project}/secr" + + "ets/{secret}/versions/{secret_version}\022Rprojects/{project}/locations/{location}/" + + "secrets/{secret}/versions/{secret_version}*\016secretVersions2\r" + "secretVersion\"\224\004\n" + "\013Replication\022I\n" - + "\tautomatic\030\001" - + " \001(\01324.google.cloud.secretmanager.v1.Replication.AutomaticH\000\022N\n" - + "\014user_managed\030\002" - + " \001(\01326.google.cloud.secretmanager.v1.Replication.UserManagedH\000\032p\n" + + "\tautomatic\030\001 \001(\01324.google.cl" + + "oud.secretmanager.v1.Replication.AutomaticH\000\022N\n" + + "\014user_managed\030\002 \001(\01326.google.clou" + + "d.secretmanager.v1.Replication.UserManagedH\000\032p\n" + "\tAutomatic\022c\n" - + "\033customer_managed_encryption\030\001 \001(\01328." - + "google.cloud.secretmanager.v1.CustomerManagedEncryptionB\004\342A\001\001\032\350\001\n" + + "\033customer_managed_encryption\030\001 \001(\01328.google.cloud.secretmana" + + "ger.v1.CustomerManagedEncryptionB\004\342A\001\001\032\350\001\n" + "\013UserManaged\022V\n" - + "\010replicas\030\001 \003(\0132>.google.cloud.secretman" - + "ager.v1.Replication.UserManaged.ReplicaB\004\342A\001\002\032\200\001\n" + + "\010replicas\030\001 \003(\0132>.googl" + + "e.cloud.secretmanager.v1.Replication.UserManaged.ReplicaB\004\342A\001\002\032\200\001\n" + "\007Replica\022\020\n" + "\010location\030\001 \001(\t\022c\n" - + "\033customer_managed_encryption\030\002 \001(\01328.googl" - + "e.cloud.secretmanager.v1.CustomerManagedEncryptionB\004\342A\001\001B\r\n" + + "\033customer_managed_encryption\030\002" + + " \001(\01328.google.cloud.secretmanager.v1.CustomerManagedEncryptionB\004\342A\001\001B\r\n" + "\013replication\"7\n" + "\031CustomerManagedEncryption\022\032\n" + "\014kms_key_name\030\001 \001(\tB\004\342A\001\002\"\357\004\n" + "\021ReplicationStatus\022U\n" - + "\tautomatic\030\001" - + " \001(\0132@.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusH\000\022Z\n" - + "\014user_managed\030\002 \001(\0132B.google.cloud.secre" - + "tmanager.v1.ReplicationStatus.UserManagedStatusH\000\032|\n" + + "\tautomatic\030\001 \001(\0132@.google.clou" + + "d.secretmanager.v1.ReplicationStatus.AutomaticStatusH\000\022Z\n" + + "\014user_managed\030\002 \001(\0132B.g" + + "oogle.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusH\000\032|\n" + "\017AutomaticStatus\022i\n" - + "\033customer_managed_encryption\030\001 \001(\0132>.google.cloud" - + ".secretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003\032\222\002\n" + + "\033customer_managed_encryption\030\001 \001" + + "(\0132>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003\032\222\002\n" + "\021UserManagedStatus\022h\n" - + "\010replicas\030\001 \003(\0132P.google.cloud.secretman" - + "ager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusB\004\342A\001\003\032\222\001\n\r" + + "\010replicas\030\001 \003(\0132P.google.cloud.secretmanager.v1.ReplicationStat" + + "us.UserManagedStatus.ReplicaStatusB\004\342A\001\003\032\222\001\n\r" + "ReplicaStatus\022\026\n" + "\010location\030\001 \001(\tB\004\342A\001\003\022i\n" - + "\033customer_managed_encryption\030\002 \001(\0132>.google.cloud.se" - + "cretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003B\024\n" + + "\033customer_managed_encryption\030\002 \001(\0132" + + ">.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003B\024\n" + "\022replication_status\"E\n" + "\037CustomerManagedEncryptionStatus\022\"\n" + "\024kms_key_version_name\030\001 \001(\tB\004\342A\001\002\"`\n" @@ -265,11 +269,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\0228\n" + "\017rotation_period\030\002" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\004\022d\n" - + "\027managed_rotation_status\030\003 \001(\0132=.google.cloud.secretmanager.v" - + "1.Rotation.ManagedRotationStatusB\004\342A\001\003\032\324\001\n" + + "\027managed_rotation_status\030\003 \001(\0132=.google.clou" + + "d.secretmanager.v1.Rotation.ManagedRotationStatusB\004\342A\001\003\032\324\001\n" + "\025ManagedRotationStatus\022X\n" - + "\005state\030\001 \001(\0162" - + "C.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.StateB\004\342A\001\003\022\'\n" + + "\005state\030\001 \001(\0162C.google.cloud.secretma" + + "nager.v1.Rotation.ManagedRotationStatus.StateB\004\342A\001\003\022\'\n" + "\005error\030\002 \001(\0132\022.google.rpc.StatusB\004\342A\001\003\"8\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" @@ -283,10 +287,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013instance_id\030\001 \001(\tB\004\342A\001\002\022\026\n" + "\010username\030\002 \001(\tB\004\342A\001\002\022\026\n" + "\010password\030\003 \001(\tB\004\342A\001\001B\347\001\n" - + "!com.google.cloud.secretmanager.v1B\016ResourcesProtoP\001ZGcloud.google.com/go/se" - + "cretmanager/apiv1/secretmanagerpb;secret" - + "managerpb\242\002\003GSM\252\002\035Google.Cloud.SecretMan" - + "ager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002" + + "!com.google.cloud.secretmanager.v1B\016ResourcesProtoP\001ZGcloud" + + ".google.com/go/secretmanager/apiv1/secre" + + "tmanagerpb;secretmanagerpb\242\002\003GSM\252\002\035Googl" + + "e.Cloud.SecretManager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002" + " Google::Cloud::SecretManager::V1b\006proto3" }; descriptor = @@ -322,6 +326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tags", "SecretType", "PolicyMember", + "State", "Expiration", }); internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor = diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequest.java new file mode 100644 index 000000000000..9772df24d113 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequest.java @@ -0,0 +1,1299 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.RestoreBackup][google.cloud.secretmanager.v1.SecretOperationsService.RestoreBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.RestoreBackupRequest} + */ +@com.google.protobuf.Generated +public final class RestoreBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.RestoreBackupRequest) + RestoreBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RestoreBackupRequest"); + } + + // Use RestoreBackupRequest.newBuilder() to construct. + private RestoreBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RestoreBackupRequest() { + name_ = ""; + destinationSecretParent_ = ""; + destinationSecretId_ = ""; + kmsKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.RestoreBackupRequest.class, + com.google.cloud.secretmanager.v1.RestoreBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+   * `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * + * 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 resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+   * `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * + * 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 DESTINATION_SECRET_PARENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationSecretParent_ = ""; + + /** + * + * + *
+   * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+   * to be created from this backup. Formats:
+   * - `projects/{project}/locations/{location}` (for regional secrets)
+   * - `projects/{project}` (for global secrets)
+   * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSecretParent. + */ + @java.lang.Override + public java.lang.String getDestinationSecretParent() { + java.lang.Object ref = destinationSecretParent_; + 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(); + destinationSecretParent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+   * to be created from this backup. Formats:
+   * - `projects/{project}/locations/{location}` (for regional secrets)
+   * - `projects/{project}` (for global secrets)
+   * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSecretParent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationSecretParentBytes() { + java.lang.Object ref = destinationSecretParent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSecretParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_SECRET_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationSecretId_ = ""; + + /** + * + * + *
+   * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+   * be created from this backup. This must be unique within the project.
+   *
+   * A secret ID is a string with a maximum length of 255 characters and can
+   * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+   * and underscore (`_`) characters.
+   * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationSecretId. + */ + @java.lang.Override + public java.lang.String getDestinationSecretId() { + java.lang.Object ref = destinationSecretId_; + 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(); + destinationSecretId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+   * be created from this backup. This must be unique within the project.
+   *
+   * A secret ID is a string with a maximum length of 255 characters and can
+   * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+   * and underscore (`_`) characters.
+   * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationSecretId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationSecretIdBytes() { + java.lang.Object ref = destinationSecretId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSecretId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+   * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + 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(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+   * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = 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(destinationSecretParent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationSecretParent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationSecretId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, destinationSecretId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, kmsKeyName_); + } + 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(destinationSecretParent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationSecretParent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationSecretId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, destinationSecretId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, kmsKeyName_); + } + 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.secretmanager.v1.RestoreBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.RestoreBackupRequest other = + (com.google.cloud.secretmanager.v1.RestoreBackupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDestinationSecretParent().equals(other.getDestinationSecretParent())) return false; + if (!getDestinationSecretId().equals(other.getDestinationSecretId())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) 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) + DESTINATION_SECRET_PARENT_FIELD_NUMBER; + hash = (53 * hash) + getDestinationSecretParent().hashCode(); + hash = (37 * hash) + DESTINATION_SECRET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDestinationSecretId().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest 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.secretmanager.v1.RestoreBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest 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.secretmanager.v1.RestoreBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest 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.secretmanager.v1.RestoreBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest 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.secretmanager.v1.RestoreBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest 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.secretmanager.v1.RestoreBackupRequest 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
+   * [SecretOperationsService.RestoreBackup][google.cloud.secretmanager.v1.SecretOperationsService.RestoreBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.RestoreBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.RestoreBackupRequest) + com.google.cloud.secretmanager.v1.RestoreBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.RestoreBackupRequest.class, + com.google.cloud.secretmanager.v1.RestoreBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.RestoreBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationSecretParent_ = ""; + destinationSecretId_ = ""; + kmsKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.RestoreBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.RestoreBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.RestoreBackupRequest build() { + com.google.cloud.secretmanager.v1.RestoreBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.RestoreBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.RestoreBackupRequest result = + new com.google.cloud.secretmanager.v1.RestoreBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.RestoreBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationSecretParent_ = destinationSecretParent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.destinationSecretId_ = destinationSecretId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.RestoreBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.RestoreBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.RestoreBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.RestoreBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDestinationSecretParent().isEmpty()) { + destinationSecretParent_ = other.destinationSecretParent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDestinationSecretId().isEmpty()) { + destinationSecretId_ = other.destinationSecretId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + 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 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationSecretParent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + destinationSecretId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + kmsKeyName_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * 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 resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * 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 destinationSecretParent_ = ""; + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSecretParent. + */ + public java.lang.String getDestinationSecretParent() { + java.lang.Object ref = destinationSecretParent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationSecretParent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSecretParent. + */ + public com.google.protobuf.ByteString getDestinationSecretParentBytes() { + java.lang.Object ref = destinationSecretParent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSecretParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The destinationSecretParent to set. + * @return This builder for chaining. + */ + public Builder setDestinationSecretParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationSecretParent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationSecretParent() { + destinationSecretParent_ = getDefaultInstance().getDestinationSecretParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for destinationSecretParent to set. + * @return This builder for chaining. + */ + public Builder setDestinationSecretParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationSecretParent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object destinationSecretId_ = ""; + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationSecretId. + */ + public java.lang.String getDestinationSecretId() { + java.lang.Object ref = destinationSecretId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationSecretId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationSecretId. + */ + public com.google.protobuf.ByteString getDestinationSecretIdBytes() { + java.lang.Object ref = destinationSecretId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSecretId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The destinationSecretId to set. + * @return This builder for chaining. + */ + public Builder setDestinationSecretId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationSecretId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDestinationSecretId() { + destinationSecretId_ = getDefaultInstance().getDestinationSecretId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for destinationSecretId to set. + * @return This builder for chaining. + */ + public Builder setDestinationSecretIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationSecretId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.RestoreBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.RestoreBackupRequest) + private static final com.google.cloud.secretmanager.v1.RestoreBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.RestoreBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreBackupRequest 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.secretmanager.v1.RestoreBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequestOrBuilder.java new file mode 100644 index 000000000000..fbebf2ceaf80 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequestOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface RestoreBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.RestoreBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+   * `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+   * `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+   * to be created from this backup. Formats:
+   * - `projects/{project}/locations/{location}` (for regional secrets)
+   * - `projects/{project}` (for global secrets)
+   * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSecretParent. + */ + java.lang.String getDestinationSecretParent(); + + /** + * + * + *
+   * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+   * to be created from this backup. Formats:
+   * - `projects/{project}/locations/{location}` (for regional secrets)
+   * - `projects/{project}` (for global secrets)
+   * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSecretParent. + */ + com.google.protobuf.ByteString getDestinationSecretParentBytes(); + + /** + * + * + *
+   * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+   * be created from this backup. This must be unique within the project.
+   *
+   * A secret ID is a string with a maximum length of 255 characters and can
+   * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+   * and underscore (`_`) characters.
+   * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationSecretId. + */ + java.lang.String getDestinationSecretId(); + + /** + * + * + *
+   * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+   * be created from this backup. This must be unique within the project.
+   *
+   * A secret ID is a string with a maximum length of 255 characters and can
+   * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+   * and underscore (`_`) characters.
+   * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationSecretId. + */ + com.google.protobuf.ByteString getDestinationSecretIdBytes(); + + /** + * + * + *
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+   * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+   * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java index 79967cb3051f..5deb06c8f3c7 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java @@ -61,6 +61,7 @@ private Secret() { topics_ = java.util.Collections.emptyList(); etag_ = ""; secretType_ = 0; + state_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -96,6 +97,177 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.secretmanager.v1.Secret.Builder.class); } + /** + * + * + *
+   * Represents the current state of the Secret.
+   * 
+ * + * Protobuf enum {@code google.cloud.secretmanager.v1.Secret.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Secret is in active state, usage is allowed.
+     * 
+ * + * STATE_ACTIVE = 1; + */ + STATE_ACTIVE(1), + /** + * + * + *
+     * Secret is being restored from a backup. Operations on the secret and its
+     * versions are restricted.
+     * 
+ * + * STATE_RESTORING = 2; + */ + STATE_RESTORING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Secret is in active state, usage is allowed.
+     * 
+ * + * STATE_ACTIVE = 1; + */ + public static final int STATE_ACTIVE_VALUE = 1; + + /** + * + * + *
+     * Secret is being restored from a backup. Operations on the secret and its
+     * versions are restricted.
+     * 
+ * + * STATE_RESTORING = 2; + */ + public static final int STATE_RESTORING_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 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 STATE_ACTIVE; + case 2: + return STATE_RESTORING; + 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.secretmanager.v1.Secret.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.secretmanager.v1.Secret.State) + } + /** * * @@ -316,7 +488,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.Secret.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.secretmanager.v1.Secret.getDescriptor().getEnumTypes().get(1); } private static final SecretType[] VALUES = values(); @@ -1771,6 +1943,47 @@ public com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder( : policyMember_; } + public static final int STATE_FIELD_NUMBER = 19; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The current state of the Secret.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.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 current state of the Secret.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Secret.State getState() { + com.google.cloud.secretmanager.v1.Secret.State result = + com.google.cloud.secretmanager.v1.Secret.State.forNumber(state_); + return result == null ? com.google.cloud.secretmanager.v1.Secret.State.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1831,6 +2044,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(18, getPolicyMember()); } + if (state_ != com.google.cloud.secretmanager.v1.Secret.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, state_); + } getUnknownFields().writeTo(output); } @@ -1924,6 +2140,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getPolicyMember()); } + if (state_ != com.google.cloud.secretmanager.v1.Secret.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, state_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1972,6 +2191,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPolicyMember()) { if (!getPolicyMember().equals(other.getPolicyMember())) return false; } + if (state_ != other.state_) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 6: @@ -2044,6 +2264,8 @@ public int hashCode() { hash = (37 * hash) + POLICY_MEMBER_FIELD_NUMBER; hash = (53 * hash) + getPolicyMember().hashCode(); } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; switch (expirationCase_) { case 6: hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; @@ -2300,6 +2522,7 @@ public Builder clear() { policyMemberBuilder_.dispose(); policyMemberBuilder_ = null; } + state_ = 0; expirationCase_ = 0; expiration_ = null; return this; @@ -2410,6 +2633,9 @@ private void buildPartial0(com.google.cloud.secretmanager.v1.Secret result) { policyMemberBuilder_ == null ? policyMember_ : policyMemberBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.state_ = state_; + } result.bitField0_ |= to_bitField0_; } @@ -2502,6 +2728,9 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) { if (other.hasPolicyMember()) { mergePolicyMember(other.getPolicyMember()); } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } switch (other.getExpirationCase()) { case EXPIRE_TIME: { @@ -2676,6 +2905,12 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 146 + case 152: + { + state_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6411,6 +6646,111 @@ public com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder( return policyMemberBuilder_; } + private int state_ = 0; + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.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 current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.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_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Secret.State getState() { + com.google.cloud.secretmanager.v1.Secret.State result = + com.google.cloud.secretmanager.v1.Secret.State.forNumber(state_); + return result == null ? com.google.cloud.secretmanager.v1.Secret.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.secretmanager.v1.Secret.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00010000); + state_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Secret) } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java index 65ab6535dcd7..a88d8b1e820e 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java @@ -1054,5 +1054,35 @@ java.lang.String getTagsOrDefault( */ com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder(); + /** + * + * + *
+   * Output only. The current state of the Secret.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The current state of the Secret.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.secretmanager.v1.Secret.State getState(); + com.google.cloud.secretmanager.v1.Secret.ExpirationCase getExpirationCase(); } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequest.java new file mode 100644 index 000000000000..db37e27f932c --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequest.java @@ -0,0 +1,1085 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.UpdateBackup][google.cloud.secretmanager.v1.SecretOperationsService.UpdateBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.UpdateBackupRequest} + */ +@com.google.protobuf.Generated +public final class UpdateBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.UpdateBackupRequest) + UpdateBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateBackupRequest"); + } + + // Use UpdateBackupRequest.newBuilder() to construct. + private UpdateBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateBackupRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.UpdateBackupRequest.class, + com.google.cloud.secretmanager.v1.UpdateBackupRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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 specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int BACKUP_FIELD_NUMBER = 2; + private com.google.cloud.secretmanager.v1.Backup backup_; + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + @java.lang.Override + public boolean hasBackup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getBackup() { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder() { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getBackup()); + } + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackup()); + } + 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.secretmanager.v1.UpdateBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.UpdateBackupRequest other = + (com.google.cloud.secretmanager.v1.UpdateBackupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasBackup() != other.hasBackup()) return false; + if (hasBackup()) { + if (!getBackup().equals(other.getBackup())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasBackup()) { + hash = (37 * hash) + BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getBackup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest 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.secretmanager.v1.UpdateBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest 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.secretmanager.v1.UpdateBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest 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.secretmanager.v1.UpdateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest 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.secretmanager.v1.UpdateBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest 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.secretmanager.v1.UpdateBackupRequest 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
+   * [SecretOperationsService.UpdateBackup][google.cloud.secretmanager.v1.SecretOperationsService.UpdateBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.UpdateBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.UpdateBackupRequest) + com.google.cloud.secretmanager.v1.UpdateBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.UpdateBackupRequest.class, + com.google.cloud.secretmanager.v1.UpdateBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.UpdateBackupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetBackupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + backup_ = null; + if (backupBuilder_ != null) { + backupBuilder_.dispose(); + backupBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.UpdateBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.UpdateBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.UpdateBackupRequest build() { + com.google.cloud.secretmanager.v1.UpdateBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.UpdateBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.UpdateBackupRequest result = + new com.google.cloud.secretmanager.v1.UpdateBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.UpdateBackupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.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.secretmanager.v1.UpdateBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.UpdateBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.UpdateBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.UpdateBackupRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasBackup()) { + mergeBackup(other.getBackup()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetBackupFieldBuilder().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.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 specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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 specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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 specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_; + } + + private com.google.cloud.secretmanager.v1.Backup backup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + backupBuilder_; + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + public boolean hasBackup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + public com.google.cloud.secretmanager.v1.Backup getBackup() { + if (backupBuilder_ == null) { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } else { + return backupBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackup(com.google.cloud.secretmanager.v1.Backup value) { + if (backupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backup_ = value; + } else { + backupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackup(com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupBuilder_ == null) { + backup_ = builderForValue.build(); + } else { + backupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackup(com.google.cloud.secretmanager.v1.Backup value) { + if (backupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && backup_ != null + && backup_ != com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()) { + getBackupBuilder().mergeFrom(value); + } else { + backup_ = value; + } + } else { + backupBuilder_.mergeFrom(value); + } + if (backup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackup() { + bitField0_ = (bitField0_ & ~0x00000002); + backup_ = null; + if (backupBuilder_ != null) { + backupBuilder_.dispose(); + backupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.secretmanager.v1.Backup.Builder getBackupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBackupFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder() { + if (backupBuilder_ != null) { + return backupBuilder_.getMessageOrBuilder(); + } else { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + internalGetBackupFieldBuilder() { + if (backupBuilder_ == null) { + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); + backup_ = null; + } + return backupBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.UpdateBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.UpdateBackupRequest) + private static final com.google.cloud.secretmanager.v1.UpdateBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.UpdateBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBackupRequest 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.secretmanager.v1.UpdateBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequestOrBuilder.java new file mode 100644 index 000000000000..199b5e0b6d4d --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface UpdateBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.UpdateBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + boolean hasBackup(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + com.google.cloud.secretmanager.v1.Backup getBackup(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/operations_service.proto b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/operations_service.proto new file mode 100644 index 000000000000..10643585d1cd --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/operations_service.proto @@ -0,0 +1,416 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.secretmanager.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/secretmanager/v1/resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.SecretManager.V1"; +option go_package = "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb"; +option java_multiple_files = true; +option java_outer_classname = "OperationsServiceProto"; +option java_package = "com.google.cloud.secretmanager.v1"; +option objc_class_prefix = "GSM"; +option php_namespace = "Google\\Cloud\\SecretManager\\V1"; +option ruby_package = "Google::Cloud::SecretManager::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; + +// Secret Operations Service +// +// Manages backups of secrets. Implements a REST model with the following +// objects: +// +// * [Backup][google.cloud.secretmanager.v1.Backup] +// +// Note: `SecretOperationsService` is a regional service and must be called +// using regional endpoints (`secretmanager.{location}.rep.googleapis.com`). +service SecretOperationsService { + option (google.api.default_host) = "secretmanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Backups in a given project and location. + rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/backups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Backup. + rpc GetBackup(GetBackupRequest) returns (Backup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Backup in a given project and location. + rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/backups" + body: "backup" + }; + option (google.api.method_signature) = "parent,backup,backup_id"; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single Backup. + rpc UpdateBackup(UpdateBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{backup.name=projects/*/locations/*/backups/*}" + body: "backup" + }; + option (google.api.method_signature) = "backup,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Backup. + rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + // [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + // [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the + // restoration process, and the result of the LRO is the newly created Secret. + rpc RestoreBackup(RestoreBackupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/backups/*}:restore" + body: "*" + }; + option (google.api.method_signature) = + "name,destination_secret_parent,destination_secret_id"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.secretmanager.v1.Secret" + metadata_type: "OperationMetadata" + }; + } +} + +// Request message for +// [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups]. +message ListBackupsRequest { + // Required. The resource name of the location associated with the + // [Backups][google.cloud.secretmanager.v1.Backup], in the format + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "secretmanager.googleapis.com/Backup" + } + ]; + + // Optional. Maximum number of backups to return. The service may return fewer + // than this value. If unspecified, at most 50 backups 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 token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression to restrict the returned + // [Backups][google.cloud.secretmanager.v1.Backup]. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field specification for sorting the results in the response. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups]. +message ListBackupsResponse { + // The list of [Backups][google.cloud.secretmanager.v1.Backup] in the + // location. + repeated Backup backups = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Resource names of the unreachable locations. + // Format: `projects/{project}/locations/{location}` + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request message for +// [SecretOperationsService.GetBackup][google.cloud.secretmanager.v1.SecretOperationsService.GetBackup]. +message GetBackupRequest { + // Required. The resource name of the + // [Backup][google.cloud.secretmanager.v1.Backup], in the format + // `projects/{project}/locations/{location}/backups/{backup}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Backup" + } + ]; +} + +// Request message for +// [SecretOperationsService.CreateBackup][google.cloud.secretmanager.v1.SecretOperationsService.CreateBackup]. +message CreateBackupRequest { + // Required. The resource name of the location where the + // [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the + // format `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "secretmanager.googleapis.com/Backup" + } + ]; + + // Required. The ID to use for the backup, which will become the final + // component of the backup's resource name. + string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to + // create. + Backup backup = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SecretOperationsService.UpdateBackup][google.cloud.secretmanager.v1.SecretOperationsService.UpdateBackup]. +message UpdateBackupRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // [Backup][google.cloud.secretmanager.v1.Backup] resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields present in the request will be + // overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with + // updated fields. + Backup backup = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SecretOperationsService.DeleteBackup][google.cloud.secretmanager.v1.SecretOperationsService.DeleteBackup]. +message DeleteBackupRequest { + // Required. The resource name of the + // [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format + // `projects/{project}/locations/{location}/backups/{backup}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Backup" + } + ]; + + // Optional. If set, the request will only succeed if it matches the etag of + // the currently stored [Backup][google.cloud.secretmanager.v1.Backup]. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [SecretOperationsService.RestoreBackup][google.cloud.secretmanager.v1.SecretOperationsService.RestoreBackup]. +message RestoreBackupRequest { + // Required. The resource name of the + // [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format: + // `projects/{project}/locations/{location}/backups/{backup}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Backup" + } + ]; + + // Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret] + // to be created from this backup. Formats: + // - `projects/{project}/locations/{location}` (for regional secrets) + // - `projects/{project}` (for global secrets) + string destination_secret_parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "secretmanager.googleapis.com/Secret" + } + ]; + + // Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to + // be created from this backup. This must be unique within the project. + // + // A secret ID is a string with a maximum length of 255 characters and can + // contain uppercase and lowercase letters, numerals, and the hyphen (`-`) + // and underscore (`_`) characters. + string destination_secret_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The resource name of the Cloud KMS CryptoKey to be used to + // encrypt the [Secret][google.cloud.secretmanager.v1.Secret]. + // Format: + // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + string kms_key_name = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Represents progress information for operations involving multiple secret + // versions. + message Progress { + // Output only. Provides the total number of secret versions to be processed + // by the operation. + int32 total_version_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of secret versions that have been successfully + // processed so far. + int32 completed_version_count = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of secret versions that failed to process. + int32 failed_version_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have been cancelled successfully + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents the progress of the operation. This field is + // populated for operations that involve processing multiple secret versions. + Progress progress = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A Backup of a Secret. +// Backups are regional resources. +message Backup { + option (google.api.resource) = { + type: "secretmanager.googleapis.com/Backup" + pattern: "projects/{project}/locations/{location}/backups/{backup}" + plural: "backups" + singular: "backup" + }; + + // Enum representing the state of the + // [Backup][google.cloud.secretmanager.v1.Backup]. + enum State { + // Backup state is unspecified. + STATE_UNSPECIFIED = 0; + + // The backup is being created. + CREATING = 1; + + // The backup is active and can be used. + ACTIVE = 2; + + // The backup is being updated. + UPDATING = 3; + + // The backup creation or update failed. + FAILED = 4; + } + + // Identifier. Resource name of the backup. + // Format: `projects/{project}/locations/{location}/backups/{backup}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. Resource name of the + // [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The + // source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different + // region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field + // is immutable after creation. Formats: + // - `projects/{project}/locations/{location}/secrets/{secret}` (for regional + // secrets) + // - `projects/{project}/secrets/{secret}` (for global secrets) + string source_secret = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Secret" + } + ]; + + // Output only. Time at which the backup resource was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time at which the backup resource was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of the source + // [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was + // initiated. + google.protobuf.Timestamp source_secret_create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of non-destroyed secret versions contained in this + // backup. + int32 version_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels with user-defined metadata. + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Current state of the Backup. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Used for optimistic concurrency control as a way to help prevent + // simultaneous updates of a backup from overwriting each other. + string etag = 11 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto index dd26f3ea8f3f..d884b2680d5c 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto @@ -47,6 +47,19 @@ message Secret { singular: "secret" }; + // Represents the current state of the Secret. + enum State { + // Not specified. + STATE_UNSPECIFIED = 0; + + // Secret is in active state, usage is allowed. + STATE_ACTIVE = 1; + + // Secret is being restored from a backup. Operations on the secret and its + // versions are restricted. + STATE_RESTORING = 2; + } + // This defines the various values of the type of secret can be. enum SecretType { // Applicable to all secrets which do not have any restriction on the @@ -216,6 +229,9 @@ message Secret { // certain operations on the typed secret. google.iam.v1.ResourcePolicyMember policy_member = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the Secret. + State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A secret version resource in the Secret Manager API. diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetCredentialsProvider.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..233c3c45ad07 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; +import com.google.cloud.secretmanager.v1.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 + SecretOperationsServiceSettings secretOperationsServiceSettings = + SecretOperationsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create(secretOperationsServiceSettings); + } +} +// [END secretmanager_v1_generated_SecretOperationsService_Create_SetCredentialsProvider_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetEndpoint.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..a4bc64da299d --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_Create_SetEndpoint_sync] +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; +import com.google.cloud.secretmanager.v1.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 + SecretOperationsServiceSettings secretOperationsServiceSettings = + SecretOperationsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create(secretOperationsServiceSettings); + } +} +// [END secretmanager_v1_generated_SecretOperationsService_Create_SetEndpoint_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateUseHttpJsonTransport.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9fb8f10d41ed --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + SecretOperationsServiceSettings secretOperationsServiceSettings = + SecretOperationsServiceSettings.newHttpJsonBuilder().build(); + SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create(secretOperationsServiceSettings); + } +} +// [END secretmanager_v1_generated_SecretOperationsService_Create_UseHttpJsonTransport_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackup.java new file mode 100644 index 000000000000..3ca8e95c2362 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateBackup { + + public static void main(String[] args) throws Exception { + asyncCreateBackup(); + } + + public static void asyncCreateBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackupId("backupId2121930365") + .setBackup(Backup.newBuilder().build()) + .build(); + ApiFuture future = + secretOperationsServiceClient.createBackupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackupLRO.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackupLRO.java new file mode 100644 index 000000000000..2c8490c3e01f --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackupLRO.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class AsyncCreateBackupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateBackupLRO(); + } + + public static void asyncCreateBackupLRO() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackupId("backupId2121930365") + .setBackup(Backup.newBuilder().build()) + .build(); + OperationFuture future = + secretOperationsServiceClient.createBackupOperationCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_LRO_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackup.java new file mode 100644 index 000000000000..f348e0cf7966 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncCreateBackup { + + public static void main(String[] args) throws Exception { + syncCreateBackup(); + } + + public static void syncCreateBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackupId("backupId2121930365") + .setBackup(Backup.newBuilder().build()) + .build(); + Backup response = secretOperationsServiceClient.createBackupAsync(request).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupLocationnameBackupString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupLocationnameBackupString.java new file mode 100644 index 000000000000..56c13a607aa8 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupLocationnameBackupString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_LocationnameBackupString_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncCreateBackupLocationnameBackupString { + + public static void main(String[] args) throws Exception { + syncCreateBackupLocationnameBackupString(); + } + + public static void syncCreateBackupLocationnameBackupString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + Backup response = + secretOperationsServiceClient.createBackupAsync(parent, backup, backupId).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_LocationnameBackupString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupStringBackupString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupStringBackupString.java new file mode 100644 index 000000000000..1f76aa39d6ff --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupStringBackupString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_StringBackupString_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncCreateBackupStringBackupString { + + public static void main(String[] args) throws Exception { + syncCreateBackupStringBackupString(); + } + + public static void syncCreateBackupStringBackupString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + Backup response = + secretOperationsServiceClient.createBackupAsync(parent, backup, backupId).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_StringBackupString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackup.java new file mode 100644 index 000000000000..f976eb3bf7de --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteBackup { + + public static void main(String[] args) throws Exception { + asyncDeleteBackup(); + } + + public static void asyncDeleteBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + secretOperationsServiceClient.deleteBackupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackupLRO.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackupLRO.java new file mode 100644 index 000000000000..0b6d2ab68b8c --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackupLRO.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteBackupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteBackupLRO(); + } + + public static void asyncDeleteBackupLRO() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setEtag("etag3123477") + .build(); + OperationFuture future = + secretOperationsServiceClient.deleteBackupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_LRO_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackup.java new file mode 100644 index 000000000000..dd7bfcd1bcdc --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackup { + + public static void main(String[] args) throws Exception { + syncDeleteBackup(); + } + + public static void syncDeleteBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setEtag("etag3123477") + .build(); + secretOperationsServiceClient.deleteBackupAsync(request).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupBackupname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupBackupname.java new file mode 100644 index 000000000000..627e26958cbf --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupBackupname.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_Backupname_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackupBackupname { + + public static void main(String[] args) throws Exception { + syncDeleteBackupBackupname(); + } + + public static void syncDeleteBackupBackupname() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + secretOperationsServiceClient.deleteBackupAsync(name).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_Backupname_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupString.java new file mode 100644 index 000000000000..31d2784ca80f --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_String_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackupString { + + public static void main(String[] args) throws Exception { + syncDeleteBackupString(); + } + + public static void syncDeleteBackupString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + secretOperationsServiceClient.deleteBackupAsync(name).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_String_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/AsyncGetBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/AsyncGetBackup.java new file mode 100644 index 000000000000..2b015a791a8c --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/AsyncGetBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_GetBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class AsyncGetBackup { + + public static void main(String[] args) throws Exception { + asyncGetBackup(); + } + + public static void asyncGetBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + GetBackupRequest request = + GetBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .build(); + ApiFuture future = + secretOperationsServiceClient.getBackupCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_GetBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackup.java new file mode 100644 index 000000000000..e89e90a2c048 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_GetBackup_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncGetBackup { + + public static void main(String[] args) throws Exception { + syncGetBackup(); + } + + public static void syncGetBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + GetBackupRequest request = + GetBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .build(); + Backup response = secretOperationsServiceClient.getBackup(request); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_GetBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupBackupname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupBackupname.java new file mode 100644 index 000000000000..237f42650fe5 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupBackupname.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_GetBackup_Backupname_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncGetBackupBackupname { + + public static void main(String[] args) throws Exception { + syncGetBackupBackupname(); + } + + public static void syncGetBackupBackupname() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + Backup response = secretOperationsServiceClient.getBackup(name); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_GetBackup_Backupname_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupString.java new file mode 100644 index 000000000000..0d6f41d9b07e --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_GetBackup_String_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncGetBackupString { + + public static void main(String[] args) throws Exception { + syncGetBackupString(); + } + + public static void syncGetBackupString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + Backup response = secretOperationsServiceClient.getBackup(name); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_GetBackup_String_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackups.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackups.java new file mode 100644 index 000000000000..25102097ea52 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackups.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class AsyncListBackups { + + public static void main(String[] args) throws Exception { + asyncListBackups(); + } + + public static void asyncListBackups() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + secretOperationsServiceClient.listBackupsPagedCallable().futureCall(request); + // Do something. + for (Backup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackupsPaged.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackupsPaged.java new file mode 100644 index 000000000000..ebf630fb1380 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackupsPaged.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_Paged_async] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.common.base.Strings; + +public class AsyncListBackupsPaged { + + public static void main(String[] args) throws Exception { + asyncListBackupsPaged(); + } + + public static void asyncListBackupsPaged() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListBackupsResponse response = + secretOperationsServiceClient.listBackupsCallable().call(request); + for (Backup element : response.getBackupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_Paged_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackups.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackups.java new file mode 100644 index 000000000000..d86ae126173e --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackups.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncListBackups { + + public static void main(String[] args) throws Exception { + syncListBackups(); + } + + public static void syncListBackups() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Backup element : secretOperationsServiceClient.listBackups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsLocationname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsLocationname.java new file mode 100644 index 000000000000..5cccf2b8c299 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsLocationname.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_Locationname_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncListBackupsLocationname { + + public static void main(String[] args) throws Exception { + syncListBackupsLocationname(); + } + + public static void syncListBackupsLocationname() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Backup element : secretOperationsServiceClient.listBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_Locationname_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsString.java new file mode 100644 index 000000000000..24fa89b25c73 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_String_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncListBackupsString { + + public static void main(String[] args) throws Exception { + syncListBackupsString(); + } + + public static void syncListBackupsString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Backup element : secretOperationsServiceClient.listBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_String_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackup.java new file mode 100644 index 000000000000..8b260e4f2d57 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackup.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.CryptoKeyName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.longrunning.Operation; + +public class AsyncRestoreBackup { + + public static void main(String[] args) throws Exception { + asyncRestoreBackup(); + } + + public static void asyncRestoreBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString()) + .setDestinationSecretId("destinationSecretId171779609") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + ApiFuture future = + secretOperationsServiceClient.restoreBackupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackupLRO.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackupLRO.java new file mode 100644 index 000000000000..c05bfdc7eb96 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackupLRO.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.CryptoKeyName; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class AsyncRestoreBackupLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreBackupLRO(); + } + + public static void asyncRestoreBackupLRO() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString()) + .setDestinationSecretId("destinationSecretId171779609") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + OperationFuture future = + secretOperationsServiceClient.restoreBackupOperationCallable().futureCall(request); + // Do something. + Secret response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_LRO_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackup.java new file mode 100644 index 000000000000..30e0185c3883 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.CryptoKeyName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackup { + + public static void main(String[] args) throws Exception { + syncRestoreBackup(); + } + + public static void syncRestoreBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString()) + .setDestinationSecretId("destinationSecretId171779609") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + Secret response = secretOperationsServiceClient.restoreBackupAsync(request).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameLocationnameString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameLocationnameString.java new file mode 100644 index 000000000000..db2baa24113b --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameLocationnameString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameLocationnameString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupBackupnameLocationnameString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupBackupnameLocationnameString(); + } + + public static void syncRestoreBackupBackupnameLocationnameString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameLocationnameString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameProjectnameString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameProjectnameString.java new file mode 100644 index 000000000000..1a2166b4fd32 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameProjectnameString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameProjectnameString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupBackupnameProjectnameString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupBackupnameProjectnameString(); + } + + public static void syncRestoreBackupBackupnameProjectnameString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameProjectnameString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameStringString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameStringString.java new file mode 100644 index 000000000000..8f3c1187bef6 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameStringString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameStringString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupBackupnameStringString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupBackupnameStringString(); + } + + public static void syncRestoreBackupBackupnameStringString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = ProjectName.of("[PROJECT]").toString(); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameStringString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringLocationnameString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringLocationnameString.java new file mode 100644 index 000000000000..4233d5dec612 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringLocationnameString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringLocationnameString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupStringLocationnameString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupStringLocationnameString(); + } + + public static void syncRestoreBackupStringLocationnameString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringLocationnameString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringProjectnameString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringProjectnameString.java new file mode 100644 index 000000000000..8256ac4bd495 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringProjectnameString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringProjectnameString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupStringProjectnameString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupStringProjectnameString(); + } + + public static void syncRestoreBackupStringProjectnameString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringProjectnameString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringStringString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringStringString.java new file mode 100644 index 000000000000..4ca393bbb0ca --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringStringString.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringStringString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupStringStringString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupStringStringString(); + } + + public static void syncRestoreBackupStringStringString() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + String destinationSecretParent = ProjectName.of("[PROJECT]").toString(); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringStringString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackup.java new file mode 100644 index 000000000000..f21b4c9df255 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_UpdateBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBackup { + + public static void main(String[] args) throws Exception { + asyncUpdateBackup(); + } + + public static void asyncUpdateBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + UpdateBackupRequest request = + UpdateBackupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackup(Backup.newBuilder().build()) + .build(); + ApiFuture future = + secretOperationsServiceClient.updateBackupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_UpdateBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackupLRO.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackupLRO.java new file mode 100644 index 000000000000..f72bdaa08398 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackupLRO.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_UpdateBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBackupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateBackupLRO(); + } + + public static void asyncUpdateBackupLRO() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + UpdateBackupRequest request = + UpdateBackupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackup(Backup.newBuilder().build()) + .build(); + OperationFuture future = + secretOperationsServiceClient.updateBackupOperationCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_UpdateBackup_LRO_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackup.java new file mode 100644 index 000000000000..29311870e1f8 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_UpdateBackup_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackup { + + public static void main(String[] args) throws Exception { + syncUpdateBackup(); + } + + public static void syncUpdateBackup() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + UpdateBackupRequest request = + UpdateBackupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackup(Backup.newBuilder().build()) + .build(); + Backup response = secretOperationsServiceClient.updateBackupAsync(request).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_UpdateBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackupBackupFieldmask.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackupBackupFieldmask.java new file mode 100644 index 000000000000..905931cf0e51 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackupBackupFieldmask.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_UpdateBackup_BackupFieldmask_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackupBackupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBackupBackupFieldmask(); + } + + public static void syncUpdateBackupBackupFieldmask() 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 (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Backup response = secretOperationsServiceClient.updateBackupAsync(backup, updateMask).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_UpdateBackup_BackupFieldmask_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/createbackup/SyncCreateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/createbackup/SyncCreateBackup.java new file mode 100644 index 000000000000..fbc90fd70b50 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/createbackup/SyncCreateBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsServiceSettings_CreateBackup_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.secretmanager.v1.SecretOperationsServiceSettings; +import java.time.Duration; + +public class SyncCreateBackup { + + public static void main(String[] args) throws Exception { + syncCreateBackup(); + } + + public static void syncCreateBackup() 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 + SecretOperationsServiceSettings.Builder secretOperationsServiceSettingsBuilder = + SecretOperationsServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + secretOperationsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END secretmanager_v1_generated_SecretOperationsServiceSettings_CreateBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/getbackup/SyncGetBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/getbackup/SyncGetBackup.java new file mode 100644 index 000000000000..adcd3525b661 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/getbackup/SyncGetBackup.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.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsServiceSettings_GetBackup_sync] +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; +import java.time.Duration; + +public class SyncGetBackup { + + public static void main(String[] args) throws Exception { + syncGetBackup(); + } + + public static void syncGetBackup() 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 + SecretOperationsServiceSettings.Builder secretOperationsServiceSettingsBuilder = + SecretOperationsServiceSettings.newBuilder(); + secretOperationsServiceSettingsBuilder + .getBackupSettings() + .setRetrySettings( + secretOperationsServiceSettingsBuilder + .getBackupSettings() + .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()); + SecretOperationsServiceSettings secretOperationsServiceSettings = + secretOperationsServiceSettingsBuilder.build(); + } +} +// [END secretmanager_v1_generated_SecretOperationsServiceSettings_GetBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/createbackup/SyncCreateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/createbackup/SyncCreateBackup.java new file mode 100644 index 000000000000..63f86dfa5c4a --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/createbackup/SyncCreateBackup.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.secretmanager.v1.stub.samples; + +// [START secretmanager_v1_generated_SecretOperationsServiceStubSettings_CreateBackup_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.secretmanager.v1.stub.SecretOperationsServiceStubSettings; +import java.time.Duration; + +public class SyncCreateBackup { + + public static void main(String[] args) throws Exception { + syncCreateBackup(); + } + + public static void syncCreateBackup() 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 + SecretOperationsServiceStubSettings.Builder secretOperationsServiceSettingsBuilder = + SecretOperationsServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + secretOperationsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END secretmanager_v1_generated_SecretOperationsServiceStubSettings_CreateBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/getbackup/SyncGetBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/getbackup/SyncGetBackup.java new file mode 100644 index 000000000000..e23001a73fd7 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/getbackup/SyncGetBackup.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.secretmanager.v1.stub.samples; + +// [START secretmanager_v1_generated_SecretOperationsServiceStubSettings_GetBackup_sync] +import com.google.cloud.secretmanager.v1.stub.SecretOperationsServiceStubSettings; +import java.time.Duration; + +public class SyncGetBackup { + + public static void main(String[] args) throws Exception { + syncGetBackup(); + } + + public static void syncGetBackup() 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 + SecretOperationsServiceStubSettings.Builder secretOperationsServiceSettingsBuilder = + SecretOperationsServiceStubSettings.newBuilder(); + secretOperationsServiceSettingsBuilder + .getBackupSettings() + .setRetrySettings( + secretOperationsServiceSettingsBuilder + .getBackupSettings() + .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()); + SecretOperationsServiceStubSettings secretOperationsServiceSettings = + secretOperationsServiceSettingsBuilder.build(); + } +} +// [END secretmanager_v1_generated_SecretOperationsServiceStubSettings_GetBackup_sync] diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 07ff66cec8c0..29775cf2ce2a 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.72.0 + 0.73.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securesourcemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.72.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.73.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-securesourcemanager/latest/overview [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-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.73.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-security-private-ca/README.md b/java-security-private-ca/README.md index d6d42f1ede94..05b798ccbe3a 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-security-private-ca' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.104.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/overview [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-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.105.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-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index a15bf01ca62d..4ce19cfb6c46 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter-settings' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.105.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter-settings/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-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.106.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-securitycenter/README.md b/java-securitycenter/README.md index 0a53e7ec294e..a36373d6b3ce 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.110.0 + 2.111.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.110.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.111.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.110.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.111.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter/latest/overview [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-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.110.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.111.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-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 72b17e81267e..0bb68b7e536b 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.70.0 + 0.71.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securitycentermanagement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.70.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.71.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/overview [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-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.71.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-securityposture/README.md b/java-securityposture/README.md index 79d7d7d70950..9e0bf35bf639 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.67.0 + 0.68.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securityposture' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.67.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.68.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securityposture/latest/overview [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-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.68.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-service-control/README.md b/java-service-control/README.md index 0c9a70166f94..b1d7d82f7dc5 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-control' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.102.0' +implementation 'com.google.cloud:google-cloud-service-control:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-control/latest/overview [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-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.103.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-service-management/README.md b/java-service-management/README.md index f4aa5e385d88..c76d9d0e8320 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.100.0 + 3.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-management' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.100.0' +implementation 'com.google.cloud:google-cloud-service-management:3.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-management/latest/overview [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-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.101.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-service-usage/README.md b/java-service-usage/README.md index 81e47e5dacc9..89f5637eab46 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-usage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.102.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/overview [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-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.103.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-servicedirectory/README.md b/java-servicedirectory/README.md index fee832f14e4a..e8310c016242 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-servicedirectory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.103.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicedirectory/latest/overview [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-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.104.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-servicehealth/README.md b/java-servicehealth/README.md index 39ca368d8439..f9e3e357b426 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.69.0 + 0.70.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-servicehealth' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.69.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.70.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicehealth/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-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.70.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-shell/README.md b/java-shell/README.md index 28765edcef64..20c3e4dcbe70 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-shell' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.101.0' +implementation 'com.google.cloud:google-cloud-shell:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-shell/latest/overview [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-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.102.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-shopping-css/README.md b/java-shopping-css/README.md index e375e33bc87a..58da170d6e84 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-css - 0.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.70.0' +implementation 'com.google.shopping:google-shopping-css:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.70.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.71.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-css/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.71.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-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 565612b19d10..c9863a884709 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-accounts - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.31.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-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index b77c0cfe68c6..e07da3f295aa 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-conversions - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.31.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-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 3e8c20219586..e5ff1a11c5e1 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-datasources - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.31.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-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 83dc44826ea2..942ee3978ad3 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-inventories - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.31.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-shopping-merchant-issue-resolution/README.md b/java-shopping-merchant-issue-resolution/README.md index 9d969391e6d8..dca07198273a 100644 --- a/java-shopping-merchant-issue-resolution/README.md +++ b/java-shopping-merchant-issue-resolution/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-issue-resolution - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.31.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-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 2c6450aa01c9..6c4bba152346 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-lfp - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.31.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-shopping-merchant-loyaltycustomers/README.md b/java-shopping-merchant-loyaltycustomers/README.md index 2bcd67eec061..fdb4431f7530 100644 --- a/java-shopping-merchant-loyaltycustomers/README.md +++ b/java-shopping-merchant-loyaltycustomers/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-loyaltycustomers - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-loyaltycustomers:0.6.0' +implementation 'com.google.shopping:google-shopping-merchant-loyaltycustomers:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-loyaltycustomers" % "0.6.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-loyaltycustomers" % "0.7.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-loyaltycustomers/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-loyaltycustomers.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-loyaltycustomers/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-loyaltycustomers/0.7.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-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index 9af112722a57..b05b5824a718 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-notifications - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-notifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.31.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-shopping-merchant-order-tracking/README.md b/java-shopping-merchant-order-tracking/README.md index 66e00a4de745..1167477b1551 100644 --- a/java-shopping-merchant-order-tracking/README.md +++ b/java-shopping-merchant-order-tracking/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-order-tracking - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.31.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-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index 8ee5738681a5..a0c1bf0bd9b0 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-productstudio - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.42.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.42.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.43.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.43.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-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 62a839e398d3..a4b2eb23d83e 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-products - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-products:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.31.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-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 788f49f4a723..601681ebb42b 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-promotions - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.31.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-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index d8c213edb69b..9879ffc0edaf 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-quota - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.31.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-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 779fa26837fc..6d52cabe10fc 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reports - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reports/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.31.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-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index 3d46f57df9b0..3f6d3fe0c8b2 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reviews - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.48.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.48.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.49.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.49.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-spanner/README.md b/java-spanner/README.md index 98884d88a1be..e2efd722c0f8 100644 --- a/java-spanner/README.md +++ b/java-spanner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanner - 6.127.0 + 6.128.0 ``` @@ -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.127.0' +implementation 'com.google.cloud:google-cloud-spanner:6.128.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.127.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.128.0" ``` ## Authentication @@ -590,7 +590,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.127.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.128.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-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionOptionsTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionOptionsTest.java index 80a8d844fe23..961ef2906d08 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionOptionsTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionOptionsTest.java @@ -1155,8 +1155,8 @@ public void testValidCredentialsProvider_WithoutEnablingSystemProperty() throws assertEquals(ErrorCode.FAILED_PRECONDITION, exception.getErrorCode()); assertEquals( "FAILED_PRECONDITION: credentialsProvider can only be used if the system property" - + " ENABLE_CREDENTIALS_PROVIDER has been set to true. Start the application with the" - + " JVM command line option -DENABLE_CREDENTIALS_PROVIDER=true", + + " ENABLE_CREDENTIALS_PROVIDER has been set to true. Start the application with" + + " the JVM command line option -DENABLE_CREDENTIALS_PROVIDER=true", exception.getMessage()); }); } @@ -1203,8 +1203,8 @@ public void testCredentialsProvider_NotLoadedWithoutSystemProperty() throws Thro assertEquals(ErrorCode.FAILED_PRECONDITION, exception.getErrorCode()); assertEquals( "FAILED_PRECONDITION: credentialsProvider can only be used if the system property" - + " ENABLE_CREDENTIALS_PROVIDER has been set to true. Start the application with the" - + " JVM command line option -DENABLE_CREDENTIALS_PROVIDER=true", + + " ENABLE_CREDENTIALS_PROVIDER has been set to true. Start the application with" + + " the JVM command line option -DENABLE_CREDENTIALS_PROVIDER=true", exception.getMessage()); }); } @@ -1262,7 +1262,8 @@ public void testCredentialsProvider_NonExistentClass() throws Throwable { exception .getMessage() .contains( - "Unknown or invalid CredentialsProvider class name: com.google.cloud.spanner.connection.NonExistentClass")); + "Unknown or invalid CredentialsProvider class name:" + + " com.google.cloud.spanner.connection.NonExistentClass")); }); } @@ -1487,7 +1488,8 @@ public void testExternalChannelProvider_NonExistentClass() throws Throwable { exception .getMessage() .contains( - "Unknown or invalid ExternalChannelProvider class name: com.google.cloud.spanner.connection.NonExistentClass")); + "Unknown or invalid ExternalChannelProvider class name:" + + " com.google.cloud.spanner.connection.NonExistentClass")); }); } diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java index 18f3bbfaf063..0a4a8e796515 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java @@ -225,7 +225,8 @@ public void testGrpcInterceptorProvider_NonExistentClass() throws Throwable { exception .getMessage() .contains( - "Unknown or invalid GrpcInterceptorProvider class name: com.google.cloud.spanner.connection.NonExistentClass")); + "Unknown or invalid GrpcInterceptorProvider class name:" + + " com.google.cloud.spanner.connection.NonExistentClass")); }); } diff --git a/java-spanneradapter/README.md b/java-spanneradapter/README.md index bb699b3d8db1..4119d667bdca 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanneradapter - 0.38.0 + 0.39.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-spanneradapter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.38.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.39.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/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-spanneradapter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.39.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-speech/README.md b/java-speech/README.md index 0f688c3fbf71..c5edfb78bc15 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.97.0 + 4.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-speech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.97.0' +implementation 'com.google.cloud:google-cloud-speech:4.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.98.0" ``` ## Authentication @@ -218,7 +218,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-speech/latest/overview [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-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.98.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-storage-transfer/README.md b/java-storage-transfer/README.md index 93a90db4fd11..b4189a0bf936 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-storage-transfer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.102.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage-transfer/latest/overview [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-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.103.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-storage/README.md b/java-storage/README.md index 8744cbf5d95f..d57aa5607997 100644 --- a/java-storage/README.md +++ b/java-storage/README.md @@ -45,12 +45,12 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage - 2.78.0 + 2.79.0 com.google.cloud google-cloud-storage-control - 2.78.0 + 2.79.0 ``` @@ -65,13 +65,13 @@ implementation 'com.google.cloud:google-cloud-storage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage:2.78.0' +implementation 'com.google.cloud:google-cloud-storage:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.79.0" ``` ## Authentication @@ -485,7 +485,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage/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-storage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.79.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-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index bb2bd74e772b..38420184b47c 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 0.42.0 + 0.43.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-storagebatchoperations' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.42.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.43.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/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-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.43.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-storageinsights/README.md b/java-storageinsights/README.md index f7818fc6e35a..962c4da7b5b9 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.87.0 + 0.88.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-storageinsights' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.87.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.88.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storageinsights/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-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.88.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-talent/README.md b/java-talent/README.md index be3c4f6119e4..0a3eb0e5a754 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-talent' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.103.0' +implementation 'com.google.cloud:google-cloud-talent:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-talent/latest/overview [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-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.104.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-tasks/README.md b/java-tasks/README.md index ddf4aacafdaf..aa402eb94046 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-tasks' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.102.0' +implementation 'com.google.cloud:google-cloud-tasks:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/overview [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-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.103.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-telcoautomation/README.md b/java-telcoautomation/README.md index 7125f424d732..10f54c479ef7 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.72.0 + 0.73.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-telcoautomation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.72.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.73.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-telcoautomation/latest/overview [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-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.73.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-texttospeech/README.md b/java-texttospeech/README.md index 01a42c6b498a..82b7cfe71bc4 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-texttospeech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.103.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-texttospeech/latest/overview [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-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.104.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-tpu/README.md b/java-tpu/README.md index 7d13d1eab8e8..dbecfd550816 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-tpu' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.103.0' +implementation 'com.google.cloud:google-cloud-tpu:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tpu/latest/overview [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-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.104.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-trace/README.md b/java-trace/README.md index 0b5f3779c65c..08ea48d7aadf 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-trace' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.102.0' +implementation 'com.google.cloud:google-cloud-trace:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-trace/latest/overview [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-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.103.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-translate/README.md b/java-translate/README.md index 6cddba08ee6f..fb74349bea3c 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-translate' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.102.0' +implementation 'com.google.cloud:google-cloud-translate:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.103.0" ``` ## Authentication @@ -259,7 +259,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-translate/latest/overview [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-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.103.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-valkey/README.md b/java-valkey/README.md index cc436fe84ae4..b7cbe204740d 100644 --- a/java-valkey/README.md +++ b/java-valkey/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-valkey - 0.48.0 + 0.49.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-valkey' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.48.0' +implementation 'com.google.cloud:google-cloud-valkey:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.49.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview [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-valkey.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.49.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-vectorsearch/README.md b/java-vectorsearch/README.md index ad84eac6982a..dd959f80538d 100644 --- a/java-vectorsearch/README.md +++ b/java-vectorsearch/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vectorsearch - 0.24.0 + 0.25.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-vectorsearch' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vectorsearch:0.24.0' +implementation 'com.google.cloud:google-cloud-vectorsearch:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.25.0" ``` ## Authentication @@ -186,7 +186,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.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.25.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 5252dd03267c..be3df25f304e 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-intelligence' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.101.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-intelligence/latest/overview [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-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.102.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-live-stream/README.md b/java-video-live-stream/README.md index 42ef2e97503f..ef89a57d2b34 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.104.0 + 0.105.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-live-stream' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.104.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.105.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-live-stream/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-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.105.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-stitcher/README.md b/java-video-stitcher/README.md index 8fef5ab8ed8b..52c0f186f836 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.102.0 + 0.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-stitcher' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.102.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-stitcher/latest/overview [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-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.103.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-transcoder/README.md b/java-video-transcoder/README.md index f155dd409786..02759311074b 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-transcoder' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.101.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-transcoder/latest/overview [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-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.102.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-vision/README.md b/java-vision/README.md index 1a5f4ecc8f6f..d24b23042bef 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.100.0 + 3.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vision' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.100.0' +implementation 'com.google.cloud:google-cloud-vision:3.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vision/latest/overview [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-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.101.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-visionai/README.md b/java-visionai/README.md index 1f834580ef79..7ddd2c431cf5 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.59.0 + 0.60.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-visionai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.59.0' +implementation 'com.google.cloud:google-cloud-visionai:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.60.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-visionai/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-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.60.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-vmmigration/README.md b/java-vmmigration/README.md index dab9d4ccec2d..f67056046c73 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vmmigration' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.102.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmmigration/latest/overview [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-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.103.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-vmwareengine/README.md b/java-vmwareengine/README.md index 99e99b841f57..91f303d01b33 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.96.0 + 0.97.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-vmwareengine' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.96.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.97.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmwareengine/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-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.97.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-vpcaccess/README.md b/java-vpcaccess/README.md index 07f04cc70fc3..002071b869b0 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vpcaccess' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.103.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vpcaccess/latest/overview [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-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.104.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-webrisk/README.md b/java-webrisk/README.md index 7b615d950dfd..82cd7a84a6db 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-webrisk' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.101.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-webrisk/latest/overview [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-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.102.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-websecurityscanner/README.md b/java-websecurityscanner/README.md index c26bbaa6171e..2c1b5e0405cf 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-websecurityscanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.102.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-websecurityscanner/latest/overview [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-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.103.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-workflow-executions/README.md b/java-workflow-executions/README.md index 86b407a3a849..a4735cef69cd 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workflow-executions' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.102.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflow-executions/latest/overview [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-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.103.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-workflows/README.md b/java-workflows/README.md index 30f8c68cd94c..9de95cf001b6 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workflows' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.102.0' +implementation 'com.google.cloud:google-cloud-workflows:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflows/latest/overview [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-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.103.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-workloadidentity/README.md b/java-workloadidentity/README.md index e85351cdc828..ee48cfa0ef96 100644 --- a/java-workloadidentity/README.md +++ b/java-workloadidentity/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workloadidentity - 0.7.0 + 0.8.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workloadidentity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workloadidentity:0.7.0' +implementation 'com.google.cloud:google-cloud-workloadidentity:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workloadidentity" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workloadidentity" % "0.8.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workloadidentity/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-workloadidentity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadidentity/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadidentity/0.8.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-workloadmanager/README.md b/java-workloadmanager/README.md index d03b84c3f767..66d873f24ba4 100644 --- a/java-workloadmanager/README.md +++ b/java-workloadmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workloadmanager - 0.18.0 + 0.19.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workloadmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workloadmanager:0.18.0' +implementation 'com.google.cloud:google-cloud-workloadmanager:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.19.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/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-workloadmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/0.19.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-workspaceevents/README.md b/java-workspaceevents/README.md index 21f2fd872680..ba294d678e04 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workspaceevents' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.66.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workspaceevents/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-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.67.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-workstations/README.md b/java-workstations/README.md index 6163066e4e88..2010924374d5 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.90.0 + 0.91.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workstations' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.90.0' +implementation 'com.google.cloud:google-cloud-workstations:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.91.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workstations/latest/overview [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-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.91.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